Netlify Server lets you run your application’s backend as a long-lived Node.js server. Netlify provisions it, scales it with demand and scales it down to zero when nothing is using it. Whereas, functions handle one request per instance and finish when they respond, some backends need more. Netlify Server keeps running between requests so that it can:
Continue reading...
- Handle many requests at once in a single instance.
- Keep warm database connection pools and in-memory caches.
- Hold WebSocket and Server-Sent Events connections open, for things like live chat and real-time collaboration.
- Run an existing Express, Hono, Fastify or Koa app as-is, without additional adapters.
- A server scales up to 3 instances, or 1 instance on credit-based Free and Personal plans.
- An instance always scales to zero after 5 minutes without requests. After Early Access, you’ll be able to keep a minimum number of instances running, so infrequent requests won’t need to wait for your server to start.
Continue reading...