# Learn Redis the hard way (in production)

DevFeed: [Learn Redis the hard way (in production)](<https://devfeed.tech/articles/learn-redis-the-hard-way-in-production-28074.md>)

Original publisher: [Read original article](<https://tech.trivago.com/post/learn-redis-the-hard-way/>)

Author: Andy Grunwald Follow

Published: 2017-01-25T00:00:00Z

Content type: article

Language: en

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

Topics: [Redis](<https://devfeed.tech/topics/redis.md>), [PHP](<https://devfeed.tech/topics/php.md>), [Symfony](<https://devfeed.tech/topics/symfony.md>), [Back end](<https://devfeed.tech/topics/backend.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [backend](<https://devfeed.tech/tags/backend.md>), [caching](<https://devfeed.tech/tags/caching.md>), [devops](<https://devfeed.tech/tags/devops.md>), [persistence](<https://devfeed.tech/tags/persistence.md>), [php](<https://devfeed.tech/tags/php.md>), [production](<https://devfeed.tech/tags/production.md>), [redis](<https://devfeed.tech/tags/redis.md>), [symfony](<https://devfeed.tech/tags/symfony.md>)

## AI overview

A trivago engineering article recounts how the company adopted Redis in its PHP stack, including its use for caching, temporary storage, and persistent hotel metadata. It describes replacing Predis with phpredis for performance and later investigating Redis connection errors after HTTP traffic increased.

## Source excerpt

For our products, like the trivago [hotel search](https://www.trivago.com/), we are using [Redis](https://redis.io/) a lot. The use cases vary: Caching, temporary storage of data before moving those into another storage or a typical database for hotel meta data including persistence. The main parts of the hotel search are built with PHP and the Symfony Framework for the frontend (web) and Java for the backend part. In this article, we will focus on the collaboration between our PHP application and Redis. Both are running fine, but it was a long and hard way up to the current situation. This is the story of how we learned to use Redis, including our failures and experience.