Skip to content

teomangungoren/CQRS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Ekran görüntüsü 2024-05-02 223906 Ekran görüntüsü 2024-05-02 224307 Ekran görüntüsü 2024-05-02 224324

About

redis pub-sub with cqrs pattern

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages