concept consumer endpoint in category akka

appears as: consumer endpoint, consumer endpoints
Akka in Action

This is an excerpt from Manning's book Akka in Action.

The endpoint has the responsibility of encapsulating the interface between the two systems in such a way that the application itself doesn’t need to know how the request is received. This is done by making the transport pluggable, using a canonical data format, and standardizing on a request/response style of communication. There are a lot of different transport protocols to potentially support: HTTP, TCP, message queues, or simple files. After receiving the message, the endpoint has to translate the message into a message format that’s supported by our order system. Translating the message this way means the rest of the system doesn’t know that the order was received from an external system. In this example the endpoint receives a request from the external system and sends a response back. This is called a consumer endpoint because it consumes the request. It’s also possible that our system needs some data from another system, for example, the customer details, which are kept in the customer relations application.

Figure 12.9. OrderConsumerXml, the implementation of the consumer endpoint