Skip to main content

Posts

Featured

Design the Architecture

CQRS, Event Sourcing, Eventual Consistency, Materialized View We are going to Design our e-commerce Architecture with applying CQRS Pattern.   Now We can Design our Ordering microservices databases I am going to split 2 databases for Ordering microservices 1 for the write database for relational concerns 2 for the read database for querying concerns So when user create or update an order, I am going to use relational write database, and when user query order or order history, I am going to use no-sql read database. and make consistent them when syncing 2 databases with using message broker system with applying publish/subscribe pattern. Now we can consider tech stack of these databases, I am going to use SQL Server for relational writing database, and using Cassandra for no-sql read database. Of course we will use Kafka for syncing these 2 database with pub/sub Kafka topic exchanges. So we should evolve our architecture with applying other Microservices Data Patterns in orde...

Latest Posts

CQRS Pattern