How am-kantox/finitomata works
Main Components
a) Core FSM Engine:
• State Management
• Transition Handler
• Callback System
b) Supporting Systems:
• Supervision Tree
• Distribution System
• Persistence Layer
• Caching System
• Testing Framework
• Telemetry Integration
┌─────────────────────────────────────────────────────────────┐
• Client Applications │
• ┘
• ↓
┌─────────────────────────────────────────────────────────────┐
• Finitomata Interface │
• ┌─────────────┐ ┌─────────────┐ ┌─────────────────────┐ │
• FSM API │ │ Pool API │ │ Distribution API │ │
• ┘ └─────────────┘ └─────────────────────┘ │
• ┘
• ↓
┌─────────────────────────────────────────────────────────────┐
• Core Components │
• ┌─────────────┐ ┌─────────────┐ ┌─────────────────────┐ │
• Parser │ │ Flow │ │ State Management │ │
• ┘ └─────────────┘ └─────────────────────┘ │
• ┌─────────────┐ ┌─────────────┐ ┌─────────────────────┐ │
• Transitions │ │ Callbacks │ │ Throttler │ │
• ┘ └─────────────┘ └─────────────────────┘ │
• ┘
• ↓
┌─────────────────────────────────────────────────────────────┐
• Support Systems │
• ┌─────────────┐ ┌─────────────┐ ┌─────────────────────┐ │
• Supervision │ │ Persistence │ │ Cache │ │
• ┘ └─────────────┘ └─────────────────────┘ │
• ┌─────────────┐ ┌─────────────┐ ┌─────────────────────┐ │
• Telemetry │ │ Testing │ │ Distribution │ │
• ┘ └─────────────┘ └─────────────────────┘ │
• ┘
Important Elements to Highlight
a) FSM Core:
• Callback system (on_transition, on_failure, on_enter, on_exit, on_terminate, on_timer)
• State validation and transition management
b) Distribution Features:
• Cluster communication paths
• Pool management
• Role of Infinitomata for distributed operations
c) Integration Points:
• Ecto integration capabilities
• Telemetry hooks
• Testing framework integration
Implementation Details
• Nested components to show hierarchy
• Clear labeling of components and interactions
This architecture reflects Finitomata's nature as a sophisticated FSM framework with distributed capabilities, persistence options, and strong integration features, while maintaining Elixir's supervision and fault-tolerance principles.