By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Discord Open Sources Osprey Safety Rules Engine Processing 2.3 Million Rules per Second
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > Discord Open Sources Osprey Safety Rules Engine Processing 2.3 Million Rules per Second
News

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

News Room
Last updated: 2026/04/01 at 4:42 AM
News Room Published 1 April 2026
Share
Discord Open Sources Osprey Safety Rules Engine Processing 2.3 Million Rules per Second
SHARE

Discord has open-sourced Osprey, its internal event stream decisions engine capable of evaluating 2.3 million rules per second across 400 million daily actions. Engineered with a Rust coordinator and stateless Python worker nodes, Osprey provides a horizontally scalable architecture for real-time threat detection and mitigation. The project is managed in partnership with the ROOST organization and internet.dev. Osprey operates as an event stream decisions engine that investigates real-time platform activity and executes automated responses. By offering a scalable architecture, the project has seen early adoption by networks like Bluesky and Matrix.org. This open-source transition shifts a proprietary tool into a configurable resource for the broader engineering community.

Osprey evaluates JSON-formatted event payloads, called Actions, against dynamically loadable rules. These rules are written in SML, a domain-specific language with a Python syntax that supports static validation. SML provides accessibility for security analysts while remaining extensible for software engineers. Developers can expand the engine using User Defined Functions written in standard Python. UDFs define the standard library for Osprey and enable external API calls or machine learning model integrations. The system tracks state across specific targets, known as Entities, allowing operators to apply labels and classifications.

After processing an Action, the engine generates verdicts or effects that are routed to configurable output sinks. The open-source release utilizes the Pluggy Python library to provide integration points for these sinks, replacing internal Discord dependencies. A standard deployment utilizes Apache Kafka to route results into an Apache Druid cluster, which powers real-time analysis through the Osprey UI.

An InfoQ review of the roostorg/osprey GitHub repository reveals a decoupled polyglot architecture designed to handle sustained event throughput. To manage high concurrency, the system employs a coordinator service written in Rust. The repository code shows the coordinator manages asynchronous event streams from message queues and prioritizes synchronous gRPC requests to maintain stable latency.

The rule evaluation occurs on stateless Python worker nodes. To optimize execution speed, the Python workers parse the SML rules into an Abstract Syntax Tree at startup. This step front-loads the compilation cost and minimizes per-event processing time. Rules are distributed to the workers via ETCD, enabling dynamic updates in production without requiring a redeployment of the application. Because the workers are stateless and containerized via Docker, organizations can horizontally scale processing capacity to accommodate traffic spikes. The combination of the Rust coordinator for traffic shaping and the scalable Python workers provides a resilient system for continuous event evaluation.

The adoption of Rust and Python polyglot architectures is becoming a standard pattern for systems that require high throughput. In this model, Rust serves as the data plane, managing network traffic, memory allocation, and high-concurrency execution. Python acts as the control plane, handling business logic, machine learning integrations, and user APIs. This separation allows engineering teams to maximize hardware utilization while maintaining developer velocity in the application layer. Osprey utilizes this pattern for event streaming, and it is also the foundation of widely adopted data tools. For example, the Polars DataFrame library and Hugging Face tokenizers rely on a Rust core for compute-heavy operations while exposing a Python control plane for usability.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Open VSX Bug Let Malicious VS Code Extensions Bypass Pre-Publish Security Checks Open VSX Bug Let Malicious VS Code Extensions Bypass Pre-Publish Security Checks
Next Article ZepoteQ Earns an 87.4 Proof of Usefulness Score by Building Scalable SaaS Platforms and Business Automation Tools | HackerNoon ZepoteQ Earns an 87.4 Proof of Usefulness Score by Building Scalable SaaS Platforms and Business Automation Tools | HackerNoon
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

AitM Phishing Targets TikTok Business Accounts Using Cloudflare Turnstile Evasion
AitM Phishing Targets TikTok Business Accounts Using Cloudflare Turnstile Evasion
Computing
Toyota’s Woven Capital appoints new CIO and COO in push for finding the ‘future of mobility’ |  News
Toyota’s Woven Capital appoints new CIO and COO in push for finding the ‘future of mobility’ | News
News
The Best Tablets We’ve Tested for 2026
The Best Tablets We’ve Tested for 2026
News
One of Apple’s First Employees Looks Back at 50 Years
Software

You Might also Like

Toyota’s Woven Capital appoints new CIO and COO in push for finding the ‘future of mobility’ |  News
News

Toyota’s Woven Capital appoints new CIO and COO in push for finding the ‘future of mobility’ | News

7 Min Read
The Best Tablets We’ve Tested for 2026
News

The Best Tablets We’ve Tested for 2026

28 Min Read
Scan your tax docs in seconds with this  lifetime scanner app
News

Scan your tax docs in seconds with this $26 lifetime scanner app

3 Min Read
The Next Evolution Of Hard Drives Could Be Even More Sci-Fi Than We Thought – BGR
News

The Next Evolution Of Hard Drives Could Be Even More Sci-Fi Than We Thought – BGR

4 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?