{"id":19723507,"url":"https://github.com/remind101/mq-go","last_synced_at":"2025-04-29T22:31:01.616Z","repository":{"id":57485759,"uuid":"129810933","full_name":"remind101/mq-go","owner":"remind101","description":"SQS Consumer Server for Go","archived":false,"fork":false,"pushed_at":"2018-07-10T20:37:35.000Z","size":364,"stargazers_count":28,"open_issues_count":0,"forks_count":10,"subscribers_count":48,"default_branch":"master","last_synced_at":"2025-04-05T20:01:38.193Z","etag":null,"topics":["go","golang","sqs","sqs-consumer"],"latest_commit_sha":null,"homepage":"","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/remind101.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}},"created_at":"2018-04-16T21:58:26.000Z","updated_at":"2022-10-24T19:22:36.000Z","dependencies_parsed_at":"2022-09-11T16:01:35.414Z","dependency_job_id":null,"html_url":"https://github.com/remind101/mq-go","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/remind101%2Fmq-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fmq-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fmq-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fmq-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remind101","download_url":"https://codeload.github.com/remind101/mq-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251592958,"owners_count":21614449,"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","sqs","sqs-consumer"],"created_at":"2024-11-11T23:22:26.009Z","updated_at":"2025-04-29T22:30:59.722Z","avatar_url":"https://github.com/remind101.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MQ - A package for consuming SQS message queues\n\nThe goal of this project is to provide tooling to utilize SQS effectively in Go.\n\n## Features\n\n* Familiar `net/http` Handler interface.\n* Retry with expontial backoff via visibility timeouts and dead letter queues.\n* Router Handler for multiplexing messages over a single queue.\n* Server with configurable concurrency and graceful shutdown.\n* Automatic batch fetching and deletion.\n* Publisher for batch sending.\n* Opentracing support\n\n## Documentation\n\nhttps://godoc.org/github.com/remind101/mq-go\n\n## QuickStart\n\n``` golang\nfunc main() {\n\tqueueURL := \"https://sqs.us-east-2.amazonaws.com/123456789012/MyQueue\"\n\n\th := mq.HandlerFunc(func(m *mq.Message) error {\n\t\tfmt.Printf(\"Received message: %s\", aws.StringValue(m.SQSMessage.Body))\n\n\t\t// Returning no error signifies the message was processed successfully.\n\t\t// The Server will queue the message for deletion.\n\t\treturn nil\n\t})\n\n\t// Configure mq.Server\n\ts := mq.NewServer(queueURL, h)\n\n\t// Start a loop to receive SQS messages and pass them to the Handler.\n\ts.Start()\n\tdefer s.Shutdown(context.Background())\n\n\t// Start a publisher\n\tp := mq.NewPublisher(queueURL)\n\tp.Start()\n\tdefer p.Shutdown(context.Background())\n\n\t// Publish messages (will be batched).\n\tp.Publish(\u0026sqs.SendMessageBatchRequestEntry{\n\t\tMessageBody: aws.String(\"Hello\"),\n\t})\n\tp.Publish(\u0026sqs.SendMessageBatchRequestEntry{\n\t\tMessageBody: aws.String(\"World!\"),\n\t})\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremind101%2Fmq-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremind101%2Fmq-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremind101%2Fmq-go/lists"}