github.com/ormissia/go-rabbitmq

RabbitMQ Go API二次封装

Open this visualization on its own page →

Contributors

2

Lines of Code

17

From

2021-01-27

To

2021-02-06

About ormissia/go-rabbitmq

This is a Go wrapper library that simplifies the RabbitMQ Go client API, building on top of the standard streadway/amqp library. It encapsulates the five primary RabbitMQ messaging patterns to make them easier to use in Go applications, reducing boilerplate code and providing a more convenient interface for common use cases.

The library implements Simple mode for basic one-to-one message delivery suitable for use cases like SMS and chat, Work mode for task distribution in scenarios like grabbing coupons and resource scheduling, Publish/Subscribe mode for broadcasting messages to multiple consumers without producer routing control, Routing mode where producers can specify target queues while multiple consumers receive messages, and Topic mode using wildcard binding keys to dynamically route messages to different queues based on pattern matching.

The project is designed to streamline RabbitMQ integration in Go applications by providing ready-made implementations of these messaging patterns, reducing the amount of code developers need to write when working with message queues. Installation is straightforward through go get, making it accessible for Go developers working with RabbitMQ in various business scenarios.

Share this video