{"id":25642074,"url":"https://github.com/kowalczykbartek/delay-queue","last_synced_at":"2026-06-23T21:30:17.572Z","repository":{"id":165149238,"uuid":"162349711","full_name":"KowalczykBartek/delay-queue","owner":"KowalczykBartek","description":"Schedule event on REDIS made easy !","archived":false,"fork":false,"pushed_at":"2019-01-06T15:24:48.000Z","size":2368,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T00:01:50.631Z","etag":null,"topics":["awesome","delay-queue","java","netty","redis"],"latest_commit_sha":null,"homepage":"","language":"Java","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/KowalczykBartek.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-12-18T21:55:12.000Z","updated_at":"2024-12-20T16:29:44.000Z","dependencies_parsed_at":"2024-07-13T03:00:57.664Z","dependency_job_id":null,"html_url":"https://github.com/KowalczykBartek/delay-queue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KowalczykBartek%2Fdelay-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KowalczykBartek%2Fdelay-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KowalczykBartek%2Fdelay-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KowalczykBartek%2Fdelay-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KowalczykBartek","download_url":"https://codeload.github.com/KowalczykBartek/delay-queue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240271841,"owners_count":19774918,"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":["awesome","delay-queue","java","netty","redis"],"created_at":"2025-02-23T05:18:25.256Z","updated_at":"2026-06-23T21:30:17.536Z","avatar_url":"https://github.com/KowalczykBartek.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4)\n![][license img]\n\n## what it is ?\nApp that allows to schedule message processing for some predefined delay. Main idea is based on https://redislabs.com/ebook/part-2-core-concepts/chapter-6-application-components-in-redis/6-4-task-queues/6-4-2-delayed-tasks/ and just wrapped with some Netty code.\nThis is not-production ready (honestly it is nothing-ready) but shows how you can process delayed-messaged in very gently manner.\n\n## how\nPrepare Redis instance on default port 6379 (and localhost of  course) and invoke (to build and start).\n```\n./gradlew buildApp\njava -jar ./build/libs/scheduler-server-1.0-SNAPSHOT.jar\n```\n\nThen just make a curl to schedule message.\n```bash\ncurl --request PUT \\\n  --url http://localhost:8080/messages/someId \\\n  --header 'content-type: application/json' \\\n  --data '{\n\t\"when\" : \"2007-12-03T10:15:30.00Z\",\n\t\"event\" : {\n\t\t\"message\" : \"hello\"\n\t}\n}'\n```\nAlso, if you prefer to use your browser, Swagger console is available on port 8080.\n\n## example messages consumption\nBecause looking at logs is not best option to show how something works - you can subscribe on all incoming delayed events:\n```\ncurl --raw 127.0.0.1:9090/subscribe -v -k\n```\nas response, you will receive all events received from delay-queue application (this endpoint is chunked).\n\nEntire stuff that is responsible for handling this endpoint and delay-messages consumption is stored under \"example\" package\n\n## stressing\nfrom time to time it is good to try to kill your application (which you are actually developing), if you want\nto do that with delay-queue, I prepared command line for you (I used wrk)\n```\n./wrk -t14 -c300 -d400 -s ./redis.lua http://localhost:8080/messages\n```\nwhere redis.lua is\n```\nwrk.method = \"POST\"\nwrk.body = \"{\\\"when\\\" : \\\"2018-12-28T21:58:00.00Z\\\",\\\"event\\\" : {\\\"message\\\" : \\\"hello\\\"}}\"\n```\nhappy shooting !\n\n[license img]:https://img.shields.io/badge/License-Apache%202-blue.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkowalczykbartek%2Fdelay-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkowalczykbartek%2Fdelay-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkowalczykbartek%2Fdelay-queue/lists"}