Discord Open Sources Osprey Safety Rules Engine Processing 2.3 Million Rules per Second

📰 InfoQ AI/ML

Discord open-sourced Osprey, a safety rules engine processing 2.3 million rules per second

advanced Published 31 Mar 2026
Action Steps
  1. Explore Osprey's polyglot architecture using Rust and Python
  2. Understand how Osprey processes 2.3 million rules per second
  3. Learn about SML, the Python-based domain-specific language used in Osprey
Who Needs to Know This

Trust and safety teams can deploy real-time threat mitigations at high scale using Osprey, and software engineers can learn from its polyglot architecture

Key Insight

💡 Osprey's polyglot architecture enables high-scale real-time threat mitigations

Share This
💡 Discord open-sourced Osprey, processing 2.3M rules/second!

Key Takeaways

Discord open-sourced Osprey, a safety rules engine processing 2.3 million rules per second

Full Article

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 Farry
Read full article → ← Back to Reads