rigatoni-core
Core traits, pipeline orchestration, and MongoDB integration for the Rigatoni CDC/Data Replication framework.
Overview
rigatoni-core provides the foundational components for building data replication pipelines with Rigatoni:
- Pipeline Orchestration - Multi-worker architecture with retry logic and graceful shutdown
- MongoDB Source - Real-time change stream integration with resume token support
- Destination Trait - Generic interface for pluggable output destinations
- Event Model - Type-safe change event representation
- State Management - Resume token persistence for fault tolerance
- Distributed Locking - Redis-based locking for horizontal scaling without duplicates
- Metrics - Prometheus-compatible metrics for observability
Installation
Add this to your Cargo.toml:
[]
= "0.2.0"
Quick Start
use ;
use MemoryStore;
async
Features
This crate includes:
- MongoDB change stream source (default)
- Pipeline orchestration with batching and retry
- Distributed locking for multi-instance deployments
- Event model and destination trait
- State store trait for resume tokens
- Prometheus-compatible metrics
Documentation
License
Licensed under the Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0).