Sticky session with Apigee Load balancer

Dear experts,

We need to have a sticky session for our requests.
We use a load balancer on Apigee level and it does not support the sticky session out of the box.

Our plan is to use the load balancer for blue/green deployment and A/B testing.

The idea of our solution is to use cookies to store the result of load balancing.

And during the next request, we route the request to the desired target according to the value in cookies.

We have tested the approach is working.

The diagram https://photos.app.goo.gl/gMnWmrd9tFbqZdBm9

Our main questions:

Is there any better approach on Apigee level to get desired result?

Is this approach an Apigee antipattern or inappropriate usage?

Is there any hidden issue or possible drawback in this design?

0 0 359