In its staging environment, online travel service https://www.trivago.com/ found the Fastify web framework responded to HTTP requests 107% (more than two times) faster than Express.js on average, as carried out on https://k6.io/ load testing. The post documents a technical challenge and investigation that sprouted up after migrating a monolithic https://thenewstack.io/graphql-for-when-rest-just-doesnt-cut-it/ from https://expressjs.com/ to https://www.fastify.io/. To simplify the deployment of the tests, Trivago’s staging environment simulates the production environment to a high degree of parity.

Log Redaction in the Fastify Days: Fastify uses pino internally and recommended it so that didn’t change.

Trivago manually disabled logging in the Express and Fastify deployments in the staging during load tests.

Related Articles