Service · Serverless migration

Migrate your Express API to AWS Lambda

Paying for an always-on Node.js server whose traffic is bursty or quiet overnight? I move Express APIs to AWS Lambda and API Gateway incrementally — one route or group of routes at a time — so the old server and the new endpoints run side by side until every route is proven in production. No big-bang rewrite.

Discuss your project See relevant work

What the migration covers

How the cutover works

  1. Put API Gateway in front of the existing server under your custom domain, so nothing changes for clients.
  2. Move the first low-risk route group to Lambda and verify it in production behind the same domain.
  3. Repeat route by route, cutting traffic over only after each one is verified — the Express server keeps serving whatever hasn't moved yet.
  4. Retire the always-on server once the last route is live, and hand over docs and runbooks.

Will it actually be cheaper?

Often, yes — APIs with bursty traffic or long idle periods stop paying for a server that mostly waits. But it depends on your traffic: steady, high-throughput workloads can cost more on Lambda than on a container. Before any code moves, I'll look at your real traffic and give you a straight estimate, including when I think migrating isn't worth it.

Relevant work

100+ endpoint Express app → Lambda

A long-running Express monolith was costing money 24/7 for traffic that was bursty and mostly idle overnight. I broke the endpoints apart into individually deployed Lambda functions behind API Gateway, extracted shared logic into layers and moved deployment to CloudFormation — cutting hosting cost and letting each endpoint scale on its own.

Legacy endpoints migrated at scale

At Sketch to Growth I migrated a large set of legacy endpoints from server-hosted Express to Lambda as part of a backend that has grown to roughly 1,000 Lambda endpoints.

How that backend is structured →

Stack

FAQ

Do we need to rewrite the app?

No. Most of the business logic moves as-is. Routes can start wrapped with serverless-http and be split into dedicated functions later, only where that's worth it.

Will there be downtime?

The plan is built to avoid it: the existing server keeps running behind the same domain, and traffic moves route by route only after each one is verified.

What about WebSockets, cron jobs and file uploads?

They're planned separately: scheduled work moves to EventBridge rules, uploads move to S3 pre-signed URLs, and long-lived connections get their own design rather than being forced into request/response functions.

How long does a migration take?

It depends on the number of routes and how much the app relies on in-process state. After the audit you get a scoped plan with the route groups in order.

Related services

Tell me what you're building

Send a few lines about the project — what exists today, what you need, and any deadline. I reply within one business day.