If you like DNray Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

Affordable Solutions for asp.net + MySQL API?

Started by Votsincit, Jul 18, 2023, 06:34 AM

Previous topic - Next topic

VotsincitTopic starter

I've developed a basic API for my application using asp.net, but I'm struggling to find a hosting service for deployment. Initially, I tried using Azure, but the prices for MySQL (at $5,000 per month) were shocking.
I require a static domain with SSL, as the application is for Android and SSL is necessary. In hindsight, I wish I had written the API in PHP, even though it would have taken longer since I'm more familiar with C#.
  •  


riyasharma431001

Finding a suitable hosting service can be challenging, but there are several options available that offer competitive pricing and support for ASP.NET applications. Here are a few alternatives to consider:

1. AWS (Amazon Web Services): AWS provides a range of hosting services, including EC2 instances that support ASP.NET applications. You can use RDS for MySQL database hosting, which offers more cost-effective options compared to Azure.

2. Google Cloud Platform: GCP also offers hosting options for ASP.NET applications, such as Compute Engine instances. You can use Cloud SQL for your MySQL database needs, which has more affordable pricing compared to Azure.

3. Heroku: Although Heroku is primarily known for hosting PHP applications, it also supports ASP.NET applications through the use of buildpacks. However, keep in mind that it might require some additional configuration.

4. DigitalOcean: DigitalOcean offers flexible and affordable hosting options, including droplets that support ASP.NET applications. You can set up a MySQL database using their managed database service.

Carefully evaluate each provider based on your specific requirements, such as SSL support and pricing. Additionally, consider factors like ease of setup, maintenance, scalability, and customer support when making your decision.
  •  

np.carzspa

The deployment of my applications on both Net Core and MySQL is identical. Microsoft has provided comprehensive dоcumentation for deploying on their hardware/VPS, which is very helpful. Additionally, they offer the option to use the cheapest VPS for only $5 per month.

Here is the link to the dоcumentation: https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-5.0

If you require any assistance or further expansion on this topic, feel free to reach out to me via personal messaging.
  •  

puviyamilla

Typically, when hosting on .NET, MySQL is not used, but rather MS SQL Server, which tends to be significantly pricier.
However, one alternative approach would be to consider separate hosting for .NET, such as on https://www.smarterasp.net/, while opting for a MySQL database on a cost-effective VPS (e.g., AWS). When combined, this solution can actually be quite affordable, amounting to around 5-10 dollars per month.
  •  

apolice9

I empathize with the challenges you've faced in finding a suitable hosting service for your ASP.NET API application. The pricing shock you experienced with Azure's MySQL offering highlights the importance of carefully evaluating hosting options, especially when considering factors such as SSL requirements and budget constraints.
Let's address the requirement for a static domain with SSL. To meet this need, it's essential to seek hosting providers that not only offer SSL certificates but also provide comprehensive support for SSL implementation. Look for providers that prioritize security and offer seamless integration of SSL for your API deployment. Furthermore, considering the importance of SSL for Android applications, prioritizing a hosting solution with robust SSL support is paramount.

In light of the pricing concerns raised by Azure's MySQL offering, it's prudent to explore alternative hosting services that can accommodate your API deployment without imposing exorbitant costs. One avenue to consider is researching specialized API hosting providers that offer competitive pricing tailored to API deployment needs. Additionally, cloud hosting services with a focus on cost-efficiency and scalability could present viable alternatives to traditional hosting models.

Regarding the hindsight realization about the choice of technology stack, it's commendable that you acknowledge the trade-offs between familiarity with C# and the potential benefits of PHP for hosting affordability. While familiarity with a particular programming language is advantageous, it's equally important to weigh the long-term implications of hosting costs associated with the chosen technology stack. Revisiting the technology stack decision in light of hosting considerations may yield insights into optimizing both development familiarity and long-term hosting affordability.
The quest for a suitable hosting service for your ASP.NET API entails a comprehensive evaluation of providers that offer SSL support, cost-effective pricing models, and compatibility with your technical requirements. By conducting thorough research and actively seeking hosting partners aligned with your project's needs, you can navigate the hosting landscape with confidence and ensure the successful deployment of your API while meeting SSL and budgetary requirements.
  •  


If you like DNray forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...