top | item 37611627

(no title)

rpier001 | 2 years ago

Relax, don't do it. When you want this, you're turning the relations in postgres into a contract. No service gets to persist internal state. If you're _really_ committed to domain driven design it could work... but you'd be better off with a light (but real) event driven system.

discuss

order

slotrans|2 years ago

The relations in the database _are_ a contract whether you like it or not.

Event-driven anything is 1000x more complex.