Loading video player...
š SUBSCRIBE for more content like this š: https://www.youtube.com/@kcode_tech?sub_confirmation=1 --- In this video, we solve the dual-write problem in distributed systems by implementing the Transactional Outbox Pattern with Kafka and PostgreSQL in Go! Learn how to guarantee event publishing even when your message broker is down or network fails. šÆ What You'll Learn: - The dual-write problem in event-driven architectures - Transactional Outbox Pattern explained - Database transaction patterns with events table - Polling publisher implementation with ticker - Atomic database + event writes in single transaction - Event status tracking (pending ā produced) - Idempotent event publishing 00:00 Intro 01:05 Outbox Pattern Visualized 10:27 Outbox Kafka Code 26:51 Running Code --- š Previous Videos: Part 1 - Kafka Producer & Consumer Basics: https://www.youtube.com/watch?v=mVDdspGv8qE Part 2 - Kafka Exactly-Once Offset Commit: https://www.youtube.com/watch?v=rvB6Az0ppSg Part 3 - Kafka Partition Rebalancing On API Scaling: https://youtu.be/Q1jz4_oKnWs š Useful Links: GitHub Repository: https://github.com/k-code-yt/go-api-practice/tree/main/kafka-outbox š± Social media links: - Twitch: https://www.twitch.tv/kcode_tech #kcode #go #golang #kafka #exactlyonce #offset #concurrency #distributed #systems #messaging #idempotency #database #transactions #sync #mutex #programming #tutorial #advanced