Reactions
Available Reaction plugins for drasi-lib
Reactions respond to changes in Continuous Query results and trigger actions, such as sending webhooks, logging, updating databases, or calling back into your application. Each Reaction is a separate crate that you add to your Cargo.toml as needed. The full list of Reactions is available on GitHub.
Available Reactions
Application
Handle query result changes directly in your application code
gRPC
Stream query results via gRPC to external services
HTTP
Send webhooks to external endpoints on query result changes
Log
Output query result changes to console with configurable templates
MySQL Stored Proc
Execute MySQL stored procedures on query result changes
PostgreSQL Stored Proc
Execute PostgreSQL stored procedures on query result changes
Profiler
Collect performance metrics for query execution
SQL Server Stored Proc
Execute SQL Server stored procedures on query result changes
SSE
Server-Sent Events for browser and client streaming
Building Custom Reactions
If you need to integrate with a system not covered by the available Reactions, implement the Reaction trait yourself, or have an AI agent do it for you:
Creating Custom Sources and Reactions
The Reaction trait, recovery policies, and a worked example
Source and Reaction Creation Agents
Let a Copilot agent plan, build, test, and document the plugin
Feedback
Was this page helpful?
Glad to hear it! Please tell us what you found helpful.
Sorry to hear that. Please tell us how we can improve.