How mendersoftware/mender-server works
Main Components
a. Frontend Layer:
• Single React-based frontend application (in /frontend)
• Connection to backend services through API gateway
b. Backend Services (in /backend/services):
• deployments - Handles software deployment management
• deviceauth - Manages device authentication
• deviceconfig - Handles device configuration
• deviceconnect - Manages device connectivity
• inventory - Maintains device inventory
• iot-manager - Manages IoT device integration
• reporting - Handles system reporting
• useradm - User administration
• workflows - Workflow management
c. Infrastructure Components:
• MongoDB (indicated by mongo-related code)
• S3-compatible storage (referenced in storage configurations)
• NATS message broker (seen in client implementations)
• Traefik (reverse proxy, seen in compose/config/traefik)
Component Relationships
a. External Interfaces:
• HTTPS endpoints for web UI access
• Device communication interfaces
• Cloud provider integrations (AWS IoT Core, Azure IoT Hub)
b. Internal Communication:
• REST API interactions between services
• Message broker-based communication
• Database access patterns
┌─────────────────────────────────────────────────────────────┐
• Client Browser │
• ┘
• ↓ HTTPS
┌─────────────────────────────────────────────────────────────┐
• Traefik (API Gateway) │
• ┘
• ↓ HTTP
┌─────────────────────────────────────────────────────────────┐
• Frontend Application │
• ┘
• ↓ API
┌─────────────────────────────────────────────────────────────┐
• Backend Services │
• ┬────────────┬────────────┬────────────┬────────┤
• deviceauth │ deployments│ inventory │ useradm │ ... │
• ┴────────────┴────────────┴────────────┴────────┘
• ↕
┌─────────────────────────────────────────────────────────────┐
• Infrastructure Layer │
• ┬────────────┬────────────┬────────────┬────────┤
• MongoDB │ NATS │ S3 │ Redis │ ... │
• ┴────────────┴────────────┴────────────┴────────┘
Additional Details
• Version information for major components
• Scaling capabilities for services
• Security boundaries and authentication flows
• Enterprise vs. community edition components
• Monitoring and logging flows
Documentation
• Brief component descriptions
• Configuration requirements
• Document main data flows
Implementation Notes
• Maintain consistent sizing and spacing
• Use clear, readable fonts
• A title and version information
• Creating separate detailed views for complex subsystems