After commit callback #882

Відкрито
3 роки тому відкрито KitaitiMakoto · 2 коментарів
KitaitiMakoto прокоментував(ла) 3 роки тому
Власник

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 прокоментував(ла) 3 роки тому
Автор
Власник

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

Currently, we don't use transactions. There's no problem.
KitaitiMakoto прокоментував(ла) 3 роки тому
Автор
Власник

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
з міткою 3 роки тому
Підпишіться щоб приєднатися до обговорення.
Етап відсутній
Немає виконавця
1 учасників
Сповіщення
Дата завершення
Термін дії не дійсний або знаходиться за межами допустимого діапазону. Будь ласка використовуйте формат 'yyyy-mm-dd'.

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

Залежності

No dependencies set.

Reference: Plume/Plume#882
Завантаження…
Тут ще немає жодного змісту.