# Investigating Node.js Performance: Fastify, Express, and Memory-Heavy Log Redaction

DevFeed: [Investigating Node.js Performance: Fastify, Express, and Memory-Heavy Log Redaction](<https://devfeed.tech/articles/how-to-substantially-slow-down-your-node-js-server-28028.md>)

Original publisher: [Read original article](<https://tech.trivago.com/post/2022-09-15-how-to-substantially-slow-down-your-nodejs-server/>)

Author: Abdelrahman Abdelhafez Human code formatter @ trivago GitHub profile

Published: 2022-09-15T00:00:00Z

Content type: tutorial

Language: en

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

Topics: [Node.js](<https://devfeed.tech/topics/node-js.md>), [Fastify](<https://devfeed.tech/topics/fastify.md>), [Express](<https://devfeed.tech/topics/express.md>), [GraphQL](<https://devfeed.tech/topics/graphql.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [V8](<https://devfeed.tech/topics/v8.md>), [debugging](<https://devfeed.tech/topics/debugging.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [express](<https://devfeed.tech/tags/express.md>), [framework](<https://devfeed.tech/tags/framework.md>), [gdpr](<https://devfeed.tech/tags/gdpr.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [load-testing](<https://devfeed.tech/tags/load-testing.md>), [node](<https://devfeed.tech/tags/node.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [performance](<https://devfeed.tech/tags/performance.md>), [profiling](<https://devfeed.tech/tags/profiling.md>), [server](<https://devfeed.tech/tags/server.md>), [v8](<https://devfeed.tech/tags/v8.md>)

## AI overview

This technical investigation examines why migrating a monolithic Node.js GraphQL server from Express to Fastify produced no production performance improvement despite substantially faster staging load-test results. Live V8 heap profiling identified log redaction as consuming large amounts of memory.

## Source excerpt

Back in March 2022, after spending a considerable amount of effort migrating our monolithic Node.js GraphQL server from