• Always-on apps
  • PostgreSQL included
  • Hosted in South Africa
  • First month free

Netlify Backend: What It Can Run and When You Need More

What Netlify Functions, Netlify Server and Netlify Database can run, their time, language and region limits, and when HCode is a better home for your backend.

It started as a contact form on a Netlify site. Then the client wanted bookings. Then reminder messages every hour. Then a Python script that checks the calendar and tidies up no-shows.

Somewhere along the way, you started wondering whether a Netlify backend can handle all of that. The frontend is fine. The backend just outgrew the building.

This guide explains what Netlify Functions and the new Netlify Server can run, where their limits are, and why HostAfrica's HCode makes a better home for a backend that's outgrown them.

Checked against Netlify's documentation, changelog, and pricing page in November 2026.

Key Takeaways: Netlify Backend at a Glance

Netlify supports backend code through serverless Functions and the newer Netlify Server, which runs long-lived Node.js apps. Netlify Database adds managed Postgres.

  • Functions: Run per request, with limits of 60 seconds (standard), 30 seconds (scheduled), and 15 minutes (background).
  • Netlify Server: Runs Node.js apps with WebSockets and in-memory state, but it's in Early Access and scales to zero when idle.
  • Languages: Functions run JavaScript, TypeScript, and Go. Netlify Server runs Node.js. Python, PHP, and Ruby need another host.
  • Database: Netlify Database is managed Postgres on credit-based plans, paid for with credits.
  • HCode: Runs always-on apps and background workers with managed PostgreSQL from R50 a month, hosted in South Africa.

Does Netlify Support a Backend?

Yes. Netlify offers two ways to run backend code. Functions handle individual requests and scheduled or background tasks. Netlify Server runs a longer-lived Node.js app that keeps connections and in-memory state between requests, though it's still in Early Access and scales down when idle. Netlify Database stores the data.

Short answer: yes, within limits. Functions are capped by time and language, and Netlify Server is still in Early Access. If you need another language, a South African region, or workers that never stop, you'll hit those limits quickly.

How Netlify Runs Backend Code

A serverless function runs code only when needed. You put it in your project's netlify/functions folder, and Netlify deploys it with the rest of your site. That's how to deploy a backend on Netlify: push to Git, or run netlify deploy from the Netlify CLI, and each function goes live as an API endpoint.

Netlify Functions

Standard functions handle requests from your frontend, such as saving a booking. You can write them in JavaScript, TypeScript, or Go. Each function can run for up to 60 seconds (the execution limit).

Background Functions

Background functions run for up to 15 minutes. The visitor gets an instant reply while the function keeps working, but you have to save the result somewhere yourself.

Scheduled Functions

Scheduled functions run on a timetable, like a cron job (a task set to run at fixed times, in UTC). They're capped at 30 seconds. For longer work, a scheduled function has to hand off to a background function, which is still capped at 15 minutes.

Edge Functions

Edge functions run on Deno, close to your visitors. They're limited to small jobs like redirects and page personalisation, not heavy backend work.

Diagram showing how a Netlify Function wakes for a request, runs for up to 60 seconds, and stops, alongside background, scheduled, and edge functions

Netlify Server: A Longer-Running Backend

Netlify launched Netlify Server in Early Access on 10 November 2026. It runs your backend as a long-lived Node.js app, and you can bring an existing Express, Fastify, Hono, or Koa app as it is.

Unlike a function, a server instance handles many requests at once, keeps database connections and caches in memory, and holds WebSocket and Server-Sent Events (live updates pushed to the browser) connections open.

During Early Access, the limits matter:

  • Node.js only: you write it in JavaScript or TypeScript.
  • Scales to zero: an instance stops after 5 minutes without requests.
  • Request time: up to 30 minutes, or 2 hours on Pro and higher plans.
  • Instance lifetime: each instance is replaced after 8 hours, even if it's busy.
  • Scale: up to 3 instances, or 1 on Free and Personal plans.
  • Regions: US East (Ohio) by default, or EU (Frankfurt).
  • Frameworks: Next.js, Astro, Nuxt, and SvelteKit still use Functions.

It's free during Early Access; Netlify plans to bill for reserved memory and active CPU time later, so today's cost doesn't reflect what you'll pay.

