After commit callback #882

Отворени
отворен преди 3 години от KitaitiMakoto · 2 коментара
Притежател

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.
Участник
Притежател

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

Currently, we don't use transactions. There's no problem.
Участник
Притежател

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 преди 3 години
Впишете се за да се присъедините към разговора.
Няма етап
Няма изпълнители
1 участника
Известия
Due Date
Крайният срок е невалиден или извън обхват. Моля използвайте форматът 'гггг-мм-дд'.

No due date set.

Зависимости

No dependencies set.

Reference: Plume/Plume#882
Зареждане…
Все още няма съдържание.