Services
A service is a logical component that provides one or more service methods that can be invoked by another entity in the system by sending a message addressed to it. A service method listens for request messages addressed to it, performs some process, and emits a response message in acknowledgement. Every method on every service can be invoked through a REST service API.
Example of a Message sent to a Service
An example of a message sent to the Person Service requesting a query be performed and the first ten persons matching the search string def be returned
{
"type": "person:FindPersons",
"headers": {
"isRequest": true,
"destination": "SERV:person:",
"correlationId": "c8fb3787-32e4-4296-b8cd-ab8f13c58133"
},
"payload": {
"messageType": "person:FindPersons",
"attributes": {
"searchString": "def",
"limit": 10
}
}
}