inflearn logo

A Fault-Tolerant Python MSA with No Data Loss: Apache Kafka 4.x Event-Driven Architecture — 40 Lessons

This practical 40-lesson course takes the OrderFlow e-commerce MSA project as its focus, guiding you through hands-on implementation and verification in a local Apache Kafka 4.0.0 KRaft + Python (confluent-kafka · aiokafka · FastStream) environment, covering everything from Outbox, idempotency, Retry/DLQ, Saga compensation, and CQRS to W3C distributed tracing.

3 learners are taking this course

Level Intermediate

Course period Unlimited

Kafka
Kafka
MSA
MSA
Python
Python
Docker
Docker
EDA
EDA
Kafka
Kafka
MSA
MSA
Python
Python
Docker
Docker
EDA
EDA

What you will gain after the course

  • Apache Kafka 4.x KRaft Architecture Without ZooKeeper and Tuning Principles for Partition Keys, Batching, and Compression (lz4/zstd)

  • KIP-848 Server-Driven Rebalancing, Manual Offset Commits, aiokafka Semaphore-Based Concurrency Control, and Graceful Shutdown

  • FastStream + Pydantic v2 AsyncAPI 3.0 contracts and Avro binary serialization with zero-downtime schema evolution

  • Achieve zero message loss and duplication with DB unique-key idempotency, the Transactional Outbox pattern, and Kafka transactions (read_committed).

  • Implement Poison Pill isolation, non-blocking Retry Topic, forensic DLQ Redrive, and circuit breaker backpressure.

  • Choreography/Orchestration Saga compensation rollbacks, CQRS read projections, TestKafkaBroker testing, and W3C distributed tracing

Recommended for
these people

Who is this course right for?

  • Web backend developer with experience in Python functions and classes, basic SQL, and HTTP API development.

  • A developer looking to replace a failure-prone synchronous REST call chain with an asynchronous, Kafka-based event-driven architecture (EDA/MSA)

  • For those who want to validate real-world operational patterns such as Outbox, DLQ, Saga, and idempotency with code and metrics—not just follow a basic tutorial.

Need to know before starting?

  • Understanding of Python fundamentals (functions, classes, type hints) and basic SQL/HTTP APIs

  • Local Docker Desktop setup (one-click launch of Kafka 4.0.0 KRaft + Kafka UI using the provided docker-compose.yml)

Hello
This is catgpt

Career Verified

A through-and-through AI researcher, 'CatGPT', who busted their ass reading papers and fine-tuning models. Then one day, a bolt-from-the-blue mission landed in their lap: "You’ve finished building the model, right? Now write the front end and back end too so we can deliver it to the client."

To survive, I was forced to make a tearful career change into a full-stack developer. After successfully delivering the solution and making it back, AI had advanced so much that this time, instead of coding, I found myself taking on the role of a PM coordinating a team with AI...!

Not stopping there, this max-level engineer went all in and poured their full-stack soul into building a “lecture production automation pipeline” and even bringing an “AI instructor” to life. What fate awaits CatGPT, the full-stack AI engineer who has automated even their own livelihood(?)!

More

Curriculum

All

40 lectures ∙ (5hr 29min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

Not enough reviews.
Please write a valuable review that helps everyone!

catgpt's other courses

Check out other courses by the instructor!

Similar courses

Explore other courses in the same field!

Limited time deal

$613,598.00

39%

$38.50