Skip to Content
Cloud Native Python
book

Cloud Native Python

by Manish Sethi
July 2017
Intermediate to advanced
374 pages
8h
English
Packt Publishing
Content preview from Cloud Native Python

Applying Event Sourcing with Kafka

Let's take a use case where the client tries to perform a certain operation, and we are using Kafka as an eventstore to capture all the messages that are being passed. In this case, we have the user management service, which could be a microservice responsible for managing all user requests. We will start with identifying the topics for Kafka based on user events, which could be one of the following:

  • UserCreatedEvent
  • UserUpdatedEvent
  • UserDeletionEvent
  • UserLoggedinEvent
  • UserRoleUpdatedEvent

These events will, ideally, be published by the User Management Service, and all microservices will consume these events. The following diagram shows the user request flow:

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python for DevOps

Python for DevOps

Noah Gift, Kennedy Behrman, Alfredo Deza, Grig Gheorghiu
Cloud Native

Cloud Native

Boris Scholl, Trent Swanson, Peter Jausovec

Publisher Resources

ISBN: 9781787129313Supplemental Content