How to Host a Python Backend with SQL Database Cost-Effectively?

0
18
Asked By CuriousCoder42 On

I'm currently hosting a Python FastAPI backend on a Linux virtual machine, where I've also set up an SQL database and connected the two. I plan to host my HTML frontend using Static Web Apps. However, I'm looking for cost-effective alternatives to API Management (APIM), especially since the pricing for APIM with VNET integration is around $700. How can I design my infrastructure to keep costs down while keeping the backend on the VM?

1 Answer

Answered By TechSavvy123 On

Consider using a public backend and setting up NGINX on your VM to handle direct HTTPS requests. This way, you can avoid the high costs of APIM while still keeping everything secure and efficient. Just make sure NGINX points to your FastAPI service on the appropriate port.

FrontendWizard99 -

Could you give more details on how to implement the NGINX setup?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.