Skip to content

aleguy02/priority-queue-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Job Queue Visualizer with RabbitMQ and Python

This project demonstrates how a priority queue can be used to schedule and process jobs using RabbitMQ and Python. It visualizes how jobs are enqueued with different priorities and how a worker processes them in priority order.

Overview

  • Jobs are labeled job1 through job15 and assigned a random priority between 0 (highest) and 5 (lowest).
  • The sender script enqueues jobs into a RabbitMQ priority queue, printing each job and its priority as it is added.
  • The receiver script consumes the jobs in priority order and stops automatically after processing all jobs.

How to Run

Prerequisites

Ensure the following tools are installed:

Setup and Execution

To run everything in one go, simply run the provided Bash script:

./priority_q_vis.sh

For a more realistic visualization, see scripts.

About

Visualize how a priority queue schedules jobs. Made with RabbitMQ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published