After commit callback #882

Öppen
öppnade 2021-01-16 07:25:10 +00:00 av KitaitiMakoto · 2 kommentarer
Ägare

Think you

  1. begin transaction
  2. insert a post
  3. publishes PostPublished event to the actor channel
  4. some error occurs
  5. transaction rollbacked
  6. but you can find the post by search

We should publish PostPublished only after transaction commited.

Solusion might include sending patches to diesel.

Think you 1. begin transaction 2. insert a post 3. publishes `PostPublished` event to the actor channel 4. some error occurs 5. transaction rollbacked 6. but you can find the post by search We should publish `PostPublished` only after transaction commited. Solusion might include sending patches to diesel.
Author
Ägare

Currently, we don't use transactions. There's no problem.

Currently, we don't use transactions. There's no problem.
Author
Ägare

It might be good to move database-related code from request handlers to models.

It might be good to move database-related code from request handlers to models.
KitaitiMakoto added the
A: Backend
label 2021-03-27 11:21:59 +00:00
Logga in för att delta i denna konversation.
Ingen milstolpe
Inget projekt
Inga tilldelade
1 participant
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

No dependencies set.

Reference: Plume/Plume#882
No description provided.