Git Product home page Git Product logo

celery-rabbitmq-demo's Introduction

Celery with RabbitMQ and Flower

This repository contains a Docker Compose setup for running Celery with RabbitMQ as the message broker and Flower for monitoring. The setup includes:

  • RabbitMQ: A message broker to handle the task queue.
  • Celery Worker: Executes Celery tasks.
  • Celery Scheduler: Emit tasks.
  • Flower: A real-time monitoring tool for Celery.

Prerequisites

  • Docker
  • Docker Compose

Getting Started

Clone repository & start docker-compose

git clone https://github.com/ces-truongvu/celery-rabbitmq-demo

cd celery-rabbitmq-demo
docker-compose up -d

Access flower

Open browser and go to http://localhost:5555 to access flower dashboard.

Modify Worker

After modify worker you need to restart the worker container, here is the command:

docker-compose stop worker && docker-compose rm -f worker && docker-compose up -d worker && docker-compose logs -f worker

Capture image by activate the scheduler

docker up scheduler

After that, you should find an image named google.png and google_thumb.jpg in the worker folder

Multi workers

Open docker-compose.yml and duplicated worker service, you will see one scheduler can be run on multi worker. This is the power of Celery.

celery-rabbitmq-demo's People

Contributors

ces-truongvu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.