Building an event driven microservice using Kafka and MongoDB in Golang
summary
An event-driven backend for Myntra moves from NodeJS to Golang to handle 22 million active users, replacing RethinkDB with MongoDB and using Apache Kafka for high-throughput event streaming. The service writes in parallel to an event store and Kafka using Golang goroutines, uses sarama async producers and batching for low latency, relies on sync.Once, defer/panic/recover for robustness, and is unit-tested with testify. The NodeJS version stays live while the Go rewrite is staged for production rollout.
AI-written summary · about
