We have two microservices here implementing the CQRS pattern, separating read and write operations into distinct services. These services communicate asynchronously using the Redis pub-sub mechanism. The command service publishes an event when a product is saved, and the query service, which subscribes to the product-event topic, receives and processes this event, then persists it into its own database. Additionally, we've applied the @Retryable annotation to handle any failures that might occur during event processing. Our main goal here was to implement the CQRS pattern, though a much more complex scenario could be envisioned, of course.
-
Notifications
You must be signed in to change notification settings - Fork 0
teomangungoren/CQRS
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
redis pub-sub with cqrs pattern
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published