Home Community Insights 9 Best Affordable Hosting Providers for Express.js APIs

9 Best Affordable Hosting Providers for Express.js APIs

9 Best Affordable Hosting Providers for Express.js APIs

Does the API need to answer right away after an hour with no traffic? Settle that before comparing hosting prices. A sleeping demo and a customer API that stays awake can run the same Express code, yet need different plans. Then decide whether the budget covers just the Node process or its database as well.

Express can run as a normal web server [1] on shared Node hosting, managed app compute or a container. You can keep that server model while comparing how you deploy, what resources you get and which charges go beyond running the app.

1. Hostinger

Hostinger offers managed Node hosting on Unlimited and Cloud Startup. You can deploy from GitHub, an integrated development environment or a ZIP upload, and use managed MySQL. A small Express project can get both its app and database without running a VPS.

Unlimited starts at a $3.49 monthly equivalent with 48 months prepaid. The initial payment is $167.52, and the published renewal equivalent is $16.99 a month for the same term. To get that advertised monthly rate, you pay for four years up front. You cannot pay $3.49 one month at a time.

Cloud Startup starts at a $7.99 monthly equivalent on the same term, with 10 web apps, four CPU cores and 4 GB of memory. Compare those larger limits if you need space for more than one app. Check the plan’s exact process and resource limits before using it for a live app.

For Express, check that your chosen way to deploy supports the runtime and build the app needs. Test the database connection and check how the app behaves after a restart. SSL and tools to restore the app and database are included. Check how the restore you choose affects the service.

2. Render

Render can suit an Express developer who wants to deploy from source and run the app as a web service. You can deploy with native Node or Docker, use private networking and add separate workers as the project grows.

The smallest paid web compute costs $7 a month for 512 MB of memory and less than one CPU. Hobby has no workspace fee, while Pro costs $25 a month plus compute. Check which workspace features you need before adding that fee for a small app.

The free web service idles after 15 minutes without traffic and takes about a minute to wake. That can be acceptable for a demo whose users expect a wait. A webhook or customer-facing request may need the paid service instead.

Render’s managed SQL product is PostgreSQL. For MySQL, you need another setup, such as a private Docker service with a persistent disk. You provide the backup tools for that database. If the API needs a database, include that cost and work alongside app compute. Free services cannot attach persistent disks. Changes to local files disappear when the service restarts, deploys or sleeps.

3. Railway

Railway [2] can suit an Express API with an app service and a datastore. You can deploy from GitHub, Docker images or custom Dockerfiles, or use the command line. Built-in networking helps connect the parts within a project.

The $5 Hobby minimum includes $5 of resource use each month. Any excess adds to the bill. You pay for memory, processor use, volumes and external traffic. An app with a database can cost more than the minimum even if it gets few requests.

Start the estimate with the resources the app keeps between requests. Then add the work that grows with traffic. Estimate the database alongside the app. One monthly minimum does not cover both at any size.

Railway’s MySQL template supplies a single node that Railway maintains. You need to set up backups and high availability. Check Hobby’s 5 GB volume limit, too, if the service uses a database.

Use the platform’s deployment settings and health checks so you can repeat the release. Plan how to redeploy the API and restore its database without having to work out the settings at the time. That helps keep the low first bill useful beyond the first release.

4. GreenGeeks

GreenGeeks includes Node.js hosting [3] on Pro and Premium, where you manage the app through cPanel. You get Git, SSH, startup settings and environment variables. MariaDB is included if it meets your app’s MySQL needs.

Pro starts at a $4.95 monthly equivalent for 12 months prepaid, totaling $59.40 for the first year. Its renewal equivalent is $18.95 a month. The $2.95 Lite card is not a Node runtime plan.

A small Express app can fit if it works with the supplied tools and shared resource limits. The account does not provide Docker or root access. An app that needs its own container image or system packages needs a different hosting setup.

Allow time to deploy and maintain the app, even though those jobs do not have separate resource charges. GreenGeeks manages the hosting system. You set up the Node app, deploy it and fix problems with it. Check any background processes the app needs before using the account for more than the web service.

5. DigitalOcean App Platform

DigitalOcean App Platform gives an Express API a fixed-size managed container. It accepts GitHub, GitLab, Bitbucket and container images. It builds and deploys the app and patches the operating system. This suits a developer who wants a normal web service with a set compute size each month.

The smallest fixed shared container costs $5 a month for 512 MiB of memory and one shared virtual processor. It includes 50 GiB of outbound transfer, with overage at $0.02 per GiB. The 1 GiB fixed option costs $10 a month.

The $5 size permits one instance and does not autoscale. If the API needs several instances, compare the price of a size that supports them. The cheapest rate does not cover those features.

