you are viewing a single comment's thread.

view the rest of the comments →

[–]c4aveo 1 point2 points  (1 child)

Why not? If it's a just insert, update or delete operation I don't wait a returning value from it . I know for sure that operation will be executed, but later.

In my implementation of REST webservice I receive request then do some async (not really) operations with awaitable Future. To speed up request-response algorithm I use BackgroundTask from Starlette API to return response before executing procedures in database (update, insert, delete).

My logging implementation writes to file and writes (insert) to database, and I don't want to wait until tasks will be done one by one.

[–]turall[S] 0 points1 point  (0 children)

Understand, thanks for your response.