Reputation: 1467
I have a multicontainer Docker environment on Amazon Elastic Beanstalk. This env include 2 APIs container - PHP and node. The reason for that is we have all previously implemented logic and end points in php, however all new end points are made in nodejs. Now I would like to setup redirection that the existence of 2 API containers would be transparent for the client. For example when the client queries server/login it would be redirected to the php container, when server/register to the node one. Thus redirection should be determined based on endpoint. What is the best approach to implement this? Thank you in advance.
Upvotes: 0
Views: 75
Reputation: 4012
Best approach is relative.
Nginx or haproxy in front are your best bet for swapping backends based on URL rules.
Upvotes: 1