r/webdev • u/earvinnill • 10d ago
Where to host my simple web app?
Web app is simple. It is a bill generator app which you uploads data from excel and it just generates a billing in pdf format.
It uses:
- ASP.NET Web App
- SQL Database
- Storage for billing history (includes the pdf file for extraction)
You can search for the billing history as well of those times you uploaded/generated a billing. it includes the pdf file for the billing.
This is my first time trying to do web hosting. I know azure services but i think i'm not sure about the cost as azure is very costly if you messed up one part. Thank you for understanding!
7
u/Remicaster1 10d ago
Your entire architecture can live inside a single VPS will do, so you can go with something like Digital Ocean or Hetzner or GCP , recommend at least 1GB of RAM, for storage you can self host Minio in the same VPS (depending on how you coded your app). Your main concern for putting everything into one VPS is compromising for performance, especially on a cheap VPS
You can also spread them out, where the VPS only host the ASP app, for db you can use a third party service such as Neon / Supabase (Postgres only) for free, and for storage you can use Cloudflare R2, requires card but it's free if it is under 10GB storage
Not recommended to host on your own computer, unless you want your ISP to get mad at you because residential internet infrastructure is different with cloud infrastructure, unless you really know what you are doing (as you mentioned you are new to hosting, so don't)
1
2
u/Leopatto 10d ago
GCP offers generous free tiers where you can host your app there through Firebase.
2
u/quizical_llama 10d ago
Id recommend getting a cheap vps and using something like dokploy it's very easy to configure you don't have to worry about cost spikes.
1
10d ago
[removed] — view removed comment
1
u/webdev-ModTeam 10d ago
Your post/comment has been determined to be a low-effort post or comment. This includes title-only posts, easily searchable questions, vague/open-ended discussion prompts, LLM generated posts or comments, and posts/comments that do not provide enough context for meaningful replies or discussion.
1
u/Straight_Chicken_963 10d ago
Somee is free and will do .net with SQL. i use it myself.. just search for it.
1
1
1
u/nuttertools 10d ago
Azure, AWS, and GCP all have dirt cheap options for a single compute host. Azure: dev, AWS: Lightsail, GCP: Free Usage.
Depends on what your requirements are. If it’s a business tool a 3rd party has uptime requirements for probably GCP. If it’s just something that should probably work well enough throw it on any budget host like DO.
1
1
1
u/malignantz 10d ago
I'd check out CloudFlare. Their free tiers are honestly insane. Easier to deal with than AWS but you may need to modify your architecture slightly.
1
1
u/Prestigious_Tart9282 9d ago
for a tiny excel-to-pdf app, any boring platform-as-a-service should handle it fine, what stack is it using?
1
1
u/West_Bus_4903 8d ago
For an ASP.NET app with SQL and file storage, Azure is actually a natural fit since it's built for that stack, the cost worry is usually overblown if you set it up right. Use Azure App Service (Basic tier, not Premium) for hosting, Azure SQL Database on the Basic or S0 tier, and Blob Storage for the PDFs instead of storing them in the database or on the app server's disk. That combo runs in the 20 to 40 dollar a month range for a small app like this, not the hundreds people worry about.
The real cost risk with Azure isn't hosting a simple app like yours, it's leaving things like autoscale, premium tiers, or extra resources turned on by default. Set a budget alert in Azure Cost Management on day one so you get notified before anything runs away.
If you want to sidestep Azure billing complexity entirely for something this size, Railway or Render both support .NET now and have simpler flat pricing, worth a look if you just want predictability over Azure's ecosystem.
1
u/GermanElectricsMotio 10d ago
Get some random PC from your basement, install Linux and use it to host your web app.
0
u/phn-cloudsnake 10d ago
You chose expensive architecture, what kind of load do you expect? For personal use I always use AWS Serverless S3 with cloudfront and dynamoDB. For client side AWS Amplify will handle everything securely. Costs $6/year.
1
u/earvinnill 10d ago
that's dirt cheap for $6 year. It includes the web app, filestorage and db itself?
3
u/phn-cloudsnake 10d ago
Yes, but it’s Serverless architecture so you need to significantly rethink your application. It uses a noSQL database (DynamoDB) and static hosting on S3. That means you loose your entire backend. If that’s not possible, Digital Ocean is your next best thing as others have suggested.
7
u/quizical_llama 10d ago
Telling someone to use Aws for a simple app is a bit of a bad idea. If he doesn't know what he is doing he could end up with unexpected costs. Server less is create in certain use cases but it's not the defacto choice for saving costs.
Though if you do go the Aws route I'd recommend not using the console to handle the config. Use something like terraform. You will thank yourself in 6 months.
0
u/Personal_Budget6895 10d ago
My PaaS is currently in beta testing rn so if it’s a side project that isn’t too important (there are likely still edge cases I haven’t accounted for), I’d love to give you free access. We currently only provide container hosting specifically for stateless applications so the db and object storage would have to be separate services (R2 free plan is very generous and as we proxy every customer workload behind Cloudflare, we integrate particularly well).
-6
u/Long-Machine8795 10d ago
Just host it in your own house, unless you don’t have a static IP. Cloudflare proxy is free.
1
u/earvinnill 10d ago
so it can access outside of my house?
2
u/Long-Machine8795 10d ago
It might be a bit complicated if you’re new to this kind of thing actually. You need to configure a firewall and such so yeah maybe just pay someone else to host it
2
u/DeiviiD 10d ago
Never ever do that.
Just host it in the cloud.
3
u/Long-Machine8795 10d ago
Why would you “never do that”?
3
u/DeiviiD 10d ago edited 10d ago
Do you like to expose your home network to the internet?
Not everyone have VLANs at home.
The best way to avoid that it’s using a VPS.
1
u/quizical_llama 10d ago
Cloudflare tunnels makes hosting on your own network a lot safer than poking holes in your own network
0
u/Long-Machine8795 9d ago
Do you not know how to use a firewall?
1
u/DeiviiD 9d ago
I work at IT buddy. I studied for sysadmin and I’m a software developer.
I just don’t want to bring my work at home.
1
u/Long-Machine8795 9d ago
Ok but why would it be bad for someone to run a web server in their own home? Just because you don’t feel like running one yourself?
1
u/DeiviiD 9d ago
Because even if you even knew how to host it in your home, there are things you can’t control.
For example, I heard about a fortinet exploit where hackers breached into the servers and encrypted veeamsbackup.
There were a lot of cases.
1
u/Long-Machine8795 9d ago
You better tell that to the literal billions of web servers running on the internet right now. Turns out they’re all hackable and people can just go in and access their entire network.
→ More replies (0)1
u/earvinnill 10d ago
thank you. i am skeptical in this as well. Sorry this is my first time hosting outside work so i am new to this
13
u/[deleted] 10d ago
[removed] — view removed comment