Most small projects pay too much for hosting. Usually nobody decided to waste money. The advice online is mostly written by and for companies with millions of users, a platform team and investor money, and a local business website or a first SaaS product ends up copying that setup because it's what the tutorial showed. An internal tool for a 20-person company doesn't need the infrastructure of a bank.
I'm a full-stack and AI engineer based in Nagpur, and a fair chunk of my work for small businesses isn't building new features at all. It's sitting with a monthly cloud bill, going line by line, asking "what does this one do?", and then moving things to setups that cost a fraction as much. If I've done it properly, nobody notices the move. Well, the person paying the bill notices.
This post covers what I've learnt doing that: how I'd set up a new small project so it's cheap from day one, and how I move an existing project to a cheaper setup without taking it offline. I've written it for founders, small business owners and developers who care about the bill but can't afford a site that falls over.
Why small projects end up overpaying
When I review an expensive setup, the cause is rarely dramatic. It's usually some mix of the same few habits.
The first is copying big-company architecture. A template sets up a load balancer, three separate services, a managed database cluster, a queue and a container orchestrator. Every one of those makes sense at scale. At small scale each one is a monthly line item that does very little.
The second is paying for idle time. Someone sizes a server for the busiest hour of the busiest day, and then it sits at that size all month, through every night and weekend when nobody visits.
Then there's managed services by default. I like managed databases, caches and search. They save real effort. But each one has a minimum price, and four of them together can quietly cost more than the rest of the project put together.
Forgotten resources are the most common one I find. Old staging environments, test databases, storage volumes attached to nothing, snapshots from a migration years ago. Nobody remembers creating them, and nobody wants to delete them in case something breaks.
And quite often nobody owns the bill. The developer who set it up has moved on, and the owner sees one number on a card statement each month without knowing what's inside it.
None of this is a disaster on its own. They're slow leaks. Over a year they add up to real money, especially for a business that counts every rupee.
Reading the bill before changing anything
Almost everything on a hosting or cloud bill fits into a handful of buckets, and once you know them the bill stops looking like noise.
Compute is the code running somewhere: servers, containers or functions, billed by the hour or per request. Databases come next, with their storage and backups. Then bandwidth, which is the data you send out to visitors (cheap or free on most hosting platforms, sometimes painful on raw cloud providers). Storage covers files, uploads, backups and logs. After that you get the managed extras like load balancers, NAT gateways, queues and monitoring, each with its own minimum charge. And then third-party SaaS: email sending, forms, analytics, error tracking, auth and, more and more, AI APIs.
There's one more cost that never shows up on an invoice, which is people's time. Every hour someone spends keeping a complicated setup alive is money too. When clients ask me to "make it cheaper", I'm trying to bring that number down as well. A setup that's cheap on paper but needs someone to babysit it every week hasn't saved anything.
Size for today, leave room for tomorrow
If I had to keep one idea from this whole post, it'd be this one. Build what the project needs right now, but build it so it can grow without a rewrite. People often think the choice is between tiny-and-stuck or huge-and-expensive. It isn't.
In practice that comes down to a few habits I follow on almost every project:
- Keep the application stateless where you can, so it can move from one small server to several later
- Stick to portable pieces like PostgreSQL, Docker and plain HTTP APIs, rather than tools that only exist on one cloud
- Put configuration in environment variables, so switching providers is a settings change and not a code change
- Write down how it's deployed, so the next upgrade is planned instead of done at 2 a.m. during an outage
When something comes under real pressure, you upgrade that one piece. Until then you pay for what you use. I'd much rather tell a client "we'll need a bigger database in six months if growth continues" than have them pay for that bigger database from day one just in case.
Static first, almost always
The biggest single saving for most websites is pre-rendering pages to static HTML. A static page is just a file, and serving files from a CDN (a network of caching servers spread around the world) is cheap, fast and very hard to knock over with traffic.
A lot of business websites are built as apps that render every page on a server, or entirely in the browser, even though the content changes a few times a month. For those sites static is better on pretty much every count. Hosting on Vercel, Netlify or Cloudflare Pages is free or close to it at small and medium sizes. Pages arrive ready to show, which helps visitors and Core Web Vitals. Search engines see the full content without having to run JavaScript (I go into that more in basic SEO for Google and Bing). And there's no server to crash.
This site is built that way. Every page is pre-rendered to static HTML at build time and served from a CDN, with no always-on server behind it. Hosting it costs me close to nothing, and I don't lose sleep over traffic spikes.
Static doesn't mean you lose dynamic features. Contact forms, search, newsletters and even small shops can run through a few serverless functions or third-party services while the pages themselves stay static.
I'll be honest about where I don't go fully static, though. At Jackson & Frank I built the MACCE.com website UI along with a CMS portal backend, and that one is server-side rendered, because the team needed to add and edit blog posts and see them live straight away. That was the right call for how they work. The trade-off is that SSR means something is running all the time, so you plan caching more carefully. My rule of thumb: if editors need instant publishing, SSR or a rebuild-on-publish setup earns its cost. If content changes a few times a month, static wins.
Paying for idle time
For the bits that genuinely need to run code (an API, a webhook, a scheduled job), the next question is whether that code needs to be running all the time or only when something happens.
Serverless functions on Vercel, Cloudflare Workers, AWS Lambda or Google Cloud Run only run when a request arrives, and you pay for that time. For low or spiky traffic that's often much cheaper than a server waiting around all day, and the free tiers are generous. Scale-to-zero containers like Cloud Run go a step further: you deploy an ordinary Docker container and it shuts down when nobody's using it. That suits a small FastAPI or Node.js backend with occasional traffic really well.
Scheduled jobs are another place people overspend. A daily report or a nightly cleanup rarely needs its own machine. A cron trigger on a serverless platform, or a scheduled task on a server you already have, does the job.
The catch is cold starts. The first request after a quiet stretch can take a moment longer while things wake up. For a contact form, an admin panel or an internal tool, nobody will notice. For a public API where latency matters, I'd usually pick a small always-on server instead.
One small server instead of five services
When a project does need an always-on backend, the cheapest reliable option is often a bit old-fashioned: one small virtual server (a VPS) running everything in Docker.
A modest VPS from Hetzner, DigitalOcean, Linode, AWS Lightsail or a local Indian provider can comfortably run an API in FastAPI or Node.js, a PostgreSQL database, a Redis cache or job worker, and a reverse proxy like Caddy or Nginx handling HTTPS. All of that fits into a single docker-compose.yml. You deploy with one command, and moving to a bigger machine later means copying that file and the data across. Compared with running each piece as a separate managed service on a big cloud, the monthly cost is usually much lower, and the whole thing is easier to reason about.
The trade-offs are real, and I always spell them out to clients. You own the server, so security updates, disk space and backups are on you (or on whoever you hire). Those have to be automated, or they'll be forgotten. It's also a single point of failure: if that box goes down, everything goes down. For lots of small projects that's an acceptable risk if there's monitoring, automatic restarts and backups you've actually tested restoring. For systems where downtime really hurts, you add redundancy exactly where it matters and nowhere else.
I wrote a separate FastAPI production checklist that covers the backend side of this in more detail. For now it's enough to say that a well-run small server is a perfectly respectable home for a small product.
Databases are where money leaks
Managed databases are one of the most common reasons a small bill is bigger than expected. They're good products. They also have minimum sizes, and the "production-ready" toggles (high availability, read replicas, long backup retention) multiply the price fast.
Start with the free and starter tiers. Supabase, Neon and similar Postgres providers have tiers that are plenty for many small apps. I built ChatterSphere, a real-time chat app, on Supabase, and it served 200+ users at 99.9% uptime without me touching any expensive infrastructure. For a project at that size, building my own real-time layer would have been a waste of time and money.
If traffic is modest, you can also run Postgres right next to the app on the same small server, with automated backups going off to object storage. That removes a whole line item.
If you're already on a managed instance, open its CPU and memory graphs. I regularly see databases sitting at a few percent utilisation on a size somebody picked "to be safe". And think about whether you need high availability and replicas at all. For a critical system, yes. For an internal tool used by twenty people in office hours, a single instance with good, tested backups is usually fine.
The thing I push hardest, though, is fixing slow queries before buying a bigger database. Adding the right indexes and getting rid of N+1 queries can make a database feel twice as big for free. On one FastAPI CRUD service I worked on, indexing and caching made it about 20% faster with no hardware change at all. That's a cheaper fix than any upgrade.
Caching and CDNs
Traffic spikes are where badly designed setups get expensive. A campaign, a mention somewhere, a post that takes off, and visits multiply overnight. If every one of those visits hits your server and your database, you either pay for a much bigger setup or you go down. Often both, in that order.
Caching changes the maths. A CDN keeps copies of pages and assets close to visitors, so repeat requests never touch your server. Application caching holds the result of an expensive query or external API call in memory for a short while, so a thousand identical requests cost about the same as one. And proper HTTP cache headers tell browsers and CDNs how long they can reuse a response. Getting headers right costs nothing and gets skipped all the time.
SikhAid is the project I point to here. I built it and I still run it. On its busiest day it handled more than 2 million requests, with over a million users that day, and it held 99.99% uptime. People assume that kind of load needs a huge, expensive cluster. It doesn't, at least not for a platform like this. What it needs is pages that can be cached, a backend that only does work when it has to, and monitoring that tells you something's off before the users do. I'd take that over a bigger server any day.
AI token costs
More small projects now include an AI feature of some kind, and AI APIs bill per token, which is roughly per chunk of text going in and out. A careless AI feature can easily cost more than all the hosting combined. I learnt to watch this closely at Perimattic, where I helped deliver more than three production AI platforms: RAG pipelines, document-to-JSON extraction, the CareerMaker.ai backend for resume parsing and job matching, and speech features built on Whisper.
A few habits keep the numbers predictable.
Use the smallest model that does the job. A lot of classification, extraction and routing works fine on smaller, cheaper models, so save the big ones for the steps that really need them. In RAG, send less context: five tight, relevant chunks usually give a better answer than twenty vague ones, and cost less too. I wrote more about that in how I build production RAG pipelines.
Embed documents once and cache the embeddings. If certain questions keep coming up with stable answers, cache those answers as well. Batch work where you can, since processing documents in batches (often through cheaper batch APIs) costs less than firing one request at a time.
Set usage limits and alerts with every provider. A bug, or someone abusing a form, shouldn't be able to produce a shocking invoice.
And validate before you retry. When I was building document extraction for the Arhtattva project, pulling structured data out of PDFs, images and docs, a schema and business-rule check caught bad outputs cheaply, so we weren't blindly asking the model again and paying twice. There's more on that in documents to structured JSON with LLMs.
Matching the setup to the project
This is roughly how I match a project to a setup. They're starting points, not laws.
Level 0: a brochure or portfolio site
Some pages, some images, a contact form, content that changes now and then. This should be a static, pre-rendered site on Vercel, Netlify or Cloudflare Pages, with form submissions going through a form service or one serverless function. SSL, CDN and deploy previews come included. Often the only real cost is the domain name.
Level 1: a business site with a few dynamic parts
Add a blog, enquiry forms, maybe bookings or a small catalogue. I'd still keep everything static that can be static, add a headless CMS on a free or low tier if non-technical people need to edit content, and use serverless functions for forms, bookings and emails. You're mostly on free tiers with small usage-based charges.
Level 2: a small web app or SaaS
Now there are user accounts, a database, an API and background jobs. The frontend goes on static or edge hosting. The backend goes on scale-to-zero containers or one small VPS with Docker. Postgres sits on a starter managed tier or on that same VPS with automated backups. Monitoring and uptime alerts can stay on free tiers. The cost becomes a modest fixed monthly amount that stays flat until real growth shows up.
Level 3: a growing product with real traffic
Steady traffic, paying customers, more people depending on it being up. This is when you split out the pieces that are under pressure, and in my experience the database usually goes first. A managed database with proper backups makes sense here, plus high availability if the business really needs it. Add redundancy to the API where downtime would hurt, and keep as much of the frontend static and cached as you can. Costs grow with revenue, and each increase should be a decision someone actually made.
Moving up a level should be planned and gradual. I don't let projects start at Level 3 "just in case". It's the most expensive kind of insurance there is.
Moving an existing project without downtime
If you're already on an expensive setup, the good news is that you usually don't need to rebuild anything, and users don't have to see an outage. This is the order I work in.
Step 1: Go through every invoice
Pull the last few months of invoices from every provider (cloud, hosting, database, SaaS) and list every line item. Next to each one, write what it does and who uses it. Anything nobody can explain goes on the "probably remove" list. Honestly, this step alone often finds a decent saving before anything technical happens: old environments, idle resources, two services doing the same job.
Step 2: Draw how it really works
Map the actual architecture. Where's the frontend served from? Where does the API run? Which databases and storage does it touch, which outside services does it call, how do deployments happen, and where do the secrets live? You can't move a system safely if you don't know what's in it, and this is the stage where surprises tend to turn up.
Step 3: Measure real usage
Look at a month of CPU, memory, database and traffic graphs, and find the peaks. Most small systems use a small fraction of what they pay for most of the time. The new setup should handle the real peak with comfortable headroom, not a peak someone imagined.
Step 4: Design the new setup and price it
Pick the level that fits and estimate the new monthly cost line by line before touching anything. If the saving turns out small, it may not be worth the effort, and I'll say so. That's a perfectly good outcome for a review.
Step 5: Build it next to the old one
Set up the new environment in parallel. Deploy the same code, point it at a copy of the data and test everything: forms, logins, emails, payments, background jobs. The old system keeps serving users the whole time, which is what takes the pressure off.
Step 6: Move the data carefully
For the database, take a fresh dump, restore it into the new one, then check row counts and spot-check records that matter. For bigger or busier databases I'd use replication, or a short write freeze during the final sync. Files and uploads get copied the same way and re-synced right before the switch.
Step 7: Switch traffic, keep a way back
Lower the DNS time-to-live a day before so changes spread quickly. Switch at a quiet hour, watch error rates and logs closely, and leave the old environment running untouched for a few days. If something goes wrong, going back is one DNS change.
Step 8: Clean up, then keep watching
Once the new setup has run smoothly for a while, take a final backup of the old one and shut it down so you stop paying for it. People forget this bit surprisingly often, and then they're paying for two setups. After that, keep an eye on performance and the bill for a few weeks to make sure the saving is real and nothing got slower.
Done this way, users don't notice a thing. The invoice is the only thing that changes.
Hidden costs I check every time
Some costs hide really well. These are the ones I look for on every review.
Data transfer out of the big clouds is the classic one. Serving large images or files straight from a cloud server can get expensive, and a CDN or object storage with cheap egress usually sorts it out. NAT gateways and idle load balancers are another. On the large clouds they charge by the hour even when traffic is tiny, and they're often part of default templates, so people don't realise they've created them.
Logs are sneaky. Keeping every line forever in a managed logging service adds up month after month. I keep detailed logs for a short window and summaries for longer. Same with snapshots and old backups: backups are essential, but so is a retention policy, and hundreds of old snapshots aren't free.
Then the boring stuff. Staging, demo and test environments made for one meeting and never removed. Paid SaaS plans for tools someone trialled once, or seats for people who left. And exchange rates, which matter more than people expect here: a lot of hosting providers bill in US dollars, so for Indian businesses, picking providers with local billing or flat, predictable pricing makes budgeting much easier.
Last, domain and certificate renewals. They're small amounts, but they're exactly the kind of thing that lapses and takes a site down. Put them on auto-renew and on a calendar. My website health checklist has a few more of these small-but-painful items.
Cheap without being fragile
Cheap at any price is a bad trade. A setup that saves a little each month but goes down for a day every quarter is a bad deal, and I won't hand one over. On every budget setup I make sure there's uptime monitoring with alerts to email or phone (free tiers are fine for most small projects), automated backups stored somewhere other than the server itself, and at least one restore that's actually been tested.
I also want crashed processes to restart on their own, using Docker restart policies or a process manager, and health checks so problems show up before users report them. Operating system security updates should apply automatically, and dependencies should be kept current. And there should be a short document explaining how to deploy, restore and scale, so the system doesn't live only in one person's head (including mine).
With those in place a small, cheap setup can be very reliable. The production systems I maintain run at 99.99% uptime, and what gets them there is dull, consistent operations done every week. Expensive hardware has very little to do with it.
The fifteen-minute monthly check
If you take only one habit from this post, make it this. Once a month:
- Open every hosting, cloud and SaaS invoice and compare the total with last month
- Look into any line item that grew more than you expected
- Check whether new resources appeared that nobody is using
- Glance at server and database utilisation: is anything always idle, or always maxed out?
- Compare AI and API usage against your limits
- Confirm backups ran and uptime alerts still work
- Note any changes, and why, in a shared document
It's small, regular attention, and it stops the slow build-up that ends in a bill nobody understands.
When spending more is the right call
Low-cost is the right default for small projects. It isn't right for everything, and I'll tell clients when I think they should spend more.
That's usually when downtime directly costs serious revenue, or touches people's money or safety. It's also true when you handle sensitive data with compliance rules that call for specific managed services. If your team spends more hours maintaining a cheap setup than that setup saves, it's not cheap any more. And if real, sustained traffic (not a one-off spike) is pushing the current setup to its limits, it's time to grow it.
The same thinking applies beyond hosting. At Jackson & Frank, when the platform needed calling built in, I evaluated a few calling providers before integrating one. The cheapest option on paper isn't always the cheapest once you count integration time and how well it holds up, and hosting is no different.
I'm not trying to get every bill down to zero. My aim is simpler: every rupee going into infrastructure should be doing something useful, and someone should be able to say what.
If you think you're paying too much for hosting, or you're starting something and want it set up properly from the beginning, have a look at my low-cost deployment service. Or send me your current setup through the free consultation, and I'll tell you honestly where the savings are, and where there aren't any.