Skip to content

hed854/rabbitmq_go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rabbitmq Golang Producer/Consumer

Test your Rabbitmq things with this

Based on:

Install

# local
go get "github.com/streadway/amqp"

# docker
docker build -t rabbitmq_go .

Run producer

Note: all parameters are mandatory for now, even the routing key

# local
go run producer.go "hello worlllld" exchange routing_key

# docker
docker run --rm -it --network host rabbitmq_go ./producer message exchange routingkey

Run consumer

# local
go run consumer.go queue

# docker
docker run --rm -it --network host rabbitmq_go ./consumer queue

About

Basic golang producer/consumer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published