Design Microservices Architecture with Patterns & Principles

Evolve from Monolithic to Event-driven Microservices Architecture with designing High Scalable and High Available system

  • 0.0 (0 Reviews)
  • 0 Students
  • 180 Lessons
  • Mehmet Ozkaya

Course Overview

In this course, we’re going to learn how to Design Microservices Architecture with using Design Patterns, Principles and the Best Practices with Iterate Design Architecture from Monolithic to Microservices. We will using the right architecture design patterns and techniques.

By the end of the course, you will Learn how to handle millions of request with designing system for high availability, high scalability, low latency, and resilience to network failures on microservices distributed architectures.

This course is will be the journey of software architecture design with step by step evolving architecture from monolithic to event driven microservices.

We will start the basics of software architecture with designing e-commerce Monolithic architecture that handles low amount of requests.

After that step by step evolves the architecture with;

  • 3-Tier Architecture

  • Modular Monolithic Architecture

  • Microservices

  • Event-Driven Microservices Architectures

  • and lastly Serverless Microservices Architectures with designing together that handle millions of requests. This is a step-by-step process for software system design and evolve from monolithic to microservices following the patterns & principles.

We will discuss microservices architectures with all aspects,

  • Microservices Decomposition

  • Microservices Communications (Sync / Async Message-Based Communication, API Gateways)

  • Microservices Data Management (Databases / Query / Commands)

  • Microservices Transaction Management

  • Microservices Distributed Caching

  • Microservices Deployments with Containers and Orchestrators

  • Microservices Resilience

with applying microservices design patterns and practices.

We are going to design with together and step by step with refactor architectures with all aspects of microservices pillars.

We will start with designing Monolithic Architecture. And you can see that we have Functional and Non-functional requirements that should cover our design and we have patterns and principles toolbox that we will learn and use these principles when evolving architectures.

Way of Learning — The Course Flow

We will always starts with the problem and try to solve this problem with learning and designing new architectures, patterns and best practices.

  • Problem -> Learn -> Design -> Code -> Evaluate

We will complete this circle for every section of the course. You will find that we will add new requirements in order to handle millions of request and learn new patterns and practices that will use these principles when evolving architectures.

That means you're not just passively receiving information. You're actively participating in the architectural decision-making process, seeing the direct impact of each pattern and principle through code. We'll emphasize the 'why' behind every decision,  ensuring you build a deep understanding.

We will see full of patterns and principle toolbox is loading with new patterns and apply them into current designs. We will see latest patterns that we use more than 30 patterns and practices with implementing high scalability, high availability and handle millions of request requirements.

Let me write some microservices pattern which we covered in this course;

  • The Database-per-Service Pattern

  • API Gateway Pattern, Gateway Routing/Aggregation/Offloading Pattern

  • Backends for Frontends pattern BFF

  • Service Aggregator Pattern, Service Registry/Discovery Pattern

  • Fan-out Publish/Subscribe Messaging Pattern

  • Topic-Queue Chaining & Load Balancing Pattern

  • The Shared Database Anti-Pattern and Polyglot Persistence

  • Database Sharding Pattern, CAP Theorem

  • Materialized View Pattern

  • CQRS and Event Sourcing Patterns

  • SAGA Pattern — Choreography-based/Orchestration-based SAGA

  • Compensating Transaction Pattern

  • Transactional Outbox Pattern

  • Dual Write Problem

  • CDC — Change Data Capture with Outbox Pattern

  • Event Hubs and Real-time Event Streaming in Event-Driven Microservices Architecture

  • Cache-Aside Pattern for Microservices Distributed Caching

  • Sidecar Pattern

  • Service Mesh Pattern

  • DevOps and CI/CD Pipelines for Microservices Deployments

  • Deployment Strategies for Microservices: Blue-green, Rolling and Canary deployments

  • Infrastructure as Code (IaC) and usage in Microservices Deployments

  • Microservices Resilience, Observability and Monitoring Patterns

  • Retry and Circuit Breaker Patterns

  • Bulkhead / Timeout / Cache / Fallback Patterns

  • Elastic Stack for Microservices Observability with Distributed Logging

  • Microservices Health Checks: Liveness, Readiness and Performance Checks

  • Serverless Microservices Architecture implementation on AWS

