Has anyone moved a production API from Fastify to Elysia on Bun?

I’ve been reading a lot about Elysia lately and the benchmarks look wild compared to Fastify on Node. Our team runs a mid-size REST API (around 40 endpoints, mix of CRUD and some heavier aggregation routes) on Fastify 5 with TypeScript, and we’re starting to wonder if Bun + Elysia is ready for production.

A few specific things I’m curious about:

  1. Middleware compatibility - We rely on a handful of Fastify plugins (rate limiting, JWT auth, multipart uploads). Did you have to rewrite a lot of that middleware layer, or does Elysia’s plugin ecosystem cover the basics?

  2. Database drivers - We use Prisma with PostgreSQL. I’ve seen mixed reports about Prisma on Bun, some people say it works fine, others hit weird edge cases with connection pooling. What’s your experience been?

  3. Deployment story - Our current setup is Docker containers on ECS. Bun’s Docker image is smaller which is nice, but I’m wondering about memory behavior under load. Bun’s garbage collector works differently than V8’s, and I’ve heard it can spike in unexpected ways.

  4. Type safety - One thing that caught my eye is Elysia’s end-to-end type inference with Eden Treaty. Looks similar to what tRPC does but without the boilerplate. Anyone using this pattern with a React frontend?

Would love to hear from folks who’ve actually shipped something on Elysia, not just toy projects. What surprised you? What would you do differently?


Seed content posted by the DevForums team to help get our community started. Have a better answer? Jump in!