{"id":36531312,"url":"https://github.com/vfunin/rabbitmq-consumer","last_synced_at":"2026-01-12T03:01:37.363Z","repository":{"id":128575771,"uuid":"525251093","full_name":"vfunin/rabbitmq-consumer","owner":"vfunin","description":"Go RabbitMQ consumser","archived":false,"fork":false,"pushed_at":"2022-08-16T07:32:20.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-16T03:15:26.843Z","etag":null,"topics":["consumer","go","mysql","postgresql","rabbitmq"],"latest_commit_sha":null,"homepage":"","language":"Go","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/vfunin.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":"2022-08-16T06:06:09.000Z","updated_at":"2022-08-28T07:12:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"e7c4b72f-5760-4e52-bef4-7e2f343a7318","html_url":"https://github.com/vfunin/rabbitmq-consumer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vfunin/rabbitmq-consumer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfunin%2Frabbitmq-consumer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfunin%2Frabbitmq-consumer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfunin%2Frabbitmq-consumer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfunin%2Frabbitmq-consumer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vfunin","download_url":"https://codeload.github.com/vfunin/rabbitmq-consumer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfunin%2Frabbitmq-consumer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28332841,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"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":["consumer","go","mysql","postgresql","rabbitmq"],"created_at":"2026-01-12T03:01:21.617Z","updated_at":"2026-01-12T03:01:37.357Z","avatar_url":"https://github.com/vfunin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go RabbitMQ Consumer\n\n---\n\nThe application reads messages from the queue and saves them to the database.\n\n#### Supported databases\n- [x] PostgreSQL\n- [x] MySQL\n\n---\n\n## Building the source\n\n```bash\nmake build\n```\nor for build with flags\n```bash\nmake build-flags\n```\n\n### Local environment\n\n```bash\nmake all\n```\n---\n\n## Using the app\n\n- Create a table in your database:\n\nPostgreSQL:\n```postgresql\nCREATE TABLE public.messages (\n  id bigserial PRIMARY KEY,\n  correlation_id text,\n  created_at timestamptz default CURRENT_TIMESTAMP,\n  message text\n);\n\n\nCREATE INDEX messages_correlation_id_index\n    ON messages (correlation_id);\n```\n\nMySQL\n```mysql\nCREATE TABLE messages\n(\n    id             int auto_increment primary key,\n    correlation_id varchar(255)                        null,\n    created_at     timestamp default CURRENT_TIMESTAMP not null,\n    message        text                                null\n);\n\nCREATE INDEX messages_correlation_id_index\n    ON messages (correlation_id);\n\n\n```\n\n- Change config.yaml\n- Run the app:\n```bash\n./rabbitmq-consumer -config config.yaml\n```\n---\n\n## Development plan\n\n- [x] Base functionality\n- [ ] Add auto reconnect to DB\n- [ ] Change structure\n- [ ] Add Sentry support\n- [ ] Add tests\n- [ ] Add optional saving headers and properties\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvfunin%2Frabbitmq-consumer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvfunin%2Frabbitmq-consumer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvfunin%2Frabbitmq-consumer/lists"}