@datapio/sdk-amqp-engine
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Datapio SDK AMQP Engine

The Datapio SDK AMQP Engine provides a declarative way to setup AMQP exchanges, queues, producers and consumers.

Installation

$ npm install @datapio/sdk-amqp-engine

Usage

The SDK provides an Engine class that you can inherit from:

import { Engine } from '@datapio/sdk-amqp-engine'

class MyEngine extends Engine {
  constructor() {
    super({
      /* options */
    })
  }
}

You can then instantiate and use your engine:

const engine = new MyEngine()

// setup exchanges and queues
await engine.declare()

// start consuming in background
await engine.consume()

// will stop consuming and close the connection
await engine.shutdown()

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.02latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.02
1.0.01

Package Sidebar

Install

npm i @datapio/sdk-amqp-engine

Weekly Downloads

3

Version

2.0.0

License

Apache-2.0

Unpacked Size

60.3 kB

Total Files

36

Last publish

Collaborators

  • linkdd