Architectures
• Microservices Architecture Patterns&Principles
• The Database-perService Pattern
• Polygot Persistence
• Decompose services by scalability
• The Scale Cube
• Microservices Decomposition Pattern
• Microservices Communications Patterns
• Microservices Data Management Patterns
• Microservices Distributed Transaction Pattern
Non-FR
• High Scalability
• High Availability
• Millions of Concurrent User
• Independent
FR
• List products
• Filter products as per brand and categories
• Put products into the shopping cart
• Apply coupon for discounts
• Checkout the shoppingcart and create an orde• List my old orders and order items history
Microservices Data Choosing Database
• The Shared Database Antipattern, Relational and NoSQL Databases
• CAP Theorem–Consistency, Availability, Partition Tolerance
• Data Partitioning:
Horizontal, Vertical and Functional Data Partitioning
• Database Sharding Pattern
Microservices Distributed Transactions
• SAGA Pattern
• Choreography and Orchestration-based SAGA
• Compensating Transaction Pattern
• Dual-Write Problem
• Transactional Outbox Pattern
• CDC - Change Data Capture
Microservices Data Commands&Queries
• Materialized View Pattern
• CQRS Design Pattern
• Event Sourcing Pattern
• Eventual Consistency