News for hackers. Stuff that matters.
Re:What every software engineer should know about Apache Kafka by rclayton on Tuesday May 19, 2020 @12:26PM (#23236734)
This is a neat pattern, but it honestly just seems like you’re trading where you want the complexity. The outbox pattern would force devs to not use SQL directly for mutations - in so much as they can’t directly modify records like they normally would. I can see this being ok if you had someone with strong DBA skills implementing the abstraction.
Re:What every software engineer should know about Apache Kafka by gunnarmorling on Tuesday May 19, 2020 @06:58PM (#23241309)
Devs modify records just as they normally would. Only, in addition, they produce a record in the outbox table, representing the change to the outside world. I.e. instead of writing to the DB and Kafka, both changes are done to the database, and then events from the outbox table are CDC-ed to Kafka.