AP
Audible Pulse Stream Engine
Distributed Stream Licensing & Rate Limiting System

High-Throughput Audio Telemetry & Entitlement Gateway

Demonstrating enterprise distributed system design patterns: Redis sliding-window rate limiting, HTTP idempotency key locks, real-time playback telemetry stream processing, and Prometheus observability metrics.

Atomic Redis pipeline rate limiting, in-memory fallback if Redis is down
This panel is a client-side simulation that reproduces the real backend's sliding-window and idempotency-lock logic in the browser, so you can try it with nothing to spin up. The actual Express + PostgreSQL (Prisma) + Redis service lives in this repo, is covered by the Jest test suite, and builds/runs via the included Dockerfile -- it isn't deployed to a public URL, since a always-on Postgres+Redis host isn't available on free hosting tiers. All counters below start at zero and only reflect what you trigger in this browser tab.
0
Requests Evaluated This Session
0
Licenses Granted This Session
0
Rate Limits Blocked (429) This Session
0
Idempotent Replays This Session
Interactive System Node Topology
Real-Time Data Pipeline
Client SDK
Audio Player
➔
API Gateway
Express / Helmet
➔
Redis Sliding Window
Rate Limiter
➔
Entitlement Svc
Idempotency Lock
➔
PostgreSQL
Prisma ORM
Idempotent Stream License Granting
simulates POST /api/v1/licenses/grant

Tests double-billing prevention using header-driven x-idempotency-key locks. Repeated calls return cached responses without re-executing state mutations.

Redis Sliding Window Rate Limiter
Quota: 100 reqs / 60s

Simulates atomic Redis Sorted Set evaluation. Fire high-velocity request bursts to observe sliding window quota enforcement and HTTP 429 throttling.

Sliding Window Bucket Usage 0 / 100 Reqs
Real-Time System Event Log & Telemetry Monitor
[SYSTEM READY] INIT Audible Pulse Stream Engine initialized with Redis Sliding Window & Prisma PostgreSQL ORM adapter.
Simulated Prometheus Metrics Chart
reference: GET /metrics (real backend)