Bird
0
0

In a microservices system with a large event store, which technique can improve the speed of rebuilding service state?

hard📝 Trade-off Q8 of 15
Microservices - Event-Driven Architecture
In a microservices system with a large event store, which technique can improve the speed of rebuilding service state?
AStoring events in multiple unrelated databases
BDeleting older events regularly
CAllowing event updates to fix errors
DUsing snapshots to store intermediate states
Step-by-Step Solution
Solution:
  1. Step 1: Identify performance bottleneck

    Replaying all events can be slow as event count grows.
  2. Step 2: Consider optimization techniques

    Snapshots capture state at points in time, reducing replay length.
  3. Step 3: Evaluate options

    Using snapshots to store intermediate states is correct; B risks data loss, C breaks immutability, D adds complexity.
  4. Final Answer:

    Using snapshots to store intermediate states -> Option D
  5. Quick Check:

    Snapshots speed up state rebuilds [OK]
Quick Trick: Snapshots speed up state rebuilds [OK]
Common Mistakes:
MISTAKES
  • Deleting events causing data loss
  • Modifying events breaking immutability
  • Distributing events without coordination

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes