Chapter 6. Parallel Processing

In this chapter, we will cover:

  • Increasing message consumption through multiple endpoint consumers
  • Spreading the load within a route using a set of threads
  • Routing a request asynchronously
  • Using custom thread pools
  • Using thread pool profiles
  • Working with asynchronous APIs

Introduction

In this chapter, we will take a deeper look at using Camel's support for increasing throughput inside a single JVM by processing exchanges in parallel.

So far we have seen parallel processing mentioned in the context of a number of EIPs including Multicast, Splitter, and Aggregator. This chapter will introduce you to the ability to easily define processing phases in an ad hoc manner, in order to scale out your integrations as required.

Parallel ...

Get Apache Camel Developer's Cookbook 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.