I'm in the process of designing a number of adaptors for existing systems which will façade the systems with TM Forum Open APIs.
In some of the use cases we have ,rather than direct service to service calls, we need the message to use a different transport.
For example, we have a service which exposes a TMF Open API. When a message is received by the service, we want to keep the message in its original form, but retain the contextual information (such as the URL used, http method, etc). This message, including contextual information, might then be transmitted to a service bus in some form for further processing (and so also adding the need for correlation id if the request needs to be satisfied synchronously).
I have supposed there are two options:
- Wrap the message payload in another message which contains the contextual meta data, with an attribute containing the unmodified payload.
- Update the message to some how store the contextual information, by either adding custom attributes, or by perhaps using something like RelatedEntity objects to hold the information.
Looking forward to seeing how other teams have approached this.
------------------------------
Lee Walton
KCOM Group PLC
------------------------------