SEDA is an acronym for Event-Driven Architecture, it is designed as a mechanism for controlling the flow between the various stages of message processing. The idea is to smooth out the frequency of outputting messages from the overall process so that it matches the input. It allows consumer streams enpoint to unload the work of long-running operations in the bakground, thereby freeing them from consuming messages from transport. When an exchange is passed to seda: endpoint, it is placed in a BlockingQueue. The list exists in the context of a camel, which means that only those routes that are in the same context can be connected by this type of endpoint. The default queue is not limited, although you can change it by setting the size attribute in the user URI.
By default, one thread assigned to the endpoint reads exchanges from the list and processes them along the route. As you can see from the example procedure, you can increase the number of concurrenct participants to ensure timely processing of exchanges from this list.
The SEDA template is best suited for handling InOnly messages, where one route completes processing and passes hands to another to handle the next phase. you can request a response from seda: endpoint by calling it when the messaging template is InOut
Directory. Apache Camel Developer Cookbook
castilloRT
source share