
5/12/2023 · Ernesto Matos
What this post added
Loggi details their adoption of an event-driven architecture using Apache Kafka and Confluent Cloud to scale their logistics platform. They migrated from a monolithic system, focusing on improving developer productivity and system resilience. Key technical implementations include the transactional Outbox Pattern for producing events with strong transactional guarantees (ensuring database writes and Kafka event production are atomic) and an Event Broker microservice that consumes events from Kafka and delivers them to consumer services via gRPC. This design abstracts Kafka complexity for engineers, allowing them to focus on business logic. They also discuss lessons learned regarding potential bottlenecks in the Event Broker microservice, organizational trade-offs, and the importance of observability and performance tuning, including the use of dedicated Kafka consumers for high-volume events.