Microservices Architecture Tutorial: MySQL + MongoDB + gRPC + JMeter Performance Testing

Опубликовано: 24 Сентябрь 2026
на канале: Youssef Bazina
148
9

In this comprehensive tutorial, we explore microservices architecture patterns and hands-on implementation with real-world technologies.

📚 What You'll Learn:
• Architecture patterns: Monolith vs Microservices
• MySQL for persistent data storage
• MongoDB caching for performance optimization
• gRPC and Protobuf for efficient service communication
• HTTP/2 multiplexing for low-latency transport
• JMeter performance testing strategies
• P90 latency optimization techniques

🏗️ Project Overview:
Build a Movie Rating App with multiple microservices:
Movie Catalog Service
Ratings Service (MySQL)
Movie Info Service (with MongoDB caching)
Trending Movies Service (gRPC)

⏱️ Timestamps:
00:00 - Introduction & Overview
00:58 - Monolith vs Microservices
02:12 - Application Architecture
03:38 - Step 1: MySQL Database Implementation
04:09 - Step 2: MongoDB Caching Strategy
05:03 - Step 3: gRPC Trending Service
06:00 - Step 4: JMeter Performance Testing
07:27 - Deliverables & Requirements
7:50 - Closing

🔧 Technologies Covered:
✓ MySQL - Relational Database
✓ MongoDB - Document Store Cache
✓ gRPC - Binary Protocol RPC Framework
✓ Protobuf - Efficient Serialization
✓ JMeter - Load & Performance Testing
✓ Microservices Communication Patterns

📊 Key Metrics:
• Reduce latency: 2000ms → 5ms with caching
• Test under load: Thread groups, ramp-up, loops
• Measure P90 percentiles & throughput
• Identify bottlenecks with JMeter listeners

👥 Who Is This For?
Software engineering students
Backend developers learning microservices
DevOps engineers
System designers
Anyone preparing for DDIA (Designing Data-Intensive Applications)

💡 Lab Requirements:
Implement MySQL schema for ratings
Design MongoDB cache strategy
Build gRPC trending service
Create JMeter test plans
Compare performance before/after

📖 Based on: "Designing Data-Intensive Applications" by Martin Kleppmann

🔗 Resources & Links:
Your GitHub/Repository Link: https://github.com/yigiterinc/spring-...

#Microservices #MySQL #MongoDB #gRPC #JMeter #PerformanceTesting #BackendDevelopment #SystemDesign #DistributedSystems #SoftwareArchitecture #DDIA #ProtoBuf #HTTP2 #LoadTesting