Database hosting is separate. The displayed minimum compute charge for Managed MySQL is $15.15 a month. You choose and pay for its storage separately. The development database offered at $7 is PostgreSQL. If the API already uses MySQL, the cheaper PostgreSQL plan gives you a different database. Add app compute, the database you choose and its storage to the estimate.

6. Fly.io

Fly.io [4] lets Express developers choose where the app runs and how to deploy it on a Machine. Its command-line tools can create a Dockerfile for Node frameworks, and you can deploy from GitHub. This is useful if you already use containers or the app needs the system to behave in a certain way.

Costs are divided among running Machines, volumes and traffic. In the displayed regional example, shared-cpu-1x with 256 MB costs $2.19 a month. A shared-cpu-2x Machine with 512 MB is listed at $4.39. Prices vary by region. Neither figure shows whether those resources are enough for your app.

Persistent volumes cost $0.15 per GB-month. External transfer in North America and Europe costs $0.02 per GB. A dedicated IPv4 address adds $2 a month when needed. Add up the services you choose to use. The smallest Machine price is only part of the bill.

Fly’s managed datastore is PostgreSQL. For MySQL, you need an outside database host or a database you run yourself. That extra work may outweigh a small compute saving for a simple API. Community help is free, while paid support starts at $29 a month. The trial is limited and does not provide an ongoing free hosting plan.

7. Sevalla

Sevalla supports an Express app through Git sources, buildpacks, Dockerfiles or registry images. You can deploy changes from GitHub, GitLab and Bitbucket on their own, keeping releases tied to the project’s repository.

The $5 H1 application has 0.3 CPU and 0.3 GB of memory, but it cannot use a custom domain. S1 costs $10 a month with 0.5 CPU and 1 GB of memory. Start the comparison with S1 when the API must use its own domain.

Managed MySQL is available separately. The smallest database costs $5 a month with 1 GB of storage, making S1 plus that database $15 before other charges. Check the database size against actual use, since the next listed database plan costs $34 a month.

Builds cost $0.02 per minute on the Standard build size, and external bandwidth costs $0.10 per GB. An API that returns large responses can have a different cost pattern from one that sends small JSON objects. Include an estimate for response traffic alongside the runtime price. Hibernation can reduce use, but the service will no longer run all the time.

8. Hosting.com

Hosting.com has two shared product lines with different plans and controls. Standard Shared Web Hosting uses the hosting.com panel. Its Pro plan supports Node. The separate cPanel hosting line supports Node on all three tiers in its developer feature table.

For a small Express service that needs cPanel, the cPanel Starter offer advertises a $1.99 monthly equivalent on four years, with a stated initial payment of $95.49. Its published renewal equivalent is $13.99 a month. Check which product you select at checkout. The Starter cards do not all give you the same panel and site limits.

The cPanel plan includes MariaDB databases, with a 1 GB maximum database size on Starter and Pro. You may reach that limit before the website count or file storage limit. A larger app database needs a different plan or service setup.

The standard Pro plan has its own $3.79 introductory monthly equivalent on four years, with a stated $181.93 payment and $19.99 renewal equivalent. Choose based on the controls and database space the API needs. Plans with the same name can still be different products.

9. HostArmada

HostArmada’s development hosting supports Node on all shared packages through cPanel’s NodeJS Selector. You get SSH, Git and npm, along with database tools. An Express developer can use shared hosting without starting from a server image.

With 12-month billing selected, Start Dock costs a $2.15 monthly equivalent for the initial term and renews at $11.95. The service totals are $25.80 for the first year and $143.40 at the annualized renewal rate. Start Dock covers one website with 15 GB of storage.

The published two-core and 2 GB memory figures are limits for the shared plan. They do not mean that hardware is set aside just for your API. Check the current runtime choices and account limits before buying.

Daily backups retain seven copies on Start Dock, with free restores. Higher shared tiers keep more backups and have larger published resource limits. You can create unlimited databases, but you still need enough space for their data and resources to run them. The provider calls the service MySQL. The checked plan details do not say exactly which server engine it uses.

Measure a Real Request Before Buying More Compute

Use a typical API request to decide what needs more resources. Measure the full response time. Then check how much time the app spends working and how much it spends waiting for the database or another service. A slow query can still be slow after you upgrade the app’s hosting.

Repeat the request with enough work running at once to match the load you expect. Watch memory, failures [5] and database connections as well as average response time. Keep the test data and request size close to normal use, and include a request that writes data if the API accepts writes.

Record when the chosen plan stops meeting your response target. You can use that result to decide what hosting you need next. It also tells you whether to pay for a larger app instance, improve a query or change the database setup before adding more compute.

References

  1. https://www.phusionpassenger.com/docs/tutorials/quickstart/node/
  2. https://railway.com/
  3. https://www.greengeeks.com/nodejs-hosting/
  4. https://fly.io/
  5. https://prometheus.io/docs/practices/instrumentation/

No posts to display

Post Comment

Please enter your comment!
Please enter your name here