spirrello_22970
Jul 21, 2016Nimbostratus
Create HTTP Header from URI then Load Balance Off Of HTTP Header
Hi,
Doesn anyone know if it's possible to create an HTTP header from the URI of a PUT request and then load balance off of the HTTP header inserted into the request? The goal would be to always route the request to the same server in a pool but the catch is that the URI will always be a random file name. We need to solve a concurrency issue in handling files when servers make API calls to an internal service.
Example: PUT /api/1/blah123
X-New-Header: blah123
Route all subsequent requests (both PUT and DELETE) to server 1 based off of "X-New-Header: blah123"
PUT /api/1/blah456
X-New-Header: blah456
Route all subsequent requests (both PUT and DELETE) to server 2 based off of "X-New-Header: blah456"