Event-based Architecture and Implementation with Atom and Kafka
Event-based Architecture is a great answer to typical challenge of microservices architectures like resilience. This presentation shows how asynchronous microservices can be implemented with Atom / REST and Kafka.
Delivery address ??? Invoice Delivery ??? • Lots of data • Which Bounded Context uses what? • Changes can impact all modules • DDD: Published Language • THE order model?
partitions • Order guaranteed per partition • Consumer commits offset per partition • Consumer group: One consumer per partition Topic Partition Record Record Record
• …and denormalized • Each invoice and delivery contains customer and item data from when the order was created. • Bounded Context • No complex historization
Context • …communicate via business events • Inconsistencies can be dealt with • What is in the event? • Don’t share events for event sourcing! • Do not overuse event sourcing. • Kafka: Great solution for messaging • …but REST might be enough.
EN + Microservices Recipes DE / EN + Sample Microservices Book DE / EN + Sample Practical Microservices DE/EN + Sample of Continuous Delivery Book DE Powered by Amazon Lambda & Microservices