Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you would like to use two Form Recognizers behind an Azure Load Balancer.
Please note that Azure Load Balancer's backend can only be a VM or VMSS in a Virtual Network.
For a public facing endpoint, you should consider
- Azure App gateway (if both the FRs are in same region)
- Azure Front Door (if you want global availability)
- Azure Traffic Manager (only routing, no load balancing traffic)
I would recommend the latter two as they have less management overhead.
Now, if the two FRs are two individual workloads and if one FR cannot compliment the workload of the other FR, then you must consider using Session Persistence.
For App Gateway : Enable Cookie-based Affinity
For Front Door : Session affinity
- Cookie-based session affinity allows Front Door to identify different users even if behind the same IP address, which in turn allows a more even distribution of traffic between your different origins.
- The lifetime of the cookie is the same as the user's session, as Front Door currently only supports session cookie.
For Traffic Manager : Geographic traffic-routing method
- You can use Geographic traffic-routing method so that users from a particular region/location are always redirected to the same FR instance (closer to their region)
Hope this helps.
Cheers,
Kapil.