Services

A Service Broker service is a name for a specific business task or set of business tasks. Conversations occur between services. Service Broker uses the name of the service to deliver messages to the correct queue within a database, to route messages, to enforce the contract for a conversation, and to determine the remote security for a new conversation.

Each service specifies a queue to hold incoming messages. The contracts associated with the service define the specific tasks that the service accepts new conversations for. Therefore, a target service specifies one or more contracts that conversations with the service must follow. A service that initiates conversations but does not receive new conversations from other services does not need to specify contracts. If the service can receive messages on the DEFAULT contract, the DEFAULT contract must be included in the service definition.