GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - eosfor/simpleRequestProcessing: SimPy discrete-event simulation of message-queue processing: 200K messages, 20 workers, throughput and utilization analysis

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 
simpy_message_processing.ipynb
simpy_message_processing.ipynb
 
 

Repository files navigation

SimPy message-queue processing simulation

Open in Binder

This repository contains a Jupyter notebook with a discrete-event simulation of message-queue processing built on SimPy.

What is modeled

  • The queue contains 200,000 messages.
  • 20 threads/workers process the queue.
  • Each worker picks up one message, processes it, and then picks up the next.
  • The processing time of a single message follows a log-normal distribution:
    • 50th percentile: 1.7 seconds;
    • 95th percentile: 3.6 seconds.

What the notebook computes

  • the total throughput of all workers, in messages per second and per minute;
  • the per-worker throughput, in messages per second and per minute;
  • the time it takes to drain the whole queue;
  • how the processing rate evolves over time.

Charts

The notebook plots:

  • total processing rate in messages per second;
  • total processing rate in messages per minute;
  • per-worker processing rate;
  • the distribution of message processing times.

Running

Click the Open in Binder badge above, wait for the environment to start, and run all cells in simpy_message_processing.ipynb.

Run locally:

pip install -r requirements.txt
jupyter lab

Then open simpy_message_processing.ipynb and run all cells.

About

SimPy discrete-event simulation of message-queue processing: 200K messages, 20 workers, throughput and utilization analysis

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.