Beyond Kafka: Leveraging Event-Driven Architectures with Go and NATS JetStream
summary
Claims that NATS JetStream replaces Kafka for small-to-medium workloads with far lower resource use: an example migration cuts broker CPU/memory from ~95% to ~10% and now to ~5% while handling ~50 million messages/day. Demonstrates Go code that publishes JSON "order" events, creates durable consumers, ack processing, and uses an embedded server for tests. Notes JetStream gives streams+consumers semantics, easier deployment and replication, but ordering and partition guarantees require extra manual setup.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:00Architectural fundamentals
- 4:37Migration from Kafka to NATS
- 6:51Introduction to NATS JetStream
- 8:24NATS concepts and mechanics
- 14:49Performance results
- 15:55Code demonstration
- 23:10Q&A and conclusion
related talks
05mGo for Real Time Streaming Architectures
37mIntro: NATS
37mConnect All the Things! Using NATS To Simplify Communication Everywhere
27mKeynote II: Kafka and the Rise of Event-Driven Microservices
34mState of NATS: Core, Persistence, & Materialized Views
36mStream All The Things!
30mHigh Performance Systems in Go
40mThe Zen of High Performance Messaging with NATS
