Search⌘ K
AI Features

Asynchronous Integration with Messages

Explore the concept of messages in event-driven architecture, including integration events, commands, queries, and replies. Understand their roles in asynchronous communication and how they differ from domain and event-sourced events. This lesson helps you master asynchronous integration using messages in Golang with practical understanding of NATS JetStream.

What exactly is a message?

So far, we have only talked about events, so what exactly is a message? An event is a message, but a message is not always an event. A message is a container with a payload, which can also be an event and can have some additional information in the form of key-value pairs.

A message can be used to communicate an event, but it can also be used to communicate an instruction or information to another ...