Documentation

Guides, tutorials, and references.

Browse the documentation by category. Each guide is self-contained and includes code examples with syntax highlighting.

Featured

Getting Started

Philosophy & Architecture

Guides

Cookbook

Guard Patterns

Global/per-route Guard composition, guards![] macro, custom Guard implementation.

HttpIngress Patterns

post vs post_typed, path parameters, bus_injector, static assets, WebSocket.

Bus Patterns

insert/read/write, DB pool sharing, newtype collision safety, Guard Bus types.

Saga Compensation

then_compensated, LIFO ordering, compensation failure handling, persistence.

LLM Pipeline

LlmTransition, parallel tool calls, PII filtering, retry/timeout resilience.

Database Migration

sqlx/refinery integration, Docker Compose ordering, CI/CD pipeline setup.

Streaming Patterns

StreamingTransition, StreamingAxon, SSE endpoints, stream timeouts, testing.

Multi-Tenant Isolation

TenantGuard extraction, Bus propagation, DB isolation, per-tenant rate limiting.

Egress Patterns

HMAC webhook delivery, multi-channel notifications, retry/DLQ, circuit breaker.

LLM Gateway

Multi-provider routing, token counting Guard, cost budgets, SSE streaming proxy.

PII Masking

PII detection Guard, regex patterns, masking strategies, double-scan pipeline.

Billing & Metering

Redis API metering Guard, plan management, overage handling, usage reports.

Data Reconciliation

Fuzzy matching, weighted scoring, Outcome classification, reconciliation reports.

Outcome Patterns

try_outcome! macro, Outcome combinators (from_result, and_then, map_fault), Bus::get_cloned().

Outcome::from_result

Convert Result<T, E> to Outcome via from_result/from_result_ctx โ€” sqlx, serde, reqwest patterns.

Explicit Search Params

PageParams, Paginated<T>, custom search structs with from_bus() โ€” no derive magic.

JSON Outcomes

get_json_out, post_typed_json_out, BusHttpExt, json_outcome(), typed JSON at route boundary.

Saga Compensation Patterns (Deep Dive)

Advanced saga patterns with payment, insurance, and onboarding domain examples.

Cascade Screening

Sequential filter pipeline with fail-fast โ€” AML/KYC, content moderation, customs.

Multi-Step Pipeline

Typed state progression pipeline โ€” AI agent, ETL, IoT, with streaming support.

Integration

Operations

Product Manuals

Deep Dives

Patterns & Examples

Reference