Skip to content

Using express instead of fastify as server

Date: 2023-09-21

Status: proposed

Context

Fastify as development server does not seem to work mostly "out of the box" with Remix. During development we faced more and more issues with rather basic Remix features like routing, sending forms, HMR or HDR. We questioned fastify as the configuration effort seemed to be rather high and the default for Remix seems to be still express.

Decision

We decided to use express instead of fastify. Remix is providing an adapter for express and is using express as the default in their starter-templates as well in all documentation. It works mostly out of the box with basic Remix features.

Consequences

If user of the Statista remix-stack want to use Docker (Fargate) they might need to re-evaluate express again as fastify is the more modern and faster alternative. But as long as teams are following the recommendation to use Lamda functions the express server acts as development server only.