Serverless Functions vs Netlify Server vs HCode

Serverless Functions: Run one task and stop, so you shouldn't rely on in-memory data surviving between calls.

Netlify Server: Keeps connections and memory until it scales down when idle.

HCode: Runs a managed app that stays running in South Africa, with background workers beside it.

A function is a call-out plumber who leaves after each job. Netlify Server is a contractor who goes home after a quiet spell. An HCode app is the caretaker who lives on site.

What you needNetlify FunctionsNetlify ServerHCode
WebSocketsNoYesYes, in a running app
In-memory state between requestsNot guaranteedYes, while the instance runsYes
Work longer than 15 minutesNoRequests up to 30 minutes, or 2 hours on ProLong-running processes
Workers and bots with no incoming trafficNoNo, it scales to zero when idleYes
LanguagesJavaScript, TypeScript, GoNode.jsNode.js, Python, Go, PHP, Ruby, Docker

On cost, Functions bill by usage, Netlify Server is free until Netlify starts billing it, and HCode charges a flat monthly price.

Timeline comparing Netlify Functions, Netlify Server, which scales to zero when idle, and an HCode app that keeps running

Back to our booking system: the hourly reminder only stays on Netlify if it finishes within a scheduled function's 30 seconds. The Python script can't run on Netlify Functions or Netlify Server at all.

Netlify Database

Netlify Database is fully managed Postgres, built on Neon and integrated into Netlify. It became generally available on 28 April 2026; older articles that say Netlify has no database are out of date.

It's available on credit-based plans only. When a database is active, it uses credits for compute and bandwidth. Storage is currently free, and Netlify says it will give notice before it starts charging.

Each deploy preview also gets its own database branch, copied from production, so you can test changes without touching live data. HCode doesn't offer preview deployments yet.

Diagram showing Netlify Functions and Netlify Server connecting to Netlify Database, with a database branch for each deploy preview

Netlify Database Pricing

Netlify Database doesn't have its own monthly price. It draws from the same credit balance as your functions, bandwidth, and deploys.

PlanPriceCredits a monthIn randExtra credits
Free$0300, hard limitR0Not available
Personal$9 a month1,000About R176500 for $5 (about R98)
Pro$20 a month, unlimited membersFrom 3,000 (tiers up to 20,000)About R3911,500 for $10 (about R196)

Netlify bills in US dollars. The rand amounts are illustrative conversions at R17 to the dollar, plus 15% VAT.

Here's what uses those credits. A GB-hour combines memory and running time: 1 GB of memory working for one hour.

What you useCredits
Functions compute10 per GB-hour
Database compute10 per GB-hour
Web bandwidth20 per GB
Database bandwidth20 per GB
Web requests2 per 10,000
Production deploys15 each

Personal's 1,000 credits would cover 50 GB of bandwidth if you spent them on nothing else. In practice, everything shares that pot, so a busy month on one service leaves less for the rest.

Where Your Backend Runs Matters

Netlify Functions default to US East (Ohio), and you can choose from a list of other regions. Netlify Server also defaults to Ohio, with Frankfurt as its only alternative.

Picture a visitor in Durban opening the booking page. If the backend and database are hosted overseas, every request crosses international networks and back, and several database calls per page add to that round trip.

HCode runs your app and database on South African infrastructure, connected over a private network, which shortens the distance to a mostly South African audience.

Diagram comparing a request's round trip from Durban to an overseas backend with an HCode app and database in South Africa

When Your Backend Outgrows Netlify

Your backend has probably outgrown Netlify if:

  1. You need Python, Ruby, PHP, or another language beyond Node.js and Go.
  2. You need a worker or bot that keeps running with no incoming traffic.
  3. You want your backend hosted in South Africa.
  4. You want a predictable monthly bill in rand, not credits in dollars.

If any of these sound familiar, HCode covers all four.

Netlify Backend vs HCode

