After commit callback #882

Відкрито
2021-01-16 07:25:10 +00:00 відкрито KitaitiMakoto · 2 коментарів
KitaitiMakoto прокоментував(ла) 2021-01-16 07:25:10 +00:00
Власник

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.
KitaitiMakoto прокоментував(ла) 2021-01-16 12:57:58 +00:00
Автор
Власник

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

Currently, we don't use transactions. There's no problem.
KitaitiMakoto прокоментував(ла) 2021-02-15 15:06:52 +00:00
Автор
Власник

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 додано
A: Backend
з міткою 2021-03-27 11:21:59 +00:00
Підпишіться щоб приєднатися до обговорення.
Етап відсутній
Проєкт відсутній
Немає виконавців
1 учасник
Сповіщення
Дата завершення
Термін дії недійсний або знаходиться за межами допустимого діапазону. Будь ласка, використовуйте формат «рррр-мм-дд».

Термін виконання не встановлено.

Залежності

Залежностей не встановлено.

Reference: Plume/Plume#882
Немає опису.