79639951

Date: 2025-05-27 07:06:04
Score: 1.5
Natty:
Report link

Instead of directly emitting the event, you can:

Write the event to an outbox table in the same DB transaction as the offer acceptance.

Use a separate background worker (or cron job, or queue processor) to read from the outbox and emit the event.

This way, events are only sent after the transaction is committed, ensuring consistency.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mirza Rizwan