Event-Driven Architecture with Apache Kafka
A production-grade blueprint for enterprise event-driven systems — covering cluster design, topic strategy, producer/consumer patterns, schema management, error handling, and observability.
Event-driven architecture with Kafka is appropriate when you have multiple services that need to react to the same events asynchronously, when you need to decouple producers from consumers, or when you need high-throughput, fault-tolerant message processing with replay capability. It is also one of the most over-adopted patterns in enterprise architecture — used where a simpler request-response model would serve better.
If you cannot articulate why you need event replay, multiple independent consumers, or throughput above ten thousand events per second, you probably do not need Kafka. You need a message queue, and the operational overhead of Kafka will cost you more than it returns.
- ✓Multiple consumers need to react to the same event independently
- ✓High throughput — above 10,000 events per second
- ✓Audit trail and event replay capability are required
- ✓Loose coupling between producing and consuming services
- ✗Simple request-response communication would suffice
- ✗Low message volumes (under 1,000 events/sec)
- ✗Strong transactional consistency is the primary requirement
- ✗The team lacks Kafka operational expertise and has no time to build it
Topic Design Patterns
Topic design is where most event-driven architectures succeed or fail. These patterns are the difference between a system that scales cleanly and one that becomes an unmaintainable tangle of poorly-named topics with inconsistent ordering guarantees.
| Criterion | Pattern | Why it matters |
|---|---|---|
| Domain prefix naming | orders.created, orders.shipped — enables team ownership and fine-grained ACLs per namespace | |
| Past-tense events | user.registered, payment.processed — events describe facts that occurred, not commands | |
| Partition by entity key | Partition by customer_id — guarantees all events for an entity are processed in order | |
| Tiered retention | Transactional: 7 days. Audit: 7 years — match retention to compliance and replay needs | |
| Dead-letter queues | Every production topic needs a DLQ — failed messages must never be silently dropped |
Get the Kafka Architecture Diagram as a PDF
The enterprise event-driven architecture diagram, topic naming guide, and production checklist — for architecture review boards.
Production Implementation Sequence
- 01Provision a 3-broker cluster with rack awarenessWeek 1
Minimum 3 brokers for production HA. Replication factor 3 for all critical topics. Enable rack awareness for multi-AZ deployment. Use KRaft mode (Kafka 3.3+) to eliminate the ZooKeeper dependency.
- 02Establish schema governanceWeek 2
Deploy Confluent Schema Registry or AWS Glue Schema Registry. Enforce Avro or Protobuf — never plain JSON in production. Define a backward-compatibility policy owned by the producing team.
- 03Implement security baselineWeek 2–3
TLS encryption in transit. SASL authentication (SCRAM-SHA-256 or OAuth). ACLs per topic namespace per team. Audit logging for all admin operations.
- 04Build the observability stack before going liveWeek 3–4
Consumer group lag monitoring with alerts at 5-minute lag. Broker metrics: under-replicated partitions, ISR size. Producer metrics: record-error-rate, request-latency. DLQ growth-rate alerting.
Related content
There are 9 more like this. Plus AI advisors that go deeper.
Sign up free to get new research in your inbox, download frameworks as PDFs, and try the Cloud Architecture Advisor — AI that personalises this guidance for your specific situation.
The Leadership Brief
Weekly practitioner intelligence — platform engineering, AI, cloud architecture. Every Monday. Free forever.
Downloadable frameworks
Platform Gravity Model™, IDP selection flowchart, AI Deployment Ladder — as one-pager PDFs for your team.
Early access to research
New reports and frameworks reach members before public release.
1 free AI Advisor question
Try a Reymentos AI Advisor on what you just read. No subscription needed to try.
Free forever · No credit card · Unsubscribe anytime · $39/mo for AI advisors