0
0
Microservicessystem_design~10 mins

CQRS pattern in Microservices - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify the main components of CQRS.

Microservices
In CQRS, the [1] handles commands that change data.
Drag options to blanks, or click blank then click option'
AAPI gateway
BQuery side
CCommand side
DEvent store
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing the query side with the command side.
Thinking the event store handles commands.
2fill in blank
medium

Complete the code to explain the role of the query side in CQRS.

Microservices
The [1] is optimized for reading data and answering requests.
Drag options to blanks, or click blank then click option'
ACommand side
BQuery side
CEvent bus
DLoad balancer
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the command and query sides.
Assuming the event bus handles queries.
3fill in blank
hard

Fix the error in the description of CQRS event handling.

Microservices
Events are published to the [1] to notify other parts of the system.
Drag options to blanks, or click blank then click option'
AEvent bus
BQuery side
CCommand side
DDatabase
Attempts:
3 left
💡 Hint
Common Mistakes
Thinking events are sent directly to the database.
Confusing the command side with the event bus.
4fill in blank
hard

Fill both blanks to complete the CQRS request flow.

Microservices
Client sends a [1] to the [2], which updates the data and publishes events.
Drag options to blanks, or click blank then click option'
Acommand
Bquery
Ccommand side
Dquery side
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping command and query terms.
Sending commands to the query side.
5fill in blank
hard

Fill all three blanks to complete the CQRS read model update process.

Microservices
Events from the [1] are received by the [2], which updates the [3] for fast queries.
Drag options to blanks, or click blank then click option'
Acommand side
Bevent handler
Cread model
Ddatabase
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing the read model with the command side.
Thinking the database directly handles events.