rstudio / plumber

Turn your R code into a web API.
https://www.rplumber.io
Other
1.41k stars 257 forks source link

Suggestion for improving the "Hosting" vignette #966

Open david-vicente opened 5 days ago

david-vicente commented 5 days ago

Currently the Docker (Advanced) section of the Hosting vignette has two subsections:

which suggest using two technologies, Nginx and HAproxy, to solve the problems of reverse proxy and load balancing respectively.

I noticed that the document is using a custom version of HAproxy docker image which is in maintenance mode (not being developed anymore). While I was following this tutorial, I ended up wasting some time because I didn't understand this issue right way, and wrongly assumed that any version of HAproxy would be capable of performing service discovery, so I ended up using the official one and failing in the process.

While I was researching how to perform automatic service discovery using the official HAproxy image, I stumbled across a rather new software called Traefik that offers the features of both reverse proxy and load balance as well as automatic service discovery.

I also noticed that the official Get started Docker tutorial uses this application proxy. So it doesn't seem to be an unknown project.

So my question is: If I rewrite the Multiple Applications on One Port and Load Balancing sections using Traefik, instead of Nginx + HAproxy and make a pull request, would you consider accepting it?

schloerke commented 5 days ago

@david-vicente That would be great. Thank you in advance!