O'Reilly logo

Reactive Programming With Java 9 by Tejaswini Mandar Jog

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Request collapsing or request batching

In JDBC, we can combine more than one process as a part of the batch and then execute the batch at one time instead of executing individual queries one by one. Similar to JDBC, we can combine multiple requests together into a single HystrixCommand instance execution, as shown in the following figure:

Request-scoped and globally-scoped are the styles of request collapsing supported by Hystrix. The request-scoped collapser collects the batch per HystrixRequestContext and the globally-scoped collapse collects the batch for multiple HystrixRequestContext.

We can create the collapse implementation as an extension ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required