Skip to content

Orchestrator System Interactions

The Stavily Orchestrator operates as the central coordination hub, managing complex interactions between multiple system components. Understanding these interactions is crucial for comprehending how the platform achieves reliable, scalable automation.

Purpose: Continuous health monitoring and status reporting from deployed agents.

Interaction Flow:

sequenceDiagram
    participant Agent
    participant Orchestrator as Orchestrator

    Agent->>Orchestrator: Heartbeat {status, metrics}
    Orchestrator->>Orchestrator: Process & store data
    Orchestrator-->>Agent: Confirmation

    Note over Orchestrator: Central health monitoring hub

Key Data Exchanged:

  • Agent status
  • System metrics
  • Plugin status
  • Network information

Session Management

Authentication Flow:

  • User authentication via frontend
  • Session validation by Orchestrator
  • Permissions and context established

Key Endpoints:

  • Session validation
  • Session termination

Workflow Operations

CRUD Operations:

  • Workflow management via API
  • Real-time status updates
  • Execution history and analytics

Key Endpoints:

  • List workflows
  • Create workflows
  • Execution history

Agent Monitoring

Fleet Overview:

  • Real-time agent status
  • Geographic distribution
  • Alert management

Key Endpoints:

  • Fleet status overview
  • Detailed agent metrics
  • Alert configuration

Repository Management:

graph TD
    O[Orchestrator
Central Hub] --> P[Plugin Repositories] P --> G[Git Providers] O --> M[Metadata Cache] O --> V[Version Management] O --> D[Dependency Resolution] M --> A[Agent Distribution] V --> A D --> A

The Orchestrator serves as the central authority for plugin management, ensuring consistent distribution and updates across all agents.

Marketplace Integration:

  • Community plugin submissions
  • Automated testing and security
  • Revenue sharing
  • Rating and review systems
  • Metrics collection and alerting
  • Dashboard visualization
  • Log aggregation and analysis
  • Incident response and notifications
  • Cross-cloud automation
  • Hybrid cloud workflows
  • Multi-cloud monitoring
  • Webhook endpoints for integration
  • API connectors
  • Database connectors
  • Message queue integration
graph TD
    A[External User] --> B[Authentication]
    A --> C[Session Tokens]

    D[Agent] --> E[Installation Tokens]
    D --> F[Certificates]

    G[Internal Service] --> H[Service Certificates]
    G --> I[JWT Tokens]

    B --> J[Private API]
    C --> J

    E --> K[Public API]
    F --> K

    H --> L[Inter-Service]
    I --> L

The Orchestrator acts as the central security gateway, managing all authentication and authorization across the platform.

  • Encryption for all communications
  • Data encryption at rest
  • Plugin code integrity verification
  • Secrets management
  • Intelligent agent selection
  • Automatic scaling
  • Query distribution
  • Session and metadata caching
  • Multi-region deployment
  • Automatic failover
  • Fault tolerance
  • Rate limiting
  • Automated data handling
  • Continuous audit trails
  • Secure processing workflows
  • Data residency enforcement
sequenceDiagram
    participant Component as Any Component
    participant Orchestrator as Orchestrator

    Component->>Orchestrator: Log operation
    Orchestrator->>Orchestrator: Process & store
    Orchestrator-->>Component: Confirmation

    Note over Orchestrator: Central audit authority
  • Automatic retry mechanisms
  • Result reporting with error details
  • Circuit breaker activation
  • Connection pooling and reconnection
  • State synchronization
  • Message durability
  • Graceful degradation
  • Automated remediation