0
0
Microservicessystem_design~20 mins

Why events decouple services in Microservices - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
πŸŽ–οΈ
Event Decoupling Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
How do events help decouple microservices?

Imagine two microservices: Service A and Service B. Service A sends an event when it finishes a task. How does this event help decouple Service A from Service B?

AService B directly calls Service A's functions to get data.
BService A waits for Service B to confirm it received the event before continuing.
CService A sends the event and continues without knowing if Service B received it.
DService A and Service B share the same database to communicate.
Attempts:
2 left
πŸ’‘ Hint

Think about how events allow services to work independently without waiting.

❓ Architecture
intermediate
2:00remaining
Which architecture pattern best shows event decoupling?

Which architecture pattern best demonstrates how events decouple services?

ASynchronous REST API calls between services.
BShared database accessed by all services.
CMonolithic application with internal modules.
DEvent-driven architecture with message broker.
Attempts:
2 left
πŸ’‘ Hint

Think about which pattern uses events to communicate asynchronously.

❓ scaling
advanced
2:00remaining
How do events improve scalability in microservices?

When microservices communicate via events, how does this improve scalability?

AServices can process events independently and in parallel, improving throughput.
BEvents force services to scale together, increasing resource use.
CServices block until events are processed, limiting throughput.
DEvents require services to share resources, reducing scalability.
Attempts:
2 left
πŸ’‘ Hint

Consider how asynchronous processing affects service load.

❓ tradeoff
advanced
2:00remaining
What is a tradeoff of using events to decouple services?

Using events to decouple services has benefits but also tradeoffs. Which is a common tradeoff?

AServices become synchronous and block each other.
BIt can be harder to track the flow of data and debug issues.
CTight coupling between services increases.
DServices must share the same database schema.
Attempts:
2 left
πŸ’‘ Hint

Think about what happens when communication is asynchronous and indirect.

❓ estimation
expert
2:00remaining
Estimate event throughput for decoupled services

A system has 5 microservices communicating via events. Each service produces 100 events per second. If the message broker can handle 400 events per second, what is the maximum sustainable event throughput without delays?

A400 events per second
B200 events per second
C500 events per second
D100 events per second
Attempts:
2 left
πŸ’‘ Hint

Consider the total events produced and the broker's capacity.