Bird
0
0

Which event types should you use for each action?

hard📝 Trade-off Q8 of 15
Microservices - Event-Driven Architecture
You are designing a microservices system where a new user registration must update internal user metrics, notify other services, and send a welcome email. Which event types should you use for each action?
AIntegration event for metrics update, domain event for other services, notification event for email
BDomain event for metrics update, integration event for other services, notification event for email
CNotification event for metrics update, domain event for other services, integration event for email
DDomain event for email, integration event for metrics update, notification event for other services
Step-by-Step Solution
Solution:
  1. Step 1: Assign domain event

    Use domain events to update internal state like user metrics.
  2. Step 2: Assign integration event

    Use integration events to inform other microservices about the registration.
  3. Step 3: Assign notification event

    Use notification events to send emails or user-facing messages.
  4. Final Answer:

    Domain event for metrics update, integration event for other services, notification event for email -> Option B
  5. Quick Check:

    Match event types to their scopes and purposes [OK]
Quick Trick: Domain for internal, integration for cross-service, notification for users [OK]
Common Mistakes:
MISTAKES
  • Using notification events for internal updates
  • Using domain events to notify other services

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes