10.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. 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. To enable session affinity for the transaction coordinator, update the YAML files and Helm Chart that are specific to the transaction coordinator.
Before you begin, complete the following tasks:
- Ensure that you have deployed the transaction participant service 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.
To enable session affinity for a participant service:
Parent topic: About Session Affinity