0.0.2-beta.1 • Published 6 months ago

@bitbybit-labs/lib-amqp v0.0.2-beta.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@asmaraku/lib-amqp

AMQP helper with auto-connect, and other life-saver features.

Use Cases

Currently this library will support these use cases. Checklist means it has been implemented.

  • Connect to AMQP Server (RabbitMQ) through the URL
  • Setup auto-reconnection
  • Automatically assert exchange & queue
  • Add route between exchange + route
  • Safe consume (message parsed through Zod)
  • Easy type-safe publish (optionally validated, strongly typed params)
  • One function call on exit to gracefully stop the app (e.g. await close(connection))
  • 100% test coverage, currently there's a lot of files without test
    • Add unit test for /lib/channel.ts
    • Add unit test for /lib/consumer.ts
    • Add unit test for /lib/publisher.ts

Maintainer

fauh45 (fauzan@bitbybit.studio)