How encoredev/encore works
Main Components (Core Architecture)
a) CLI Layer:
• Subcomponents for app creation, deployment, and local development
• To the parser and compiler components
b) Parser & Compiler Layer:
• Connections to both Go and TypeScript parsing (v2/parser and tsparser)
• Code generation components (codegen)
c) Runtime Layer:
• Runtime components (runtimes/go and runtimes/js) below the parser/compiler
• Different runtime features (API, PubSub, Database, etc.)
Infrastructure Integration Layer
• AWS services (RDS, SQS/SNS, etc.)
• GCP services (Cloud SQL, Pub/Sub, etc.)
• Local development services (NSQ, PostgreSQL)
Key Subsystems
a) Development Tools:
• Local development dashboard
• Tracing system
• Service catalog
• API documentation generator
b) Resource Management:
• Database connections
• PubSub topics/subscriptions
• Secret management
• Caching system
• Object storage
Data Flow
• Application code → Parser → Compiler → Runtime
• Runtime → Infrastructure services
• Development tools → Local infrastructure
• Monitoring/tracing data flow
Component Details
For each major component, include:
• Component name
• Key responsibilities
• Primary interfaces
• Dependencies
Additional Elements
Visual representations of:
• Security boundaries
• Service discovery mechanisms
• Load balancing
• Authentication/Authorization flow