How odense-rpa/automation-server works
Main Components
a) Frontend Layer:
• Vue.js based web application (evident from .vue files)
• Components for managing processes, workqueues, credentials, and sessions
• Store management system
• Router for navigation
• Services for API communication
b) Backend Layer:
• FastAPI application
• Database layer with SQLAlchemy (indicated by alembic migrations)
• API routes organized by resource types
• Authentication/Security services
• Repository pattern implementation
• Scheduler component
c) Worker Layer:
• Python-based automation runner
• Client library for communication
• Resource handlers
• Session management
[Frontend Layer]
• ↕
[Backend Layer]
• ↕
[Worker Layer]
Detailed Component Breakdown
Frontend Section:
[Vue.js Frontend]
• Views (Process, Workqueue, Credentials)
• Components
• Store Management
• API Services
Backend Section:
[FastAPI Backend]
• API Routes (v1)
• Authentication
• Database Layer
• Repositories
• Services
• Scheduler
Worker Section:
[Worker Nodes]
• Automation Client
• Runners
• Resource Handlers
Important Elements to Highlight
• Blue: Frontend components
• Green: Backend services
• Orange: Worker nodes
• Gray: External services/databases
• Rectangles: Main components
• Hexagons: API endpoints
• Circles: Services
Connection Types
• REST API calls between frontend and backend
• Database connections
• Worker communication channels
• Authentication flows
• Event triggers and scheduling paths
Additional Details
Annotations for:
• Authentication flow
• Session management
• Work queue processing
• Resource allocation
• Trigger handling
Technical Stack Indicators
• Vue.js (Frontend)
• FastAPI (Backend)
• SQLAlchemy (Database ORM)
• Python Runners (Workers)
• OAuth2 (Security)
Specific Implementation Notes
• Relationship between workqueues, sessions, and workers
• How triggers interact with the scheduling system
• Demonstrate the flow of work items through the system
• Credential management security boundary