0
0
Microservicessystem_design~20 mins

Parallel running in Microservices - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Parallel Running Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Parallel Running in Microservices

In a microservices environment, what is the primary purpose of parallel running during a system upgrade?

ATo deploy multiple microservices on the same server to save resources
BTo split a microservice into smaller parts to improve scalability
CTo run microservices in parallel threads within the same process for faster execution
DTo run the old and new versions simultaneously to compare outputs and ensure correctness before full switch-over
Attempts:
2 left
💡 Hint

Think about how to safely transition from an old system to a new one without disrupting users.

Architecture
intermediate
2:00remaining
Designing Parallel Running for a Payment Microservice

You want to implement parallel running for a payment microservice to migrate from version 1 to version 2. Which architectural component is essential to route requests to both versions simultaneously?

AAPI Gateway with traffic splitting capability
BDatabase replication service
CLoad balancer that only sends traffic to the new version
DService registry without routing features
Attempts:
2 left
💡 Hint

Consider how incoming requests can be sent to two different service versions at the same time.

scaling
advanced
2:00remaining
Scaling Challenges in Parallel Running

When running two versions of a microservice in parallel, what is a key challenge related to system resources?

AResource contention leading to increased CPU and memory usage
BDecreased database load because of parallel writes
CReduced network latency due to duplicated services
DAutomatic scaling of only the old version without affecting the new
Attempts:
2 left
💡 Hint

Think about what happens when two systems run side by side on the same infrastructure.

tradeoff
advanced
2:00remaining
Trade-offs of Parallel Running vs Blue-Green Deployment

Which is a major trade-off when choosing parallel running over blue-green deployment for microservices?

AParallel running eliminates the need for monitoring; blue-green requires extensive monitoring
BParallel running is faster to deploy but risks data loss; blue-green is slower but safer
CParallel running requires more resources but allows direct output comparison; blue-green uses fewer resources but switches instantly
DParallel running only works for stateless services; blue-green works for all services
Attempts:
2 left
💡 Hint

Consider resource usage and how the two methods handle traffic during deployment.

estimation
expert
2:00remaining
Estimating Capacity for Parallel Running in Microservices

You have a microservice cluster handling 10,000 requests per second with 20 nodes. You want to run parallel running with the new version alongside the old. How many nodes do you need to maintain the same throughput without degradation?

A20 nodes because parallel running does not affect node count
B40 nodes to handle double the load
C30 nodes assuming 50% load increase due to overhead
D10 nodes since load is split between versions
Attempts:
2 left
💡 Hint

Think about how running two versions simultaneously affects total load and capacity.