So the course flow will be the both theoretical and practical information;

  • We will always start with a business problem

  • We will learn a specific pattern, why and where we should use

  • After that we will see the Reference architectures that applied these patterns

  • After that we will design our architecture with applying this newly learned pattern with together

  • And lastly we will decide which Technologies can be choices for that architectures.

And for each section, we will made Code Review for Existing Microservices Architecture Repository on GitHub for practical implementation of microservices architecture.

So this course will includes

  • Hands-on Design Activities

  • Iterate Design Architecture from On-Premises to Cloud Server-less architectures

  • Evolves architecture monolithic to Event-Driven Microservices Architectures

  • Refactoring System Design for handling million of requests

  • Apply best practices with microservices design patterns and principles

  • Examine microservices patterns with all aspects like Communications, Data Management, Caching and Deployments

  • Prepare for Software Architecture Interviews

  • Prepare for System Design Architecture Interview exams.

I have been joined several famous company's architecture position interviews, also involved software architect positions assessment process more than 50+ interviews collect the architecture requirements for software industry positions.

So with this course, you will gain real-world experience about all architecture positions from monolithic to event-driven microservices architectures.

This course prepared for the beginner but at least you should familiar with basics of software architectures. This course will have good theoretical information but also will be 90% of hands-on design activities. All course architecture steps will designed step by step and together.

I hope you'll join me on this journey and develop this project with me.

See more

FAQ

FAQ area empty

Course curriculum

17 chương 180 bài học 14 giờ 45 phút 7 bài học thử miễn phí
Chương 1 Course Introduction
Chương 2 Monolithic Architecture
  • Monolithic Architecture: When to Use, Benefits and Challenges 6:34
  • Foundational Design Principles: KISS, YAGNI, DRY Học thử 4:28
  • Design: EShop Monolithic App w/ KISS & YAGNI 6:10
  • Code: EShop Monolithic App w/ KISS & YAGNI 8:59
  • Problem: Customer Basket Items Disappeared When App Restarts 5:19
  • Design: E-Shop Monolithic App with a Persistent Database Học thử 3:08
  • Code: E-Shop Monolithic App with PostgreSQL Database 9:13
  • Problem: Tightly Coupled UI Limits Flexibility and User Experience 3:23
  • Learn: 3-Tier Architecture – Separating Presentation, Application, and Data 6:23
  • Design: E-Shop Monolithic App with 3-Tier Architecture 3:23
  • Code: E-Shop with 3-Tier Architecture (SPA, Backend API & Database) 11:36
  • Big Ball of Mud 1:18
  • Problem: Growing Pains-Our Monolith is Becoming Hard to Manage and Evolve 3:40
  • System Design Interview: The E-Commerce Startup
  • Monolithic Architecture Quiz
Chương 3 Modular Monoliths Architecture
  • Modular Monoliths Architecture: When to Use, Benefits and Challenges 7:40
  • Design: E-Shop Modular Monoliths Architecture 5:25
  • Best Practice: DB Schema separation of Modules in Modular Monoliths apps 2:44
  • Code: E-Shop Modular Monoliths Architecture 11:40
  • Monoliths Vertical Considerations (Communication, Transactions, Deployments) 6:06
  • Problem: Product Page Slowness - Failures During Peak Traffic 4:02
  • Learn: Output Caching – Speeding Up Repetitive Requests 5:36
  • Design: E-Shop Modular Monoliths with Redis Output Caching 4:54
  • Code: E-Shop Modular Monoliths with Redis Output Caching 10:16
  • Problem: Increased Traffic, Can't Handle More Request w/ Single App Instance 3:29
  • Taming the Monolith: Proposing a Modular Architecture
  • Modular Monolithic Architecture Quiz
Chương 4 Scalability - Vertical and Horizontal Scaling
  • Learn: Scalability - Why need to Scale ? 2:19
  • Vertical and Horizontal Scaling 6:29
  • What is Load Balancer ? Use Load Balancer Splitting the Load 6:27
  • Design: E-Shop Monolithic App with Horizontal Scaling and Load Balancer 6:50
  • Code: E-Shop Monolithic App with Horizontal Scaling 8:57
  • Problem: Ship New Features Faster to Compete the Market 5:04
  • Scaling for Success: An Architectural Interview Challenge
  • Scalability Quiz
