Nginx is your best friend.
I always have an Nginx proxy in front of services. Whether it's Go, Ruby or Node (or Docker)
I always have an Nginx proxy in front of services. Whether it's Go, Ruby or Node (or Docker)
For resilience, HA, proxy routing, static files, masking backend errors, caching.
Does HTTP+S and 2 and Websocket so nicely.
Nginx all the things.
Anything you do in your service other than your own business logic is reinventing the wheel (I mean in the HTTP level), and not doing it so well as someone before you (nginx/HaProxy etc...).
This is a generalization of course, but my strategy of putting Nginx in front of everything didn't fail me so far.