feat(example-iot-telemetry): configure AMQP RabbitMQ broker with concurrent worker consumers #16

Open
opened 2026-10-27 14:51:25 +00:00 by crapougnax · 0 comments
Owner

Migrated from GitHub https://github.com/Quatrain/Core/issues/43 (opened by @crapougnax on 2026-09-18).

Part of parent story #14.

🎯 Goal

Implement asynchronous queue dispatching and concurrent worker listeners for high-frequency sensor frame ingestion.

📋 Specification

  1. Configure @quatrain/queue-amqp:
    • Register AmqpQueueAdapter via Queue.addQueue(rabbitQueue, 'amqp', true).
    • Setup auto-reconnection and channel recovery parameters.
  2. Ingestion Controller:
    • Receive HTTP webhook payloads from LoRaWAN network server (ChirpStack) or cellular gateway.
    • Enqueue frames instantly onto RabbitMQ topic 'sensor-frames' with sub-10ms response time.
  3. Background Worker:
    • Worker listener with queue.listen('sensor-frames', handler, { concurrency: 10 }).
    • Parse payloads, persist metrics, and evaluate alert triggers.
  4. Protect ingestion endpoints against flooding using @quatrain/auth-rbac TarpitManager.
> Migrated from GitHub https://github.com/Quatrain/Core/issues/43 (opened by @crapougnax on 2026-09-18). Part of parent story #14. ### 🎯 Goal Implement asynchronous queue dispatching and concurrent worker listeners for high-frequency sensor frame ingestion. ### 📋 Specification 1. Configure `@quatrain/queue-amqp`: - Register `AmqpQueueAdapter` via `Queue.addQueue(rabbitQueue, 'amqp', true)`. - Setup auto-reconnection and channel recovery parameters. 2. Ingestion Controller: - Receive HTTP webhook payloads from LoRaWAN network server (ChirpStack) or cellular gateway. - Enqueue frames instantly onto RabbitMQ topic `'sensor-frames'` with sub-10ms response time. 3. Background Worker: - Worker listener with `queue.listen('sensor-frames', handler, { concurrency: 10 })`. - Parse payloads, persist metrics, and evaluate alert triggers. 4. Protect ingestion endpoints against flooding using `@quatrain/auth-rbac` `TarpitManager`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
quatrain/core#16
No description provided.