Lessons learnt from going reactive with Reactor
summary
Apache James moves from unbounded thread-based parallelism to a Reactor-based pipeline, replacing blocking Cassandra, RabbitMQ and S3 calls with reactive drivers and adding backpressure across Cassandra and RabbitMQ. Real-world load tests with Gatling reveal that naive parallelism worsens CPU and P99 latency, so the build adds a reactor-netty event loop plus bounded concurrency and explicit schedulers. Result: far fewer threads, more predictable CPU usage and substantially improved tail latency, with many bugs traced to blocking calls left in the stack.
AI-written summary · about
