{"id":43466125,"url":"https://github.com/canhlinh/sqsworker","last_synced_at":"2026-02-03T06:22:32.457Z","repository":{"id":57598321,"uuid":"155660161","full_name":"canhlinh/sqsworker","owner":"canhlinh","description":"Enqueues and processes background backed by AWS SQS queue","archived":false,"fork":false,"pushed_at":"2023-02-23T23:49:50.000Z","size":19,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T13:46:49.410Z","etag":null,"topics":["golang","sqs-queue","workers"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/canhlinh.png","metadata":{"files":{"readme":"README.MD","changelog":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-01T04:03:24.000Z","updated_at":"2018-11-01T09:51:14.000Z","dependencies_parsed_at":"2024-06-20T13:17:33.219Z","dependency_job_id":"397e5b6a-ede1-410f-9f0e-690ca20dc39c","html_url":"https://github.com/canhlinh/sqsworker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/canhlinh/sqsworker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canhlinh%2Fsqsworker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canhlinh%2Fsqsworker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canhlinh%2Fsqsworker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canhlinh%2Fsqsworker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/canhlinh","download_url":"https://codeload.github.com/canhlinh/sqsworker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canhlinh%2Fsqsworker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29035648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T06:11:29.234Z","status":"ssl_error","status_checked_at":"2026-02-03T06:11:03.146Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["golang","sqs-queue","workers"],"created_at":"2026-02-03T06:22:31.890Z","updated_at":"2026-02-03T06:22:32.453Z","avatar_url":"https://github.com/canhlinh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"SqsWorker lets you enqueue and processes background backed by AWS SQS queue\n==============================\n\n[![Build Status](https://circleci.com/gh/canhlinh/sqsworker.svg?style=svg)](https://circleci.com/gh/canhlinh/sqsworker)\n[![GoDoc](https://godoc.org/github.com/canhlinh/sqsworker?status.svg)](http://godoc.org/github.com/canhlinh/sqsworker)\n\n**Features:**\n- Consumes SQS messages as jobs by multi workers\n- Enqueue jobs to as send messages to SQS queue\n\n**Example:**\n\n```\npackage main\n\nimport (\n\t\"fmt\"\n\t\"time\"\n\n\t\"github.com/aws/aws-sdk-go/aws\"\n\t\"github.com/aws/aws-sdk-go/aws/session\"\n\t\"github.com/aws/aws-sdk-go/service/sqs\"\n\t\"github.com/pborman/uuid\"\n\t\"github.com/canhlinh/sqsworker\"\n)\n\nfunc main() {\n\ttestQueue := \"testqueue.fifo\"\n\n\tsession := session.Must(session.NewSession())\n\tsqsClient := sqs.New(session, aws.NewConfig().WithRegion(\"us-east-1\"))\n\n\n\tsqsWorkerPool := sqsworker.New(testQueue, 2, sqsClient)\n\tsqsWorkerPool.RegisterJobHandler(\"doingsomething\", jobHandler)\n\tsqsWorkerPool.Start()\n\tsqsWorkerPool.Enqueue(\"doingsomething\", map[string]interface{}{\"paramter_a\": uuid.New()})\n\n\ttime.Sleep(3*time.Second)\n\tsqsWorkerPool.Stop()\n}\n\n func jobHandler(args map[string]interface{}) error {\n\tfmt.Println(\"Run job\", args)\n\treturn nil\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanhlinh%2Fsqsworker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcanhlinh%2Fsqsworker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanhlinh%2Fsqsworker/lists"}