{"id":37177290,"url":"https://github.com/chk-n/gomemq","last_synced_at":"2026-01-14T20:40:37.789Z","repository":{"id":210760254,"uuid":"727391601","full_name":"chk-n/gomemq","owner":"chk-n","description":"Lightweight, reliable and concurrent in-memory message queue written in go","archived":false,"fork":false,"pushed_at":"2023-12-30T15:37:31.000Z","size":41,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-12-30T16:23:57.870Z","etag":null,"topics":["golang","in-memory","lightweight","message-queue","reliable"],"latest_commit_sha":null,"homepage":"","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/chk-n.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}},"created_at":"2023-12-04T19:15:06.000Z","updated_at":"2023-12-30T16:24:03.203Z","dependencies_parsed_at":null,"dependency_job_id":"148a9a49-62ee-45db-9c9f-a575d5ddef70","html_url":"https://github.com/chk-n/gomemq","commit_stats":null,"previous_names":["chk-n/gomemq"],"tags_count":5,"template":null,"template_full_name":null,"purl":"pkg:github/chk-n/gomemq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chk-n%2Fgomemq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chk-n%2Fgomemq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chk-n%2Fgomemq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chk-n%2Fgomemq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chk-n","download_url":"https://codeload.github.com/chk-n/gomemq/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chk-n%2Fgomemq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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","in-memory","lightweight","message-queue","reliable"],"created_at":"2026-01-14T20:40:37.240Z","updated_at":"2026-01-14T20:40:37.779Z","avatar_url":"https://github.com/chk-n.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gomemq\n\nSimple and concurrent in-memory message queue written in golang with zero third-party dependencies*\n\n\n\\*Excluding packages used for tests\n\n## Features\n\n* Zero third party dependencies\n* Type safe\n* No serialisation\n* Batch publishing\n* Receive ACK after message received by all subscribers\n* Receive 'DONE' after all subscribers successfully processed message(s)\n\n## Get\n\n`go get github.com/chk-n/gomemq`\n\n## Example\n\n```go\n\n// Set up message queue\ncfg := gomemq.Config{\n  // retrier\n}\nmq := gomemq.New(cfg)\n\n// Create topic\ncfgTopic := gomemq.ConfigTopic{\n  // memory consumption\n  // concurrency control\n  // other topic configurations\n}\nt,_ := gomemq.NewTopic[CustomType](cfgTopic)\n\n// Publish to topic\nvar msg CustomType\nt.Publish(msg)\n// equivalent to gomemq.Publish(\"topic\", msg)\n\n// Subscribe to topic\nt.Subscribe(func(msg CustomType) error {\n  // handle message asychnronously\n})\n\n// Join existing topic  \nt,_ = gomemq.Join(\"topic\")\n\n// Batch publish with ACK and DONE acknowledgement\nctx := gomemq.PublishBatchDone[CustomType](\"topic\", []CustomType{msg, msg})\n\nselect {\n  case \u003c-ctx.Ack():\n    // message was acknowledged\n  case \u003c-ctx.WithAckTimeout(3 * time.Second):\n    // message was not acknowledged within 3 seconds of publishing\n  case \u003c-ctx.WithDoneTimeout(2 * time.Minute):\n    // message was not successfully processed within 2 minutes of ACK\n  case \u003c-ctx.Done():\n    // yay, message was successfully processed\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchk-n%2Fgomemq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchk-n%2Fgomemq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchk-n%2Fgomemq/lists"}