Skip to content

Recipes

Production-ready implementations for common use cases. Each recipe includes complete code, failure handling, and monitoring setup.

Recipe Categories

Payment and Financial

RecipePlugins UsedKey Challenge
Payment ProcessingIdempotency + LocksPrevent double charges
Webhook DeliveryIdempotency + StreamsReliable delivery with retry

API Protection

RecipePlugins UsedKey Challenge
Login ThrottlingRate LimitBrute force protection
API ProtectionRate Limit + CacheMulti-tier defense

Background Processing

RecipePlugins UsedKey Challenge
Background JobsStreams + LocksReliable async processing
Scheduled TasksLocksPrevent duplicate cron

Caching Patterns

RecipePlugins UsedKey Challenge
CQRS InvalidationCache + TagsEvent-driven cache updates
Session ManagementCacheSliding expiration sessions

Complete Example

RecipeDescription
Example ApplicationFull working application with all patterns

Choosing a Recipe

Common Combinations

E-commerce Platform

Payment Processing + CQRS Invalidation + API Protection

SaaS API

API Protection + Login Throttling + Session Management

Event-Driven System

Background Jobs + Webhook Delivery + Scheduled Tasks

Recipe Template

Each recipe follows this structure:

  1. Problem Statement — What challenge does this solve?
  2. Solution Overview — Architecture diagram
  3. Non-Goals — What this does NOT solve
  4. Implementation — Step-by-step code
  5. Failure Scenarios — What happens when things go wrong
  6. Monitoring — Key metrics and alerts

Next Steps

Choose a recipe that matches your use case, or explore the Example Application to see all patterns working together.

Released under the MIT License.