Microservice-based systems
WebFlux's first obvious application is in microservice systems. The most distinctive feature of typical microservice systems compared to monoliths is the abundance of I/O communication. The presence of I/O, especially blocking I/O, decreases the overall system latency and throughput. Contention and coherence in the thread-per-connection model do not improve system performance significantly. This means that for systems or particular services where inter-service calls are important, WebFlux will be one of the most efficient solutions. An example of such a service is a payment flow orchestration service.
Usually, behind a simple operation, such as money transferring between accounts, there is a hidden, intricate mechanism, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access