Hosting an API
Hello! I want to host my API to the web but I don't rlly know what service to use. I have an ASP.NET Core API, Clean Arhitecture with a local SQL Server Database. What would be the best method to get it on the web along with the database? Thanks!
22 Replies
find any hosting provider that lets you use your own docker images / containers, hosting at that point would be trivial
so I should first dockarize everything?
i don't have any experience with this whatsoever and this is why I'm asking
it's what i would do, putting asp.net / .net core stuff into a container is pretty simple
Yeah... :harold:
Could you recommend any docs?
Also with the database?
Like the ASP.NET Core API plus database
all in one container
that's not how you use docker
sql server will have public containers available, use those
Are they free?
yes
Okay
so for sql server, public containers
and for your asp.net stuff just google it
should be a ton of resources on how to do it
plus looking at the docker documentation when needed
i see
and after I dockerize
then you find a hosting provider that you can run them on
or you look at hosting providers first, some will have stuff built in to host databases without docker / virtualization
Like heroku?
Or Azure
not sure what heroku offers, haven't used them in a decade or so
i see
but ya, azure should have managed database options
what are you using if I may ask?
i don't publicly host any of my personal stuff
it's all self-hosted in my own server rack
at work we use oracle
i see
very cool
thank you a lot for your help
I'd like to add you don't need to dockerize. IE it's not mandatory. I've deployed API's to Azure with success without having to use Docker. I would look more so at pricing.
Hosting .NET can get expensive if you plan to host it 24/7. Check out pricing and see what your options are.
:Ok:
The standard recommendation is to get a cheap VPS as your first hosting solution
$vps
Cheap recommendations
https://www.scaleway.com https://www.digitalocean.com
https://www.linode.com https://www.ovh.co.uk
https://www.time4vps.eu https://www.vultr.com
https://www.hetzner.com https://contabo.com
Always free options
https://cloud.google.com/free
https://www.oracle.com/cloud/free/#always-free