Comorando integrates directly with Actix-Web applications, monitoring incoming HTTP requests for events related to billing (e.g., usage changes, subscription updates) and automatically extracting relevant data from the request payloads using schema validation and data transformation. It then utilizes a configurable rules engine to determine the appropriate billing action – such as updating tenant balances or triggering billing calculations – based on the event details, streamlining the entire multi-tenant billing process without manual intervention.
Stop writing the same event handlers over and over. Comorando executes your logic automatically.
Exponential backoff, dead-letter queues, and alert escalation — built in, no config needed.
Gemma 4 evaluates every event and suggests the optimal action based on your business rules.
// actix-web — multi-tenant-billing handler with Comorando
use actix_web::{post, web, HttpRequest, HttpResponse};
use comorando::Client as Comorando;
#[post("/webhook")]
async fn webhook(req: HttpRequest, body: web::Bytes) -> HttpResponse {
let sig = req.headers().get("stripe-signature").unwrap().to_str().unwrap();
let event = stripe::Webhook::construct_event(&body, sig, &WEBHOOK_SECRET).unwrap();
// Comorando evaluates rules and fires actions automatically
let comorando = Comorando::new(&std::env::var("COMORANDO_API_KEY").unwrap());
comorando.decisions().create(json!({
"event": event.event_type,
"data": event.data.object,
"org_id": std::env::var("COMORANDO_ORG_ID").unwrap()
})).await.unwrap();
HttpResponse::Ok().json(serde_json::json!({"received": true}))
}
Free tier includes 10,000 events/month. No credit card required.
Start Free See Pricing