Interactive Priority Queue Explorer
See priority-based routing in action! Use the interactive explorer below to step through 4 stages of priority queue implementation. Watch as messages are progressively routed to appropriate queues based on severity, customer tier, and multi-criteria scoring.
How to Use This Explorer
- Navigate using arrow keys (← →) or click the numbered stage buttons
- Compare the Input (left) and Output (right) JSON at each stage
- Observe how messages are routed (different colors for each priority queue)
- Inspect the YAML code showing exactly what switch configuration was added
- Learn from the stage description explaining the technique and performance benefit
Interactive Priority Queue Explorer
Original Input
All messages flow through a single processing path regardless of importance. Critical alerts compete with routine logs, causing latency spikes and SLA violations.
Use ← → arrow keys to navigate
📥Input
{
"timestamp": "2024-01-15T14:30:00Z",
"severity": "CRITICAL",
"event_type": "payment.failed",
"customer_tier": "enterprise",
"urgency": "high",
"service": "payment-service",
"message": "Payment processing failed",
"amount": 50000
}
📤Output
{
"timestamp": "2024-01-15T14:30:00Z",
"severity": "CRITICAL",
"event_type": "payment.failed",
"customer_tier": "enterprise",
"urgency": "high",
"service": "payment-service",
"message": "Payment processing failed",
"amount": 50000,
"processed_at": "2024-01-15T14:30:01Z"
}
Added/Changed
Removed
Completed Step
Current Step
Not Done Yet
📄New Pipeline Stepinput.yaml
# No priority routing - all messages treated equally
output:
kafka:
addresses: ["kafka-broker-1:9092","kafka-broker-2:9092"]
topic: all-events
batching:
count: 100 # Same batching for all
period: 30s # Same delay for all
max_retries: 3 # Same reliability for allTry It Yourself
Ready to build this priority queue system? Follow the step-by-step tutorial:
Deep Dive into Each Step
Want to understand each transformation in depth?
- Step 1: Severity-Based Routing - Map log levels to priority queues with differential batching
- Step 2: Customer Tier Routing - Implement subscription-based priority with SLA tracking
- Step 3: Multi-Criteria Scoring - Build weighted scoring for complex prioritization
- Step 4: Prevent Starvation - Add age-based escalation and fairness guarantees
Next: Set up your environment to build this priority queue system yourself