•1 min read•from InfoQ
Discord Open Sources Osprey Safety Rules Engine Processing 2.3 Million Rules per Second


Discord open-sourced Osprey, a safety rules engine processing 400 million daily actions and 2.3 million rules per second. Osprey uses a polyglot architecture: a Rust coordinator manages traffic, while stateless Python workers execute logic using a Python-based domain-specific language called SML. This design allows trust and safety teams to deploy real-time threat mitigations at high scale.
By Patrick FarryWant to read more?
Check out the full article on the original site