Hosting Question
-
I'm going to be developing a .Net Core Web API. I'm not really sure what the best approach is for hosting it. I'd like to get your input. If you need more info, please ask. Thanks
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
-
I'm going to be developing a .Net Core Web API. I'm not really sure what the best approach is for hosting it. I'd like to get your input. If you need more info, please ask. Thanks
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
There is no universal "best" anything. As always, the answer depends on your situation. There are many questions you need to ask yourself before you can pick the right approach for your specific situation. For example:
- Do you already have a Windows or Linux server you can use?
- If not, what's your budget and requirements for hosting?
- If you're using a database, which DBMS are you using, and where is the database located?
- If you're collecting any data on your API's users, have you researched whether there are legal requirements to host it in a specific country or region?
- Do you need any of the features that IIS offers[^] which Kestrel doesn't (or vice-versa)?
- Are you using any platform-specific APIs?
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
There is no universal "best" anything. As always, the answer depends on your situation. There are many questions you need to ask yourself before you can pick the right approach for your specific situation. For example:
- Do you already have a Windows or Linux server you can use?
- If not, what's your budget and requirements for hosting?
- If you're using a database, which DBMS are you using, and where is the database located?
- If you're collecting any data on your API's users, have you researched whether there are legal requirements to host it in a specific country or region?
- Do you need any of the features that IIS offers[^] which Kestrel doesn't (or vice-versa)?
- Are you using any platform-specific APIs?
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
I don't really know the answers. I'm building a prototype/POC WPF app for a potential client, and I want to host the back end API somewhere where they can get to it. I probably need some form of cloud based hosting but I don't know much about the topic. - I'm planning to use ASP.Net Core - I'll be looking to use SQL Server - As far as budget, probably not much as it's a POC
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
-
I don't really know the answers. I'm building a prototype/POC WPF app for a potential client, and I want to host the back end API somewhere where they can get to it. I probably need some form of cloud based hosting but I don't know much about the topic. - I'm planning to use ASP.Net Core - I'll be looking to use SQL Server - As far as budget, probably not much as it's a POC
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
The good news is that ASP.NET Core can be hosted on Linux (so long as you avoid Windows-specific APIs) which will probably be cheaper than Windows hosting. SQL Server 2022 can also run on Linux. So it comes down to whether you want to rent and manage your own VM somewhere in the cloud, or use something like Azure or AWS to host it. The VM would give you more control, but you'd have to set up and manage the server yourself, and you'd probably end up paying a flat rate. With Azure/AWS, you'll likely be charged for what you use, so if you only use it for a couple of hours a month, that's all you'll pay for.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
The good news is that ASP.NET Core can be hosted on Linux (so long as you avoid Windows-specific APIs) which will probably be cheaper than Windows hosting. SQL Server 2022 can also run on Linux. So it comes down to whether you want to rent and manage your own VM somewhere in the cloud, or use something like Azure or AWS to host it. The VM would give you more control, but you'd have to set up and manage the server yourself, and you'd probably end up paying a flat rate. With Azure/AWS, you'll likely be charged for what you use, so if you only use it for a couple of hours a month, that's all you'll pay for.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
Thanks. I'll look into AWS
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.