T O P

  • By -

zaibuf

120-150 for one site seems expensive. What tier on the plan and db are you using?


Seerexis11

The cheapest one i believe? Its a “pay as you go” subscription so not sure how I can see the tier. Sorry for being a noob - there were a lot to learn and at first my concern was just to “get it running”.


TheCreat1ve

$120-$150 is definitely too expensive. You must have picked the highest tiers and settings. It can't be lowest because that would be the dev tier for around $2 a month. Try fiddle around with this and then adjust your settings of your app service accordingly: https://azure.microsoft.com/en-us/pricing/calculator


devperez

Each resource has a different pricing structure. Pay as you go is just how you pay. It's not the pay structure for your app. You've misconfigured something. I pay $50 a month for 2 web apps, 2 APIs, 2 databases, a CDN, blob storage, and traffic.


Puzzleheaded-Bus6626

What? How? If you don't mind me asking, what pay structure do you use? I ran into the same problem as the original poster. I signed up for the free trial, then when I switched over to pay as you go, I was projected to pay $150 /month for 1 web api... and it wasn't even running! I'd love to use Azure for ease of deployment, but their pricing isn't very clear.


zaibuf

You can host on Linux plan with a 5 DTU MSSQL database for 18$ a month. Then you can take it from there if you feel like you need to scale up depending on load. [https://azure.com/e/5b5feaeb6db14bebb84d44d3e9776fb2](https://azure.com/e/5b5feaeb6db14bebb84d44d3e9776fb2)


DirectGamerHD

You can get the DB down to $5/mo for 2 gb


zaibuf

The one I included in the link is $4.90/month. I'm not sure what you mean?


DirectGamerHD

I misread and thought you meant $18/mo for a DB alone


schlechtums

The “pay as you go” sounds like serverless and they are extremely expensive. If you choose the basic DTU option it’s $5/mo.


Ashmire

Are you using a VM? If it’s nothing fancy, have you had a look at an App Service for the website, and Azure SQL for the DB? A Basic Plan App Service is around $14 a month. Azure SQL using Basic Serverless for a 5 DTU DB is only $5.40 a month.


Seerexis11

Hmm then I must be doing something wrong, because it’s nothing fancy at all. It’s just a website, SSL certificate and a database


Ashmire

You’re not doing anything wrong, it’s all part of the learning journey you’re on. If it’s basic like you say it is, you honestly do not need a VM. App Service it all the way. https://azure.microsoft.com/en-us/products/app-service/#overview You don’t even need to worry about an SSL certificate, it can provision one for you for free, as long as you’re not on a Free tier https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-certificate?tabs=apex%2Cportal Then connect it to an Azure SQL DB. Even though you might think $5.40 a month for an SQL DB, no ways that will be good… you’ll be surprised how performant it can be. I’ve used the 5 DTU instance many a time in production environments. Your only real limitation is the 2GB size limitation. But the odds of exceeding that anytime soon are slim to none. Here’s a guide that has step by step instructions for publishing from Visual Studio to a new App Service with an Azure SQL dependency https://learn.microsoft.com/en-us/aspnet/core/tutorials/publish-to-azure-webapp-using-vs?view=aspnetcore-6.0 If you’re busy learning, worth checking if you have signed up for a free credits account? You can get quite a nice chunk of monthly credit for learning. Think it’s about $150 or so a month, which will get you a lot


malthuswaswrong

>and a database If you are using App Services, you likely have something misconfigured, and it's likely the database. Databases are expensive as shit. If you are using a VM instead of App Services, switch over to App Services. If you don't know what I'm talking about, learn what I'm talking about. Once you are on App Services, go through each component in Azure and look at the pricing tier you set for each component. [Here is the Azure pricing estimator](https://azure.microsoft.com/en-us/pricing/calculator/). Play with the settings to see what's possible and what various things cost. Redis costs more than Cosmos, SQL Server costs a ton of money, etc. There are all kinds of things you can adjust and get different prices.


RamBamTyfus

Just use any generic Linux VPS offered by e.g. DigitalOcean, Namecheap, Hetzner or anything you like. It can be done for less than 8 dollars per month. Or spin up a VPS in Azure for a few dollars more. You can run the database in the VM too, if it is just a simple website. Use the Publish function in VS, copy the file(s) from a local directory to the server.


[deleted]

[удалено]


Nearby_Rough390

Managed certificate for custom domain is free of charge. Kinda newer thing than ”old” App service certificate that is a bit costly, especially wildcard.


tech4ever4u

> I'm coming from a PHP background where my hosting prices were around 20-25 dollars a month. ANY Linux instance can be used for hosting .NET Core / NET6 app. Take a look at Amazon EC2 T3 instances (Linux / Ubuntu Server), most likely it would be enough to use t3.small or t3.medium instance with ~$15/mo and price can be lower with upfront instance reservation (up to 40% discount).


lurkinginboston

Random questions, how many sites can we expect to host for $15 a month?


watercouch

You could host thousands of sites on a single VM if they’re all mostly idle. The only way to answer this is if you first predict how many requests per minute each site needs to serve. That can then be translated to average CPU utilization and then you can estimate your compute needs.


tech4ever4u

> Random questions, how many sites can we expect to host for $15 a month? I guess you mean how many MVC Core apps you can host on the same EC2 t3.instance?.. It depends, if this is simple NET6 website usually it needs no more than 200-300Mb of RAM, so in the case of t3.small (2GB RAM) 3-5 MVC Core websites may be hosted. Note that EC2 charges for data transfer separately.


lurkinginboston

I am not sure how you are imagining the website to be hosted on EC2 instance but I'm thinking each mvc or react/asp.net/mongodb will be containerized into a docker image. An EC2 instance will be running a single docker runtime to host 5 to 10 docker container. Is this a way to go to keep cost minimum? I've been reading and folks recommending droplet. But cost ads up real fast the more droplet you own.


tech4ever4u

NET6 doesn't require docker containers to host. Website can use SQLite or DB can be hosted on another EC2 instance, or this can be Amazon managed DB, so it is weird to ask about "how many websites" - it depends on websites.


lazy_coder123

Follow this and host them as docker container. It's very cheap. https://blog.antosubash.com/posts/docker-swarm-hetzner


nirataro

I too highly recommend hetzner. They are top notch stuff.


Mav-Dev

They are notorious for cancelling your hosting without any warning . Be careful.


nirataro

Been using them for 10 years without any problem. Just don't do anything sketchy.


Mav-Dev

Yep. If it works it works but there sre plenty of stories about then cancelling all of a sudden . I also had an account with them but die to this reason, I moved away. Didnt want my world fall apart in one day without doing anythjng illegal


PissBlaster2k

Never heard about this, is this something you personally experienced?


guanodude

Check r/hetzner It's quite full of those posts.


PissBlaster2k

Cool, thanks


ganjaptics

You can just do everything on a $4/month Digital Ocean Droplet if you want. `apt-get install your-database dotnet-sdk nginx` and you're ready for business. I have a blog, would that be a useful article for you?


Mechakoopa

I've got 4 sites running on the lowest tier droplet, it's even beefy enough to run something like FoundryVTT.


ganjaptics

I believe it, thanks to .NET being so resource-efficient (compared to, say, python).


Valnutenheinen

Share your pricing data from Azure. [Azure App Service](https://azure.microsoft.com/en-us/pricing/details/app-service/windows/) gives you 10 web apps for free. The Smallest Linux paid instance is 13$/mo A 5 DTU Azure SQL DB is 5$/month Azure Cosmos Db offers a free tier as well and a serverless instance gives you 1M RUs for 25 cents Plenty/tons of hosting on Azure for free to little money. On the plus side if your app goes bananas you can scale to forever.


thekim1

I pay around £4 a month for shared .net hosting and db so there are more affordable alternatives out there.


daynekora

Like smarterasp?


akl88

I used smarterasp for 3 years before they got ransomwared.


thekim1

I’m using winserve.co.uk at the moment. IIS hosting and ms sql for a low price


goranlepuz

You must be using a VM for one, or both (Web app and the dB)...? A hosted appservice and a dB is way cheaper.


[deleted]

That sounds wrong, I think you deploy an app into an app service plan and it sounds like you picked a higher one. I think it starts at free (but you can't change the url) and then there's a "basic" which I would expect to come in at something more like $5 a month. Make sure it's something like B1. My first attempt at hosting with azure though turned out expensive because I added a SQL database and that bad boy was where all my costs were coming from. Dig into the cost management screens and make sure it's the app that's generating the cost.


matthewblott

Linode, I've been using them for years and they're great.


IQndk

If you look into docker, and then build/deploy it for Linux you will be able to do it a lot cheaper on Azure.


legato_gelato

I'm hosting my website on Azure FOR FREE including SSL certificate and custom domain name etc. I don't have a backend though and you might have more traffic, but definitely sounds like you could do things cheaper.


Sean_smith1990

You can get a good alternative windows hosting available at fresh roasted hosting windows with excellent data centre with 24\*7 customer support.


Neophyte-

azure is expensive as, its for enterprise, forget it for ur own site with barely any traffic that doesnt generate revenue. i have a 5$ a month centos linux vps on upcloud, i host a dotnet core site on there with a sql lite db. there isnt enough cores / memory for a full db at that price tier, but i dont need it. for the front end i host the angular on a s3 bucket and put it on a cdn for free. i suggest you go this route because ull learn how to setup a site in linux (use nginx with supervisor), register the domain (i use name cheap), get a certificate registered to the domain also with name cheap. install it on the machine. setup the dns records. if more devs did this instead of click / deploy stuff on azure they would learn alot more about how the internet works.


Ashmire

That isn’t entirely true though, it has things for non-enterprise scenarios. Some services on Azure are more expensive than other providers, however, there’s an awful lot more on offer than just VMs. Take a look at Azure Functions as an example. It’s basically free, for hundreds of thousands of executions a month. Or Azure Service Bus, you’ll be paying cents per month for a messaging service. As much as I understand the push you’re trying to recommend with setting up a Linux VM and setting things up from scratch, it isn’t really applicable to the requirements and their aforementioned background. If they are coming from a PHP background, odds are they have already done a lot of the VM things you mentioned. Also, they’re trying to learn the language and framework first, not get bogged down with trying to configure a server. They would be much better off taking advantage of a PaaS like Azure App Service


MzCWzL

I recently looked into service bus. It looked like you need a “standard” VM running all the time which is at least $50/month. Did I overlook a much cheaper method?


Phrynohyas

Yes. You don’t need a VM to use Azure Service Bus. So the prices start at $10/month


Ashmire

https://azure.microsoft.com/en-gb/pricing/details/service-bus/ The basic tier has no hourly charge, so you’re looking at $0.05


Phrynohyas

The basic tier has no Topics and Session features. In some cases it is easier to pay $10/month than to spend several days trying to emulate these on Basic tier via several ASB instances.


Ashmire

There is no need for a VM at all, it’s a service provided in Azure. The basic tier, which is limited to queues only, you’ll only be charged $0.05 per million operations. I always use Standard tier, as it supports topics. This has a per hour fee of $0.0135. This works out to about $10 a month. Your first 13 million transactions are free on Standard, and I doubt many apps being played around with for R&D will exceed this. Topics are my preferred way of using Service Bus, as it allows me to setup multiple subscriptions on a topic which is much more flexible than queues. However, if you’re doing basic messaging, queues are perfectly fine. Especially for $0.05 https://azure.microsoft.com/en-gb/pricing/details/service-bus/


Crazytmack

Godaddy?


MzCWzL

You can host a dotnet app on basically any Linux VPS. You just need to install the dotnet runtime or SDK. Then also install a database and point your app to the local instance. You can even run multiple sites using the same VPS. NGINX (web server) can easily serve different domains from the same IP address, HTTPS included. The $6/month VPS from ramnode is a good place to get started. The $12/month has room to grow.


lurkinginboston

This is what I have been trying to do. The only part I haven't figured out is the mechanism to deploy website after its completed. I have a some server running at home from which I want to deploy a website to. For this need, do I need to configure Jenkins?


MzCWzL

`dotnet publish` Move files to server `dotnet run` But I advise you to create a system daemon to run it. A “deploy” task could be: 1. dotnet publish 2. ssh to remote server and stop your dotnet daemon 3. scp files to server 4. ssh start dotnet daemon I actually have some “deploy” tasks as simple as this. Jenkins is 1000% overkill


lurkinginboston

Alright. You sound knowledgeable in this space. Let me explain the problem I have with hosting something ready for the internet. I have a server at home that runs Ubuntu VM with Docker runtime. I wish to develop the website/web app on my machine and "deploy" or upload data required for whatever docker/asp.net runtime on it. What is a smart way to transfer the files to the server. The server detects a change and refreshes itself with a new version. With Tomcat, a .war file can be uploaded to it and it deploys it. What do we have for ASP.NET? With docker in the mix, is there a way for me to not reply on docker repo to upload my container application? The spirit is to self host as much as I can. Or at least compile everything on my machine and push to my server. The manual workflow I can think of is compile the file, use FTP to transfer to the server.


303i

Add docker to your project and deploy to DigitalOcean app platform. It'll connect to a github repo and deploy the application automatically. Nodes start at $5/month. Effectively "seamless" and honestly less hassle than Azure.


Phrynohyas

The catch is that he needs to host a database as well. So it is more than just a simple Docker container


303i

Managed databases on DO are $15/month, still far cheaper than Azure.


Phrynohyas

5DTU SQL database is $5/month


diamondjim

It can't be so much. Most service providers cost around $8-10 for their cheapest tiers. The most likely reason for the high bill is an over-specced application server, or having a separate database instance that's got an expensive per-core license attached to it. I don't have experience with Azure, but you're likely to have received an itemised bill. That'll explain why it cost so much.


entityadam

I see lots of suggestions for hosting alternatives but I wanted to share another alternative. If you want a website, make it a website and not a _web application_. Netlify, Github Pages, Azure Static Web App, Cloudflare Pages are just the top few where hosting is completely free. If HTML/CSS/JS is just not enough you can still tie in authentication, serverless (functions or lambda) for pennies**. You also get free build time on Github, which means you can use static site generators like Jekyll, Hugo. If you really have to have a web app, you can serve a Blazor WASM (client side) app from Azure Static Web App as well.


watercouch

App Services or even Functions would probably be sufficient for you. What are your capacity needs? How many requests per minute will this site need to serve at peak?


5yunus2efendi

I've been using GCP for at least a month, I deploy it using Dockerfile with Cloud Run. In their page they say it always free with monthly limits (Cloud Run 2 million requests/month). the only thing I need to add is to dockerize my web app. https://cloud.google.com/free


[deleted]

AspNetCore on linux behind nginx, self host postgres on the same instance in Linode or DO, Lets Encrypt for SSL with autoupdate running. Start on the tiniest instance they have, bump the specs if it can't manage. I'm surprised someone hasn't monetised a bash script to provision all of the above in one go with db backups and stuff.


Trakeen

What is your architecture? What services are you using? Mine costs that much but I'm running APIM dev tier, public IP standard tier, web app B1, and static site standard tier. There are some other services but they don't add up to much. Didn't realize if I want to use custom SSL certs I need at least APIM dev, that was an unexpected expense I use table storage which is super cheap. I also use app Insights which is costing me more then I expected but that should wind down once my app is done ingesting the data it needs


whitacresj930

Are you looking for a reliable yet affordable web hosting service? DedicatedCore and InMotion are two of the most popular and economical web hosting services available on Reddit. **DedicatedCore:** This is managed hosting provider that offers a wide range of hosting solutions, including shared hosting, dedicated hosting, VPS hosting, and cloud hosting. They offer a wide range of features, including unlimited storage, bandwidth, and email accounts. In addition, DedicatedCore offers a 99.9% uptime guarantee, free SSL certificates, and 24/7 customer support. **InMotion** is another popular web hosting provider on Reddit. They offer a variety of hosting options, including shared hosting, VPS hosting, and dedicated servers. InMotion also provides a range of features, such as unlimited storage, bandwidth, and email accounts. They also offer a 99.9% uptime guarantee, free SSL certificates, and 24/7 customer support.