I am bringing multi-tenancy to a single-tenant app and I'm looking into using nginx to assist with that.
To describe the rough architecture, it looks like so: Each tenant runs in its own process, with multiple processes on each machine. There are multiple machines required to hold all of the tenants. So, a request comes through with an authentication token encoding the user and what tenant it belongs to, and nginx would hopefully be able to point the request to the correct machine/port for that user.
How is this accomplished with nginx? Are there any good tutorials for this type of setup?
To describe the rough architecture, it looks like so: Each tenant runs in its own process, with multiple processes on each machine. There are multiple machines required to hold all of the tenants. So, a request comes through with an authentication token encoding the user and what tenant it belongs to, and nginx would hopefully be able to point the request to the correct machine/port for that user.
How is this accomplished with nginx? Are there any good tutorials for this type of setup?