Chương 5 Microservices Architecture
  • What are Microservices and Microservices Architecture ? 7:58
  • When to Use / When NOT to Use Microservices Architecture 8:04
  • The Database-per-Service Pattern - Polyglot Persistence 5:07
  • Design: E-Shop Microservices Architecture 7:20
  • Code: E-Shop Microservices Architecture 15:31
  • Problem: Validating Our Service Boundaries - How to Decompose Microservices 3:24
  • The Leap to Microservices: A System Design Interview
  • Microservices Architecture Quiz
Chương 6 Microservices Decomposition Strategies
  • Decomposition of Microservices Architectures 4:11
  • Microservice Decomposition Patterns: Decompose by Business Capability, SubDomain 6:15
  • Identifying and Decomposing Microservices for E-Shop Domain 6:34
  • Strangler Fig Pattern for Refactoring Monoliths into Microservices 6:27
  • Problem: How Microservices Communicate with Each Other 2:28
  • Planning the Migration: From Monolith to Microservices
  • Microservices Decomposition Quiz
Chương 7 Microservices Communications - The Basics
  • Microservices Communication Basics and Differences between Monoliths 7:14
  • Microservices Communication Types - Synchronous(Request-Driven) or Asynchronous 4:16
  • RESTful API design for Microservices 14:18
  • Design: E-Shop Microservices with RESTful API design 5:01
  • Code: E-Shop Microservices with RESTful API design 16:27
  • Problem: Multiple Request (N+1) for Retrieving Relational Data 4:16
  • GraphQL: A Query Language for APIs 6:07
  • Design: Microservices Architecture with GraphQL API Design 4:09
  • Problem: Inter-service communication makes heavy load on network traffic 4:14
  • GRPC: High Performance Remote Procedure Calls 6:33
  • Design: Microservices Architecture with gRPC API design 5:57
  • Problem: Direct Client-to-Service Communication 4:09
  • Choosing the Right API: A Microservices Communication Interview
  • Microservices Communications Quiz
Chương 8 Microservices Communication Patterns - API Gateways
  • Introduction: Microservices Communication Patterns - API Gateways 1:45
  • Gateway Routing, Gateway Aggregation, Gateway Offloading Patterns 7:39
  • API Gateway Pattern 4:07
  • Design: Microservices Architecture with API Gateway Design 6:40
  • Code: Microservices Architecture with API Gateway Design 15:50
  • Problem: Client Apps has Different UI Requirements 4:02
  • Backends for Frontends Pattern - BFF Pattern 4:44
  • Design: Microservices Architecture with Backends for Frontends Pattern-BFF 5:35
  • Service-to-Service Communications between Backend Internal Microservices 5:12
  • Problem: Service-to-Service Communications Chain Queries 3:30
  • Service Aggregator, Service Registry/Discovery Patterns 7:19
  • Design: Microservices Architecture with Service Aggregator, Registry/Discovery 6:24
  • Problem: Long Running Operations Can't Handle with Sync Communication 3:55
  • Designing the "Front Door": API Gateway and BFF Interview Challenge
  • Microservices Communication Patterns Quiz
Chương 9 Microservices Asynchronous Communication & Event-driven Architecture
  • Introduction - Microservices Asynchronous Communication & Event-driven Architect 4:18
  • Asynchronous Communication Types: one-to-one / one-to-many 4:00
  • Event-Driven Architecture and Publish/Subscribe Pattern 7:41
  • Design: Microservices Architecture w/ EDA and Publish/Subscribe Pattern 6:43
  • Code: Microservices Architecture w/ EDA and Publish/Subscribe Pattern 21:09
  • The Scale Cube & Stateful Application Horizontal Scaling 5:17
  • Problem: Databases Create Bottlenecks When Scaling 4:39
  • Designing a Resilient Order Process: An Event-Driven Architecture Interview
  • Microservices Asynchronous Communication Quiz
Chương 10 Microservices Data Management - Choosing Right Database
  • Introduction - Microservices Data Management Patterns and Principles 2:13
  • The Database-per-Service Pattern 3:25
  • The Shared Database Anti-Pattern and Polyglot Persistence Principle 4:30
  • Relational and NoSQL Databases - Document, Key-value, Graph-based, Column-based 8:34
  • When to Use Relational or No-SQL Databases ? 5:42
  • How to Choose a Database for Microservices and CAP Theorem 10:39
  • Problem: Single Database Server Performs Low Performance 3:23
  • Data Partitioning: Horizontal, Vertical and Functional Data Partitioning 8:05
  • Database Sharding Pattern & Tinder System Design Example 6:44
  • Design: Microservices Architecture with Database Sharding Pattern 6:55
  • Problem: Cross-Service Queries and Write Commands on Distributed Scaled Database 2:27
  • Choosing the Right Database: A Data Architecture Interview
  • Microservices Data Management Quiz
