Multi-Context

Within Axon Server you can define multiple contexts. When registering handlers or sending messages you need to provide the name of the context this applies to. The context name is part of the URL used to send the request.

The following URL demonstrates how to register a command handler in the orders context:

http://{synapse-host-and-port}/v1/contexts/orders/handlers/commands

To send a command to the finance context use a URL like this:

http://{synapse-host-and-port}/v1/contexts/finance/commands/{command-name}