{"id":15683691,"url":"https://github.com/zemanlx/swarm-queue","last_synced_at":"2025-03-30T10:41:03.994Z","repository":{"id":93279129,"uuid":"119027653","full_name":"zemanlx/swarm-queue","owner":"zemanlx","description":null,"archived":false,"fork":false,"pushed_at":"2018-01-29T13:18:28.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T12:28:58.663Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zemanlx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-26T08:44:05.000Z","updated_at":"2018-01-26T08:46:49.000Z","dependencies_parsed_at":"2023-03-06T20:15:27.329Z","dependency_job_id":null,"html_url":"https://github.com/zemanlx/swarm-queue","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"2d8254756269b06b65327c88d8b9e9557bb96d29"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemanlx%2Fswarm-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemanlx%2Fswarm-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemanlx%2Fswarm-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemanlx%2Fswarm-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zemanlx","download_url":"https://codeload.github.com/zemanlx/swarm-queue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246307932,"owners_count":20756478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T17:08:12.681Z","updated_at":"2025-03-30T10:41:03.963Z","avatar_url":"https://github.com/zemanlx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo of RabbitMQ on Docker\n\nThis repo is showing how RabbitMQ works. All is running in your docker so you\ndo not need to install anything but docker tools.\n\n## Prerequisites\n- Docker\n- Docker Compose\n\n## Run this Demo\n1. Clone this repo\n1. From repo folder run `docker-compose up`\n1. Open rabbitmq [management](http://localhost:15672) interface (guest/guest)\n\n## How it works\n\n`ALL_CAPS` are environmet variables set in `docker-compose.yml` per each\n_service_.\n\n-   `publisher` - posts one message to `QUEUE_SERVER` to `PUBLISHER_QUEUE_NAME`\n    every `TASK_FREQUENCY` seconds\n\n-   `job-phase-1` - consumes messages from `CONSUMER_QUEUE_NAME`, it takes\n    `TASK_DIFFICULTY` to acknowlege a message and posts `TASK_GENERATED` number\n    of messages to `PUBLISHER_QUEUE_NAME`\n\n-   `job-phase-2` - consumes messages from `CONSUMER_QUEUE_NAME`, it takes\n    `TASK_DIFFICULTY` to acknowlege a message\n\n![demo-1-architecture](https://user-images.githubusercontent.com/18702153/35512188-bdc18aca-04f6-11e8-8c37-0a99f0e87d7f.png)\n\n\n## Play with scale\n\nTo have more fun with RabbitMQ you can tune environment variables in\n`docker-compose.yml` and/or open another shell in this repo and scale each\nservice to give it a hard time.\n\n```bash\ndocker-compose scale publisher=3\ndocker-compose scale job-phase-1=10\ndocker-compose scale job-phase-2=30\n```\n\nSit back and enjoy logs from your first terminal and RabbitMQ Management Site.\nThere is a high probability that your queues will grow or you waste compute\nresources so you can play scaling game as long as your have computer can handle\nit.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemanlx%2Fswarm-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzemanlx%2Fswarm-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemanlx%2Fswarm-queue/lists"}