Skip to content

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

Description

@crapougnax

Part of parent story #41.

馃幆 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions