Google Sign-In Required

Use your company Google account to access the BetterFleet private content.

Back to private home

BetterFleet Support Private
Skip to content
BetterFleet Dev Wiki
Simulation Request Lifecycle
Initializing search
    bf-dev
    • Home
    • Product Capabilities
    • Process
    • Current Work
    • System Design
    • Software Reference
    • Operations
    bf-dev
    • Home
      • Overview
      • Manage
      • Overview
      • Product Engineering Workflow
      • Product Engineering Delivery
      • Product Engineering Workflow in Linear
        • GitLab Feature Flags
        • In-App Docs Authoring
        • Release Notes
      • Templates
      • Publishing
      • Workflow Companions
      • Overview
      • Active Artifacts
      • Backlog Artifacts
      • Archived Artifacts
      • Overview
      • Microgrid
      • OSCP
        • Challenge
        • Specification
        • Spec
        • Architecture
        • Overview
        • Script Runtime Model
        • Compose Profiles and Modes
        • Repo Topology
        • CI and Release Integration
        • Overview
        • Internal Application Diagrams
          • Overview
          • Web Model
          • Core Model
        • Service Interaction Flows
        • Data and State
          • Index
          • bf-manage-web
          • bf-manage-core
          • bf-manage-connect
          • bf-manage-sitepwrmon
          • bf-manage-incidents
          • bf-telematics
          • bf-depot-sim
          • bf-manage-roaming
          • bf-support-microsite
          • bf-digital-twin
          • bf-schedule-creator
        • Overview
        • Internal Application Diagrams
        • Migration and Flags
        • Simulation Request Lifecycle
          • Legacy Lifecycle (Flag OFF)
          • Digital Twin Lifecycle (Flag ON)
          • Operational Implications
          • Index
          • bf-bnl-ui
          • bf-bnl-settings
          • bf-bnl-schedule-analysis-compute
          • bf-route-modelling
          • bf-schedule-creator
          • bf-digital-twin
        • Overview
        • Secrets and Env Strategy
        • Vendors and Local Dependencies
        • ADRs
        • Service Matrix
        • Cloud Dependencies
        • Ports and URLs
      • Onboarding
      • Daily Operations Runbook
        • Overview
        • Staging Hotfix Release
        • Production Hotfix Release
        • Terraform Plan Dry Runs
      • Troubleshooting
      • Testing Guide
    • Legacy Lifecycle (Flag OFF)
    • Digital Twin Lifecycle (Flag ON)
    • Operational Implications

    Plan Simulation Request Lifecycle¶

    Legacy Lifecycle (Flag OFF)¶

    sequenceDiagram
      participant UI as bf-bnl-ui
      participant Settings as bf-bnl-settings
      participant Compute as bf-bnl-schedule-analysis-compute
      participant Route as bf-route-modelling
      participant DT as bf-digital-twin
      participant S3 as aws s3
      participant DDB as aws dynamodb
    
      UI->>Settings: simulate request
      Settings->>Compute: trip analysis batch
      Compute->>Route: physics calculations
      Route-->>Compute: route/energy outputs
      Compute->>S3: write intermediate artifacts when configured
      Compute-->>Settings: trip outputs
      Settings->>S3: store scenario payloads and artifacts
      Settings->>DDB: store scenario metadata
      Settings->>DT: depot emulate
      DT-->>Settings: depot events/results
      Settings-->>UI: aggregated response

    Digital Twin Lifecycle (Flag ON)¶

    sequenceDiagram
      participant UI as bf-bnl-ui
      participant DT as bf-digital-twin
      participant Creator as bf-schedule-creator
      participant S3 as aws s3
      participant DDB as aws dynamodb
    
      UI->>DT: simulation request
      DT->>Creator: parse/upload if required
      Creator->>S3: persist schedule payloads
      DT->>S3: persist run and result artifacts
      DT->>DDB: persist run state metadata
      DT-->>UI: simulation run + results

    Operational Implications¶

    • Legacy failures often appear as downstream fan-out errors.
    • Twin failures are usually concentrated in one service path and easier to trace.
    Made with Material for MkDocs