How mattburton/beckett works
Core Components Layer
• Message Store
• PostgreSQL implementation and the extensibility point for custom implementations (IMessageStorage)
• Message serialization and type mapping components
• Event Sourcing Infrastructure
• Stream management
• Message handling
• Optimistic concurrency control
Subscription System Layer
• Subscription Handler
• Checkpoint Management
• Checkpoint processor
• Checkpoint consumer groups
• Retry Mechanism
• Exponential backoff
• Error handling
• Scaling Components
• Multiple node support
• Stream partitioning
Projection System Layer
• Projection Handler
• State Views
• Message Configuration
• Projection Actions
Scheduling System Layer
• Message Scheduler
• Transactional Scheduler
• Cancellation Support
• Delivery Management
Monitoring & Management Layer
• Dashboard UI
• Message browser
• Retry management
• Subscription monitoring
• OpenTelemetry Integration
• Tracing
• Metrics
• Instrumentation
Use the following visual elements:
Components
• Use rectangles for major system components
• Use rounded rectangles for services
• Use hexagons for interfaces/contracts
Event Sourcing Pattern
• Flow from command to event storage
• Stream organization and message ordering
Message Processing Pattern
• Subscription flow
• Parallel processing capabilities
• Retry mechanisms
Projection Pattern
• How events flow into projections
• State building process
Scheduling Pattern
• Message scheduling flow
• Cancellation capabilities
Additional Considerations:
Notes for key architectural decisions
• Horizontal scaling capabilities
• Stream-based processing
• Error handling and retry strategies
Integration points
• OpenTelemetry integration
• Custom message store implementation
• Application integration points
Sample flow paths
• Message processing path
• Projection update path
• Scheduled message path