项目作者: recep

项目描述 :
A simple photo resize RabbitMQ queue in GO
高级语言: Go
项目地址: git://github.com/recep/image-resizing-queue.git
创建时间: 2021-01-03T11:19:48Z
项目社区:https://github.com/recep/image-resizing-queue

开源协议:

下载


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

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

RUN

  1. go run ./producer/main.go
  1. 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

  1. ├── consumer
  2. ├── main.go
  3. └── new-images
  4. ├── 15582.png
  5. ├── 25850.png
  6. └── 88566.png
  7. ├── go.mod
  8. ├── go.sum
  9. ├── producer
  10. ├── main.go
  11. └── test-images
  12. ├── go2.png
  13. ├── go3.png
  14. └── go4.png
  15. └── README.md