Chương 11 Microservices Data Management - Commands and Queries
  • Introduction - Microservices Data Management Patterns and Principles 6:00
  • Materialized View Pattern 5:49
  • CQRS — Command Query Responsibility Segregation Pattern 8:18
  • How to Sync Read and Write Databases in CQRS ? 5:52
  • Event Sourcing Pattern with CQRS and Eventual Consistency Principle 6:28
  • Design Instagram System & Database Architecture 7:28
  • Design: Microservices Architecture with CQRS, Event Sourcing, Eventual Consisten 8:16
  • Problem: Manage Consistency Across Microservices in Distributed Transactions 1:25
  • Optimizing Reads & Writes: A CQRS Design Interview
  • Microservices Data Management - Commands and Queries Quiz
Chương 12 Microservices Distributed Transactions
  • Introduction - Microservices Distributed Transactions and Fundamentals, ACID 4:33
  • The Challenge of Distributed Transactions in Microservices 4:44
  • Microservices Bounded Context for Transactional Boundaries 5:52
  • SAGA Pattern for Distributed Transactions (Choreography and Orchestration SAGA) 9:06
  • Compensating Transaction Pattern 6:29
  • Problem: Dual Write Problem 5:14
  • Transactional Outbox Pattern in Microservices 7:37
  • Problem: Listen and Polling Outbox Table 3:03
  • CDC - Change Data Capture with Outbox Pattern 7:32
  • Design: Microservices Architecture with SAGA, Outbox Pattern and CDC 9:20
  • Code: Microservices Architecture with SAGA, Outbox Pattern and CDC 15:36
  • Problem: Database operations are expensive, low performance 3:47
  • A Distributed Transaction Design Interview
  • Microservices Distributed Transactions Quiz
Chương 13 Microservices Distributed Caching
  • Introduction - What is Caching, Caching Types and Distributed Caching 4:44
  • Caching Strategies in Distributed Caching for Microservices 2:47
  • Cache-Aside Pattern for Microservices 5:24
  • Design: Microservices Distributed Caching with Cache-Aside Pattern 7:38
  • Code: Microservices Distributed Caching with Cache-Aside Pattern 11:55
  • Problem: Deploy Microservices at Anytime with Zero-downtime and flexible scale 3:41
  • Solving Performance Bottlenecks: A Distributed Caching Interview
  • Microservices Distributed Caching Quiz
Chương 14 Microservices Deployments with Containers and Orchestrators
  • Introduction - Microservices Deployments with Containers and Orchestrators 2:14
  • What are Container ? Running Microservices in Containers 6:43
  • What is Docker ? Docker Containers, Images, and Registries and Docker Architect 4:15
  • What are Container Orchestrators ? Why use them for microservices deployments ? 3:07
  • What is Kubernetes ? Kubernetes Architecture, Components and Helm Charts 9:02
  • Sidecar and Service Mesh Patterns for Microservices Deployments 6:04
  • Devops and CI/CD Pipelines for Microservices Deployments 7:32
  • Deployment Strategies for Microservices: Blue-green, Rolling and Canary Deployme 4:37
  • Infrastructure as Code (IaC) and usage in Microservices Deployments 8:45
  • What is GitOps ? How GitOps used in Microservices Deployments ? 10:01
  • Design: E-Shop Microservices with Devops, CI/CD, IaC and GitOps 8:45
  • Code: E-Shop Microservices with Devops, CI/CD, IaC and GitOps 8:39
  • Problem: Fault tolerance Microservices able to remains operational for any fail 3:07
  • From Code to Cluster: A DevOps & Kubernetes Interview
  • Microservices Deployments with Containers and Orchestrators Quiz
