11.1.1 Enable Session Affinity
When you enable session affinity, all the requests for a unique transaction or session are routed to the same endpoint or replica of the participant service that served the first request.
Use the instructions provided in this section to enable session affinity or sticky sessions if you have deployed the participant service or transaction coordinator within an Istio service mesh. If you are using load balancers, such as Nginx or HAProxy, refer to the load balancer documentation to configure session affinity or sticky sessions.
The steps provided in this section are specific to enabling session affinity for a participant service. You can enable session affinity for the transaction coordinator in a similar manner.
- Ensure that you have deployed the transaction coordinator and participant services within an Istio service mesh.
- Identify if you need to enable session affinity for your participant service or for the transaction coordinator. See About Session Affinity.
Parent topic: About Session Affinity