OpenFGA reduced P99 tail latency by up to 98% using a self-tuning strategy planner based on Thompson Sampling. The system treats graph traversal as a multi-armed bandit problem, maintaining probability distributions for each traversal strategy and continuously learning from production latency. By encoding domain knowledge
Table of contents
The ProblemOur Approach: Why We Chose Thompson SamplingThe Art of the Prior: Encoding Domain KnowledgeProduction Results: Performance and the Self-Tuning ImpactTakeawaysSort: