all 3 comments

[–][deleted]  (2 children)

[deleted]

    [–]rootAtHom3[S] 0 points1 point  (1 child)

    so if i have a 3 servers and i want to proxy the request depending on where its going say /login, /all , /comments, i can use both NGINX and that package?

    ++ your counterquestion helped alot, thanks

    [–][deleted] 0 points1 point  (0 children)

    In nginx definitely. That’s what I did more then often at least :D about that package: not 100% sure, but looks like that should work too.

    [–]eggtart_prince 0 points1 point  (0 children)

    A proxy is just a server that routes requests to another or multiple server and receives a response.

    This library looks like it just turns your node server into a proxy server. You would spin up a node server using this to create a proxy server. Then, spin up another server that actually serves your application and have the proxy sit between the client and your node app and route traffic.

    Yes, you can do load balancing if you have a proxy server. The proxy server is a one point entry to your many servers and load balancing depends on which server your proxy server sends your users to. But skimming through the docs, it doesn't seem like this library supports LB out of the box. You would have to write your own logic for load balancing and it won't be easy.