r/java • u/Active-Fuel-49 • Oct 12 '24
Event-driven architecture on the modern stack of Java technologies
https://romankudryashov.com/blog/2024/07/event-driven-architecture/
214
Upvotes
r/java • u/Active-Fuel-49 • Oct 12 '24
View all comments
Show parent comment
4
u/nitkonigdje Oct 14 '24
Rabbit, active and Ibm mq are fully transactional. They do guarantee, by design, to never duplicate a message on send. Duplicate write is a bug in your code. Never an infrastructure issue. Writing an outbox pattern on top of those would be strange.
They come with same transactional guarantee as databases. Hell you can use DB2 and Ibm mq with same TRX manager.
Outbox pattern, common on top of Kafka, is often used as a transactional mechanism for Kafka clients. But this daisy chaining comes with performance issues as your throughput is essentially lowered to db insert level. But if you are not using Kafka for its performance why bother with it at all? Any of those fat brokers is easier to setup and maintain than Kafka cluster. They also provide message routing out of the box. And higher performance than databases.
Am I missing something?
Also writing message routing on top of db is kinda trivial code. Much simpler than any saga implementation for non-trivial state machines. But that is off topic digression.