---
title: "From PHP to Next.js: What Trivago Learned Rewriting Its Web App"
url: https://daily.dev/posts/from-php-to-next-js-what-trivago-learned-rewriting-its-web-app-9hx5uvq52
source_url: https://thenewstack.io/from-php-to-next-js-what-trivago-learned-rewriting-its-web-app/
type: article
source: "The New Stack"
published: 2022-05-19T10:13:18.637Z
updated: 2022-05-19T10:13:18.638Z
tags: ["php", "nextjs"]
reading_time: 4
upvotes: 73
comments: 7
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# From PHP to Next.js: What Trivago Learned Rewriting Its Web App

**[The New Stack](https://daily.dev/sources/newstack)** · 4 min read · 73 upvotes · 7 comments

## Summary

Hotel search service Trivago rewrote its frontend in Typescript on the Next.js framework, replacing a PHP codebase on a homegrown JavaScript framework, Melody. From April 2020 until late 2021 the platform team created, tested and deployed the new application which reduced page size by up to 37%.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://thenewstack.io/from-php-to-next-js-what-trivago-learned-rewriting-its-web-app/>

## Community discussion

Top comments from developers on daily.dev.

**@rakki349** · 1 upvotes

> epic

**@malo** · 0 upvotes

> Nice feedback!

**@charlesweb** · 0 upvotes

> It makes sense that they migrated to React.js, since all their pages were Ajax based, :( , otherwise No....
> It's not really clear to me what they have learned, but the Elastic capture has nothing to do with either Next.js or PHP, as far as I know. Also in favor of PHP, I had to do the opposite to migrate from Next.js to PHP, since Next.js does not scale, I guess you have already noticed.

**@alnothur** · 0 upvotes

> Good grief... Rewriting a web app from an awful language into an even worse one? Who does that?

**@itsmnthn** · 0 upvotes

> Great insight

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#php](https://daily.dev/tags/php), [#nextjs](https://daily.dev/tags/nextjs)

[View this post on daily.dev](https://daily.dev/posts/from-php-to-next-js-what-trivago-learned-rewriting-its-web-app-9hx5uvq52)
