Messages and queues

Commands are messages. This is a way to distinguish the kind of information that describes the actions on an entity, instead of describing the state of an entity. Messages describe the cause and effect of an action over an entity.

Command messages are time-bound, that is, the time in a command is described when a command is issued but not yet executed.

Commands bring arguments necessary to execute the action on the entity.

As data, messages need to be persisted. The point is that a traditional store (such as a database, as we normally refer to them) normally handles entity states, but this is not useful because it would not be optimized to the specific features of the messages:

  • Messages are useful only if correctly ordered in time; ...

Get Mastering Cloud Development using Microsoft Azure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.