Chapter 10. Concurrency and scalability

 

This chapter covers

  • Camel’s threading model
  • Configuring thread pools and thread profiles
  • Using concurrency with EIPs
  • Message synchronicity and concurrency
  • Camel’s client concurrency API
  • Scalability with Camel

Concurrency is another word for multitasking, and we multitask all the time in our daily lives. We put the coffee on, start up the computer, and while it’s booting grab the paper to glance at the news. 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 very common in enterprise systems, such as when you’re processing incoming orders, handling invoices, and doing inventory management, and these demands only grow over time. With concurrency, you can achieve higher performance; by executing in parallel, you can get more work done in less time.

10.1. Introducing concurrency

10.2. Using thread pools

10.3. Using concurrency with EIPs

10.4. Synchronicity and threading

10.5. The concurrency client API

10.6. The asynchronous routing engine

10.7. Summary and best practices

sitemap