Brighter Control API
Reference · Applies to Brighter V10
The Brighter Control API allows direct management of a Dispatcher node.
Configuring the API
Brighter's Package:
Paramore.Brighter.ServiceActivator.Control.Api
provides an extension for ASPNet.Core's IEndpointRouteBuilder
app.UseEndpoints(endpoints =>
{
endpoints.MapBrighterControlEndpoints();
}When mapping the Brighter Control API you can pass a string to change the base route of these calls, by default it is set to /control
API's Provided
Get Node Status
You can retrieve the status of a Dispatcher node by calling GET /control/status
The response contains: - nodeName : The name of the node running the Dispatcher - availableTopics : The Topics that this node can service - subscriptions : An array of Information about currently configured subscriptions - topicName : Name of Topic - performers : An array of performers - activePerformers : Number of currently active performers - expectedPerformers : Number of expected performers - isHealthy : Is this subscription healthy on this node - isHealthy : Is this node Healthy - numberOfActivePerformers : The Number of Performers currently running on the Node - timeStamp : Timestamp of Status Event - executingAssemblyVersion : The version of the running process
Update Performer Count
You can update the number of running performers by calling PATCH /control/subscriptions/{{subscriptionName}}/performers/{{numberOfPerformers:int}}
This will return either :
OK with a Message such as
Active performers for Orders.NewOrderVersionEvent set to 2BAD REQUEST with a message such as
No such subscription Orders.NewOrderVersionCommand
Last updated
Was this helpful?