What you needNetlifyHCode
How backend code runsFunctions, plus Netlify Server (Early Access)Managed, always-on app hosting
LanguagesFunctions: JavaScript, TypeScript, Go. Server: Node.jsNode.js, Python, Go, PHP, Ruby, or your own Dockerfile
Time limitsFunctions: 60 seconds, 30 seconds (scheduled), 15 minutes (background). Server: 30 minutes per request, or 2 hours on ProLong-running apps and workers
DatabaseNetlify Database (Postgres), paid with creditsManaged PostgreSQL included, Redis available
BillingPlan price plus credits, in US dollarsFlat monthly price in rand
Where it runsOhio by default; other regions vary by serviceSouth Africa
Preview deploysYes, with a database branch per previewNot yet

Netlify details come from its documentation and pricing page. HCode details are as listed on the HCode product pages in November 2026.

Here's the HCode plan ladder. Annual billing saves up to 8%.

PlanPriceRAMProjectsDatabasesStorageBackups kept
SoloR50 a month1 GB3110 GB3 days
DeveloperR200 a month4 GB5320 GB7 days
ProR499 a month8 GB10540 GB30 days
TeamR999 a month16 GB202080 GB60 days

Keep Netlify, Move the Backend

You don't have to move everything at once. Leave your static frontend on Netlify and run the backend on HCode.

  1. Deploy your API on HCode from GitHub or a .zip, using our Express hosting or, for that booking script, Python hosting.
  2. Add a database. Create managed PostgreSQL hosting on the same plan, beside your app.
  3. Point your frontend at the API. Change your frontend's API URL to your HCode app's domain.

Architecture diagram showing a static frontend on Netlify calling an API, worker, and PostgreSQL database hosted on HCode in South Africa

Ready to bring the frontend over too? HCode also hosts React, Vue, and Next.js frontends, so your whole app can live on one platform with one bill.

Our Recommendation

Growing backend? Choose HCode.

Netlify can run backend code, but it comes with function time limits, a short list of languages, overseas regions, and billing in dollar-based credits. Netlify Server, its answer to long-running apps, is still in Early Access.

HCode is built for the work those limits get in the way of:

  • Always-on workers and bots

    processes that run with or without traffic.

  • Long-running apps

    your backend stays running instead of starting and stopping per request.

  • More languages

    Node.js, Python, Go, PHP, Ruby, or your own Dockerfile.

  • A database beside your app

    managed PostgreSQL on the same plan.

  • Local hosting and rand pricing

    your app and data in South Africa, from R50 a month.

You don't have to move everything at once. Start with the backend and leave your frontend where it is, or bring the whole app across, since HCode also hosts React, Vue, and Next.js frontends.

Frequently Asked Questions

Can Netlify Host a Backend?

Yes, through Netlify Functions and Netlify Server, within limits. Functions are capped by time and language, and Netlify Server is in Early Access, with limits on scaling, regions, and idle time.

What Is Netlify Server?

Netlify's long-running Node.js backend, in Early Access since 10 November 2026, with WebSockets and in-memory state.

Does Netlify Have a Database?

Yes. Netlify Database is a managed Postgres database, available since April 2026 on credit-based plans.

How Much Does Netlify Database Cost?

It has no fixed price. It uses your plan's credits: 10 credits per GB-hour of database compute and 20 credits per GB of database bandwidth. Storage is currently free.

Can I Run Python on Netlify?

No. Netlify Functions support JavaScript, TypeScript, and Go, and Netlify Server runs Node.js. A Python backend needs another host, such as HCode.

Can Netlify Run WebSockets?

Only through Netlify Server, not Netlify Functions, and Netlify Server is still in Early Access and scales to zero when idle. For WebSockets in an app that stays running, HCode runs your app continuously.

Can I Use Netlify for the Frontend and HCode for the Backend?

Yes. Keep your frontend on Netlify, deploy your API and database on HCode, and point your frontend's API URL at your HCode app.

Avatar for Sumesh R.

The Author

Sumesh R.

Sumesh Ramdin is a South African web developer and digital consultant with over 12 years of experience in web development, SEO, eCommerce, and digital marketing. He specialises in WordPress, Shopify, technical SEO, analytics, and digital solutions that help businesses grow online. He also writes practical technical articles covering web development, digital tools, SEO, and emerging technologies.

Ready to Give Your Backend a Home?

HCode runs always-on apps in Node.js, Python, Go, PHP, Ruby, or Docker, with managed PostgreSQL beside them, hosted in South Africa.

Your first month is free with the codeHCODEFREE2026