NestJS · Middle · Question 53 of 75
Why might you switch a Nest app from Express to Fastify?
- ✓Correct answer: For higher throughput and lower overhead; most Nest code stays the same, but Express-specific middleware and packages need alternatives
- 2Fastify is required for GraphQL
- 3Express is not supported anymore
Explanation
Create the app with new FastifyAdapter(). Check that libraries you use (file upload, sessions) have Fastify equivalents.