recep / image-resizing-queue

A simple photo resize RabbitMQ queue in GO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RabbitMQ Example-GO

This repo is an example of an image resize queue. Resizes all photos to 500x500.

Set up a RabbitMQ instance with Docker

docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management

RUN

go run ./producer/main.go
go run ./consumer/main.go

Side of Producer
gproject-1
Side of Consumer
gproject-2
After Resizing
You can see them in new images folder

├── consumer
│   ├── main.go
│   └── new-images
│       ├── 15582.png
│       ├── 25850.png
│       └── 88566.png
├── go.mod
├── go.sum
├── producer
│   ├── main.go
│   └── test-images
│       ├── go2.png
│       ├── go3.png
│       └── go4.png
└── README.md

About

A simple photo resize RabbitMQ queue in GO


Languages

Language:Go 100.0%