Chương 15 Microservices Resilience, Observability and Monitoring
  • Introduction - Microservices Resilience, Observability and Monitoring 4:34
  • What is Microservices Resiliency 4:25
  • Microservices Resiliency Patterns 3:47
  • Retry Pattern 4:16
  • Circuit Breaker Pattern 4:08
  • Circuit Breaker States 1:10
  • Retry + Circuit Breaker Pattern 3:57
  • Bulkhead Pattern 4:53
  • Timeout Pattern 1:45
  • Fallback Pattern 1:31
  • Microservices Observability with Distributed Logging and Distributed Tracing 4:25
  • Elastic Stack for Microservices Observability with Distributed Logging 5:37
  • Microservices Distributed Tracing with OpenTelemetry using Zipkin 3:36
  • Microservices Health Checks: Liveness, Readiness and Performance Checks 2:53
  • Microservices Health Monitoring with Kubernetes, Prometheus and Grafana 3:21
  • Design: Microservices Resilience, Observability and Monitoring 4:35
  • Adapt: Microservices Resilience, Observability and Monitoring 2:19
  • Surviving Production: A Microservices Resilience & Observability Interview
  • Microservices Resilience, Observability and Monitoring Quiz
Chương 16 Serverless Microservices Architecture
  • Introduction - Serverless Microservices 2:27
  • AWS Serverless Microservices with Patterns & Best Practices 5:00
  • AWS Lambda as a Microservice 4:37
  • Mapping Microservice Architecture with AWS Serverless Services for Microservice 4:25
  • Event-driven Serverless Microservices Design with AWS Lambda 6:21
  • Serverless Microservices Quiz
Chương 17 Thanks
  • Thanks 0:51
  • Bonus Lecture

Requirment

  • Software Architecture Basics

Outcomes

  • Design Microservices Architecture with using Design Patterns, Principles and the Best Practices

  • Learn how to handle millions of request with designing system for High Availability, High Scalability, low latency, and resilience to network failures

  • Journey of Software Architecture Design from Monolithic to Serverless Microservices

  • Step by step evolving architecture from Monolithic to Event-driven Microservices Architecture

  • Design E-commerce App with Monolithic - Layered - Clean - Modular Monolithic - Microservices - Event-Driven Architecture and Serverless Microservices

  • Microservices Decomposition Strategies

  • Microservices Communications (Sync / Async Message-Based Communication, API Gateways))

  • Microservices Data Management (Databases / Query / Commands / Distributed Transactions)

  • Microservices Distributed Transaction Management

  • Microservices Distributed Caching

  • Microservices Deployments with Containers and Orchestrators

  • Microservices Resilience, Observability, Monitoring

  • Microservices Design Patterns and Best Practices

  • The Database-per-Service Pattern, Polyglot Persistence and The Shared Database Anti-Pattern

  • API Gateway Pattern, Backends for Frontends Pattern-BFF, Gateway Routing/Aggregation/Offloading Pattern

  • Service Aggregator Pattern, Service Registry/Discovery Pattern

  • Materialized View Pattern, Database Sharding Pattern, CAP Theorem

  • Fan-out Publish/Subscribe Messaging Pattern, Topic-Queue Chaining & Load Balancing Pattern

  • CQRS and Event Sourcing Patterns, Eventual Consistency Principle, CAP Theorem

  • SAGA Pattern — Choreography-based/Orchestration-based SAGA, Compensating Transaction Pattern

  • Transactional Outbox Pattern, Dual Write Problem

  • CDC — Change Data Capture with Outbox Pattern

  • Code Review for Existing Microservices Architecture Repository on GitHub

  • Event Hubs and Real-time Event Streaming in Event-Driven Microservices Architecture

  • Cache-Aside Pattern for Microservices Distributed Caching

  • Sidecar Pattern, Service Mesh Pattern

  • DevOps and CI/CD Pipelines for Microservices Deployments

  • Deployment Strategies for Microservices: Blue-green, Rolling and Canary deployments

  • Infrastructure as Code (IaC) and usage in Microservices Deployments

  • Microservices Resilience, Observability and Monitoring Patterns

  • Retry and Circuit Breaker Patterns

  • Bulkhead / Timeout / Cache / Fallback Patterns

  • Elastic Stack for Microservices Observability with Distributed Logging

  • Microservices Health Checks: Liveness, Readiness and Performance Checks

  • Serverless Microservices Architecture implementation on AWS

  • Hands-on Design Activities, Iterate Design Architecture from On-Premises to Cloud Serverless architectures

  • Refactoring System Design for handling million of requests

  • Prepare for Software Architecture Interviews

  • Prepare for System Design Architecture Interviews

Instructor

...
Mehmet Ozkaya

0.0

  • ... 0 Student
  • ... 13 Courses
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all
Một sản phẩm của Công ty Cổ phần Thương mại Vạn Tín Việt·vantinviet.com