Examples
End-to-end, runnable TypeScript examples — each demonstrating a slice of FlexiQ's Node SDK in a realistic setting.
End-to-end, runnable TypeScript examples — each demonstrating a slice of FlexiQ's Node SDK in a realistic setting.
Each example is a self-contained project you can copy, run, and adapt. They build on the core guides — read those for the concepts, come here for working code.
| Example | Demonstrates |
|---|---|
| Express service | REST API that enqueues jobs, streams progress over SSE, and cancels in flight |
| Notification service | Delayed scheduling, idempotency, priority, periodic tasks, batch enqueue |
| Web scraper | Rate limiting, retries, named queues, middleware hooks, fan-out workflows |
| ETL data pipeline | A multi-stage DAG with progress, error history, and cascade cancellation |
| DAG workflows | Fan-out/fan-in, gates, conditions, sub-workflows, caching, critical-path analysis |
| Saga — checkout | Compensating transactions with reverse-order rollback |
| Bulk emails | High-volume enqueueMany with concurrency caps and rate limits |
| Predicate-gated jobs | Enqueue-time gates with allOf / anyOf / not predicate composition |
| Benchmark | Measuring enqueue, processing, and end-to-end latency and throughput |
Every snippet targets the standalone Node SDK — import { Queue } from "@byteveda/flexiq" —
with no Python in the loop. Pick the one closest to your problem and start there.