I have two servers configured in haproxy. and these servers are accessible by the url, http://example.api.com/testweb/service and based on this a round robin is performed.
and as of now my application is stateless. I want to enable state ful behavior based on the url patterns.
example :
http://example.api.com/testweb/service ( stateless )
http://example.api.com/testweb/cacheservice ( stateful/persisted/sticky enabled )
I think for the stateful/sticky url pattern, lb will respond with the custom cookie header and client will re-pass the same on the subsequent requests.
Can you please let me know what would be the configuration and how it is achieved ?
Thanks.