Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating an API application which I want to deploy in the cloud and my application is made up of the following containers:

Nginx Container: API Gateway
API container
SQL Server Database Container
I am using Nginx as a gateway to route all network traffic to the API container and I also have a dns which is https://www.example.com and points to the Nginx container endpoint.

In my production environment, nginx container can be used as a load balancing server. Then, in the case of a single node, nginx or this server may fail. In order to ensure high availability, the first thing to think about is to deploy another nginx server. But the IP addresses of two nginx servers are different. So how to ensure that when one server fails, the other server will be used automatically?

I know that Nginx HA (High availability) exists but it is for Onpremise environment. How could I use Nginx HA in my production environment in the cloud with containers and without using kubernetes, AWS Network Load Balancer, Azure Standard Load Balancer or Google Cloud Platform?

Any documentation, example or idea will be greatly appreciated.

Best

What I have tried:

I tried with Nginx HA (High availability) but is Onpremise solution and I need cloud container solution
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900