There are three components in spring integration framework.
a. Message
b. Channel
c. Endpoints
Diagram
Message
Message is the information that is transferred between components. Messages are transferred from one endpoint to other endpoint over a channel.
Message includes both header which describes metadata and payload. Header contains message id, content type, content length and any other custom values.
Channel
Channel component is responsible to deliver the message from source endpoint to target endpoint.
A channel can support
a. Point-to-point delivery
b. Delivering message to multiple endpoints
Can I define custom channel?
Yes, you can define custom channel.
Endpoints
Endpoint component perform some operation when the message is received. One endpoint connect to other via a channel. Producer endpoint place the message on a channel and consumer endpoint read the message from channel.
Different types of endpoints available in spring integration framework.
a. Adapters: Connect channel to other systems.
b. Filters: Filter some messages from the channel
c. Transformer: Transform/change the message content
d. Enricher: Enhance/enrich the message
e. Service Activator: Invoke service operations
f. Gateway
g. Splitter
h. Aggregators and many more.
No comments:
Post a Comment