# Reactive Programming - The Price You Have To Pay For A Responsive Backend

DevFeed: [Reactive Programming - The Price You Have To Pay For A Responsive Backend](<https://devfeed.tech/articles/reactive-programming-the-price-you-have-to-pay-for-a-responsive-backend-28007.md>)

Original publisher: [Read original article](<https://tech.trivago.com/post/2021-02-24-reactiveprogrammingthepriceyouhavetopayf/>)

Author: Kevin Beineke

Published: 2021-02-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Trivago](<https://devfeed.tech/sources/trivago.md>)

Topics: [Back end](<https://devfeed.tech/topics/backend.md>), [reactive](<https://devfeed.tech/topics/reactive.md>), [Java](<https://devfeed.tech/topics/java.md>), [Microservices](<https://devfeed.tech/topics/microservices.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [Resilience](<https://devfeed.tech/topics/resilience.md>), [Scalability](<https://devfeed.tech/topics/scalability.md>), [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [backend](<https://devfeed.tech/tags/backend.md>), [cache](<https://devfeed.tech/tags/cache.md>), [java](<https://devfeed.tech/tags/java.md>), [microservices](<https://devfeed.tech/tags/microservices.md>), [programming](<https://devfeed.tech/tags/programming.md>), [reactive](<https://devfeed.tech/tags/reactive.md>), [resilience](<https://devfeed.tech/tags/resilience.md>), [scalability](<https://devfeed.tech/tags/scalability.md>)

## AI overview

The article explains how trivago uses reactive programming in its backend to fetch advertiser prices and update caches while maintaining responsiveness, scalability, and resilience. It describes moving the Auction Service into the reactive price-fetching pipeline and using bidirectional Reactor Core streams to process batches in arrival order and improve cache utilization.

## Source excerpt

In the trivago backend, we use the reactive programming pattern for fetching prices from advertisers and updating our caches. Th...