Understanding queries
Added in
eventcatalog@2.10.0
EventCatalog supports different message types, this includes commands, events, and queries.
Queries represent requests for information. They are a type of message used when one service needs to retrieve specific data from another service.
Services may send queries to request information about the current state of data or to get specific details based on given parameters.
Example of an query​
An example of a query would be GetOrderDetails
message.
- This query requests the details of a specific order, given an OrderId.
- A service (consumer) will typically handle the query and respond with the requested information.
Queries in EventCatalog​
- Queries in EventCatalog can be accepted by services or invoked by services.
- Queries in EventCatalog are green
- Queries live in the
/queries
folder.