How bulatovv/aiorise works
Main Components
a) Core Components:
• API Client Layer
• Bot Framework
• Event System
• Connection Handler
• Action System
• Filter System
b) Code Generation System:
• API Request Generator
• Event Types Generator
• Object Types Generator
• Response Types Generator
Client Layer
• It to Request/Response Types
• Connection to the Connection Handler
Bot Framework
• Relationships with:
• Handlers
• Events
• Filters
• Actions
Event System
• Event flow:
• Event Types
• Event Context
• Event Wrapper
• Event Handlers
Application Layer
• Bot Framework
• Handlers
• Filters
Business Logic Layer
• Actions
• Events
• Event Context
Communication Layer
• API Client
• Connection Handler
• Request/Response Types
Code Generation Layer (separate section)
• All codegen components
Important Details to Capture
• Asynchronous nature of the system (indicate with async/await annotations)
• Type system (generated types and their relationships)
• Event-driven architecture
• Separation between runtime and build-time (code generation) components
Additional Recommendations
• Notes about the asynchronous nature of the system
• Which components are user-facing vs internal
• Relationship with the external API service
• Version/compatibility information if relevant