SpinTheMic
Pro

Explain it in 60 seconds

Events vs commands

System Design · Messaging and Queues · Beginner

What is the difference between an event and a command in messaging?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Command: request to do something (SendEmail).
  • Event: fact that happened (OrderPlaced).
  • Command has one intended handler.
  • Event can have many subscribers.
  • Naming: imperative vs past tense.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics