multithreading - Camel parallel processing options -


I am working on Camel Root in RedHat Fuse Service Works, which is a camel 2.10.

I would like to know the difference between the following implementation:

1 / SEDA routes using

  ("A") .split ("CDA: B? Concurrent compiler = 4") ("body") .to ("seda: b"); root iid ("mycedate route"). ("C") .end ();  

2 / Use of parallel processing

 from  ("A") .split (body ()) .parallelProcessing () .to ("c");  

3 / Use of thread

 from  ("A") .plit (body ()). Thread () .to ("c") ;  

What I have seen method 3 (thread) Which is similar to the "Concurrent Consumer" of Solution 1 (SEDA).

If I do not pass a parameter in the method thread, then what would be the behavior of methods 2 and 3

Regards

You can set in Thread Number 1), 3), but 1) still can get the message from another path that is .to ("seda: B") from bus (xxx). 2) You need to set up the executable service (or Threadpool), otherwise parallel processing will not work for you.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -