Backend & APIs
AuraScore 81/100

Fleet Telematics Stream Processing Architecture Assessment

Evaluate and architect a high-throughput event ingestion pipeline for live vehicle telemetry data under burst conditions.

Use this template when designing or upgrading event-driven telemetry backends handling continuous GPS, CAN bus, and sensor streams. It establishes robust partition strategies, deduplication logic, and backpressure mechanisms.

Template

Role: Principal Distributed Systems Engineer specializing in high-throughput telematics pipelines.

Context

  • Fleet operator: {{fleet_operator_name}}
  • Active connected vehicle volume: {{active_vehicle_count}}
  • Ingestion protocol & messaging broker: {{streaming_broker_stack}}
  • Peak message throughput per second: {{peak_messages_per_sec}}
  • End-to-end latency SLA target: {{latency_sla_target}}
  • Persistent storage engine: {{time_series_database}}

Task

Produce an exhaustive architectural assessment report detailing partition balancing, out-of-order event reconciliation, and persistent storage routing for {{fleet_operator_name}}'s real-time vehicle telemetry backend to guarantee {{latency_sla_target}} compliance during network reconnections.

Method

  1. Analyze the ingestion topology against {{peak_messages_per_sec}} to isolate throughput bottlenecks in the partition strategy.
  2. Design dynamic partition key assignment algorithms based on vehicle ID, geohash, and fleet shard to prevent broker hot-spotting.
  3. Formulate an in-memory windowing and stateful deduplication strategy to resolve duplicate packets caused by cellular reconnections.
  4. Define watermarking thresholds and sliding window parameters for late-arriving CAN bus telemetry packets.
  5. Establish backpressure mitigation and buffer spillover policies when downstream {{time_series_database}} ingestion slows down.
  6. Architect read-through and cache-invalidation layers for active vehicle state lookups across dispatch microservices.
  7. Model storage compaction, cold-tier offloading, and downsampling schedules to sustain performance over long retention windows.
  8. Produce operational runbooks for broker partition rebalancing without dropping inflight spatial telemetry.

Constraints

  • MUST calculate partition count and memory footprints explicitly using {{active_vehicle_count}} and {{peak_messages_per_sec}}.
  • MUST NOT recommend synchronous cross-service RPC calls in the primary data ingestion path.
  • All schema evolution strategies MUST support backward-compatible Protobuf or Avro serialization.
  • Recommendations must remain feasible within the constraints of {{streaming_broker_stack}} and {{time_series_database}}.

Output format

  1. Executive Architecture Summary (max 250 words)
  2. Partitioning & Ingestion Topology Table (5 columns: Component, Config Parameter, Value, Rationale, Failure Mode)
  3. Out-of-Order & Deduplication Logic (detailed code-level algorithms and windowing logic)
  4. Database Ingestion & Downsampling Architecture (exact write path and retention tiers)
  5. Disaster Recovery & Rebalancing Runbook (4 numbered operational scenarios)

Self-review

  • Confirm all partition calculations match {{peak_messages_per_sec}} and vehicle distributions.
  • Verify watermarking rules explicitly handle multi-hour offline cellular reconnection bursts.
  • Check that no proprietary vendor lock-in violates {{streaming_broker_stack}} specifications.
AuraScore breakdown
81/100Provisional
Instruction clarity15/15 · Strong

Explicit role, a named task, and discrete steps the model can follow.

Context architecture12/12 · Strong

Background, inputs and variables the model needs before it starts.

Constraint engineering12/12 · Strong

Hard boundaries — what the model must and must not do.

Output specification6/14 · Thin

A named, field-level shape for the response.

Reasoning structure10/10 · Strong

Ordered work items that force analysis before an answer.

Model compatibility10/10 · Strong

Length and structure that travel across frontier models.

Token efficiency5/10 · Thin

Signal density — instruction weight without padding.

Reusability7/7 · Strong

Documented variables so the scaffold adapts to new inputs.

Robustness3/5 · Adequate

Quality bar, assumptions and behaviour when inputs are thin.

Observed performance1/5 · Thin

How much real usage the template has behind it.

developers
developers-backend-apis
transport-logistics
telematics
streaming
kafka