After commit callback #882

Ouvert
créé il y a 3 ans par KitaitiMakoto · 2 commentaires
Propriétaire

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.
Éditeur
Propriétaire

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

Currently, we don't use transactions. There's no problem.
Éditeur
Propriétaire

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 ajouté l'étiquette
A: Backend
il y a 3 ans
Connectez-vous pour rejoindre cette conversation.
Aucun jalon
Pas d'assignataires
1 participants
Notifications
Échéance
La date d’échéance est invalide ou hors plage. Veuillez utiliser le format 'aaaa-mm-dd'.

Aucune échéance n'a été définie.

Dépendances

No dependencies set.

Reference: Plume/Plume#882
Chargement…
Il n'existe pas encore de contenu.