{"id":50619230,"url":"https://github.com/masroorahmed402/distributed-task-queue","last_synced_at":"2026-06-06T09:30:40.432Z","repository":{"id":354321447,"uuid":"1223121410","full_name":"masroorahmed402/distributed-task-queue","owner":"masroorahmed402","description":"Scalable distributed task queue built with Node.js, PostgreSQL, and Redis supporting asynchronous processing, retries, priority queues, and multi-worker execution.","archived":false,"fork":false,"pushed_at":"2026-04-28T03:18:27.000Z","size":987,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-28T05:10:23.675Z","etag":null,"topics":["asynchronous-processing","backend","distributed-systems","express","nodejs","postgresql","redis","scalable-systems","system-design","task-queue","worker-architecture"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/masroorahmed402.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-28T03:00:14.000Z","updated_at":"2026-04-28T03:18:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/masroorahmed402/distributed-task-queue","commit_stats":null,"previous_names":["masroorahmed402/distributed-task-queue"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/masroorahmed402/distributed-task-queue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masroorahmed402%2Fdistributed-task-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masroorahmed402%2Fdistributed-task-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masroorahmed402%2Fdistributed-task-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masroorahmed402%2Fdistributed-task-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masroorahmed402","download_url":"https://codeload.github.com/masroorahmed402/distributed-task-queue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masroorahmed402%2Fdistributed-task-queue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33977371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["asynchronous-processing","backend","distributed-systems","express","nodejs","postgresql","redis","scalable-systems","system-design","task-queue","worker-architecture"],"created_at":"2026-06-06T09:30:39.578Z","updated_at":"2026-06-06T09:30:40.420Z","avatar_url":"https://github.com/masroorahmed402.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Distributed Task Queue System\n\nA scalable backend system built using Node.js, PostgreSQL, and Redis to process asynchronous tasks using a distributed worker architecture.\n\n## Features\n- REST API for task submission\n- Redis-based queue for fast task dispatch\n- PostgreSQL for persistent storage\n- Multiple workers for parallel processing\n- Retry logic with exponential backoff\n- Priority-based task scheduling (HIGH, MEDIUM, LOW)\n\n## Tech Stack\n- Node.js (Express)\n- PostgreSQL\n- Redis\n\n## How to Run\n1. Install dependencies:\n   npm install\n\n2. Start PostgreSQL and Redis\n\n3. Run the server:\n   node server.js\n\n4. Run workers (in separate terminals):\n   node worker.js\n   node worker.js\n\n## API Example\nCreate a task:\ncurl -X POST http://localhost:3000/tasks \\\n-H \"Content-Type: application/json\" \\\n-d '{\"type\":\"EMAIL\",\"payload\":{\"message\":\"hello\"},\"priority\":\"HIGH\"}'\n\n## Architecture\nClient → API → PostgreSQL → Redis Queue → Workers → Status Updates\n\n## Key Concepts\n- Distributed systems\n- Asynchronous processing\n- Queue-based architecture\n- Fault tolerance and retries\n- Horizontal scaling with multiple workers\n\n## Author\nMohammed Masroor Ahmed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasroorahmed402%2Fdistributed-task-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasroorahmed402%2Fdistributed-task-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasroorahmed402%2Fdistributed-task-queue/lists"}