Re:Creating an advanced search engine with PostgreSQL
by stoniejohnson on Wednesday July 12, 2023 @08:23PM
(#36703509)
Making jobs idempotent forces good design imo.
Re:Creating an advanced search engine with PostgreSQL
by freedomben on Thursday July 13, 2023 @11:29AM
(#36710769)
Yes agreed. It's (usually) more work, but the gains in robustness and fault tolerance are (usually) well worth it
We do something like this with our systems. External events get written to the event bus but all operations are idempotent on the event bus. So at night we send another round of the days events to clean up any inconsistencies.