{"id":13489949,"url":"https://github.com/vmihailenco/taskq","last_synced_at":"2025-04-11T03:28:50.271Z","repository":{"id":38433418,"uuid":"80911323","full_name":"vmihailenco/taskq","owner":"vmihailenco","description":"Golang asynchronous task/job queue with Redis, SQS, IronMQ, and in-memory backends","archived":false,"fork":false,"pushed_at":"2023-10-16T11:02:33.000Z","size":728,"stargazers_count":1275,"open_issues_count":33,"forks_count":105,"subscribers_count":18,"default_branch":"v3","last_synced_at":"2025-04-03T18:09:55.722Z","etag":null,"topics":["go","golang","ironmq","ironmq-backend","message-queue","queue","redis","sqs","task-queue","taskqueue"],"latest_commit_sha":null,"homepage":"https://taskq.uptrace.dev/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vmihailenco.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-02-04T10:11:14.000Z","updated_at":"2025-04-01T04:03:45.000Z","dependencies_parsed_at":"2024-01-16T09:01:22.447Z","dependency_job_id":"74eb157e-15d0-4cc7-9858-0481788716e5","html_url":"https://github.com/vmihailenco/taskq","commit_stats":{"total_commits":419,"total_committers":16,"mean_commits":26.1875,"dds":"0.12410501193317425","last_synced_commit":"2956d04364bf64d9b77b60241823319c6cdf9ddf"},"previous_names":["go-msgqueue/msgqueue"],"tags_count":123,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmihailenco%2Ftaskq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmihailenco%2Ftaskq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmihailenco%2Ftaskq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmihailenco%2Ftaskq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmihailenco","download_url":"https://codeload.github.com/vmihailenco/taskq/tar.gz/refs/heads/v3","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248335149,"owners_count":21086525,"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":["go","golang","ironmq","ironmq-backend","message-queue","queue","redis","sqs","task-queue","taskqueue"],"created_at":"2024-07-31T19:00:38.373Z","updated_at":"2025-04-11T03:28:50.246Z","avatar_url":"https://github.com/vmihailenco.png","language":"Go","readme":"# Golang asynchronous task/job queue with Redis, SQS, IronMQ, and in-memory backends\n\n![build workflow](https://github.com/vmihailenco/taskq/actions/workflows/build.yml/badge.svg)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/vmihailenco/taskq/v3)](https://pkg.go.dev/github.com/vmihailenco/taskq/v3)\n[![Documentation](https://img.shields.io/badge/bun-documentation-informational)](https://taskq.uptrace.dev/)\n[![Chat](https://discordapp.com/api/guilds/752070105847955518/widget.png)](https://discord.gg/rWtp5Aj)\n\n\u003e taskq is brought to you by :star: [**uptrace/uptrace**](https://github.com/uptrace/uptrace).\n\u003e Uptrace is an open source and blazingly fast\n\u003e [distributed tracing tool](https://get.uptrace.dev/compare/distributed-tracing-tools.html) powered\n\u003e by OpenTelemetry and ClickHouse. Give it a star as well!\n\n## Features\n\n- Redis, SQS, IronMQ, and in-memory backends.\n- Automatically scaling number of goroutines used to fetch (fetcher) and process messages (worker).\n- Global rate limiting.\n- Global limit of workers.\n- Call once - deduplicating messages with same name.\n- Automatic retries with exponential backoffs.\n- Automatic pausing when all messages in queue fail.\n- Fallback handler for processing failed messages.\n- Message batching. It is used in SQS and IronMQ backends to add/delete messages in batches.\n- Automatic message compression using snappy / s2.\n\nResources:\n\n- [**Get started**](https://taskq.uptrace.dev/guide/golang-task-queue.html)\n- [Examples](https://github.com/vmihailenco/taskq/tree/v3/example)\n- [Discussions](https://github.com/uptrace/bun/discussions)\n- [Chat](https://discord.gg/rWtp5Aj)\n- [Reference](https://pkg.go.dev/github.com/vmihailenco/taskq/v3)\n\n## Getting started\n\nTo get started, see [Golang Task Queue](https://taskq.uptrace.dev/) documentation.\n\n**Producer**:\n\n```go\nimport (\n    \"github.com/vmihailenco/taskq/v3\"\n    \"github.com/vmihailenco/taskq/v3/redisq\"\n)\n\n// Create a queue factory.\nvar QueueFactory = redisq.NewFactory()\n\n// Create a queue.\nvar MainQueue = QueueFactory.RegisterQueue(\u0026taskq.QueueOptions{\n    Name:  \"api-worker\",\n    Redis: Redis, // go-redis client\n})\n\n// Register a task.\nvar CountTask = taskq.RegisterTask(\u0026taskq.TaskOptions{\n    Name: \"counter\",\n    Handler: func() error {\n        IncrLocalCounter()\n        return nil\n    },\n})\n\nctx := context.Background()\n\n// And start producing.\nfor {\n\t// Call the task without any args.\n\terr := MainQueue.Add(CountTask.WithArgs(ctx))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\ttime.Sleep(time.Second)\n}\n```\n\n**Consumer**:\n\n```go\n// Start consuming the queue.\nif err := MainQueue.Start(context.Background()); err != nil {\n    log.Fatal(err)\n}\n```\n\n## See also\n\n- [Golang ORM](https://github.com/uptrace/bun) for PostgreSQL, MySQL, MSSQL, and SQLite\n- [Golang PostgreSQL](https://bun.uptrace.dev/postgres/)\n- [Golang HTTP router](https://github.com/uptrace/bunrouter)\n- [Golang ClickHouse](https://github.com/uptrace/go-clickhouse)\n\n## Contributors\n\nThanks to all the people who already contributed!\n\n\u003ca href=\"https://github.com/vmihailenco/taskq/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contributors-img.web.app/image?repo=vmihailenco/taskq\" /\u003e\n\u003c/a\u003e\n","funding_links":[],"categories":["Go","Repositories"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmihailenco%2Ftaskq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmihailenco%2Ftaskq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmihailenco%2Ftaskq/lists"}