13 Parallel processing

This chapter covers

  • Camel’s threading model
  • Configuring thread pools and thread profiles
  • Using concurrency with EIPs
  • Handling scalability with Camel
  • Writing asynchronous Camel components

Concurrency is another word for multitasking, and we multitask all the time in our daily lives. We put the coffee on, and while it brews, we grab the tablet and glance at the morning news while we eagerly wait for the coffee to be ready. Computers are also capable of doing multiple tasks—you may have multiple tabs open in your web browser while your mail application is fetching new email, for example.

Juggling multiple tasks is also common in enterprise systems, such as when you’re processing incoming orders, handling invoices, ...

Get Camel in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.