{"id":25332221,"url":"https://github.com/sealbro/matchmaking","last_synced_at":"2026-04-30T09:38:13.582Z","repository":{"id":277363253,"uuid":"925629765","full_name":"sealbro/matchmaking","owner":"sealbro","description":"Matchmaking service","archived":false,"fork":false,"pushed_at":"2025-02-17T12:13:52.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T06:42:00.333Z","etag":null,"topics":["game-development","golang","grpc","matchmaking"],"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/sealbro.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":"2025-02-01T10:47:45.000Z","updated_at":"2025-02-17T12:13:55.000Z","dependencies_parsed_at":"2025-02-13T15:39:38.911Z","dependency_job_id":null,"html_url":"https://github.com/sealbro/matchmaking","commit_stats":null,"previous_names":["sealbro/matchmaking"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sealbro/matchmaking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sealbro%2Fmatchmaking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sealbro%2Fmatchmaking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sealbro%2Fmatchmaking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sealbro%2Fmatchmaking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sealbro","download_url":"https://codeload.github.com/sealbro/matchmaking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sealbro%2Fmatchmaking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32460781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["game-development","golang","grpc","matchmaking"],"created_at":"2025-02-14T04:31:30.883Z","updated_at":"2026-04-30T09:38:13.565Z","avatar_url":"https://github.com/sealbro.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Matchmaking Service\n\nThis service is responsible for matchmaking players into games. It is a simple service that takes a list of players and matches them into games based on their skill level.\n\n[![Hub](https://badgen.net/docker/pulls/sealbro/matchmaking?icon=docker\u0026label=matchmaking)](https://hub.docker.com/r/sealbro/matchmaking/)\n\n## How to run\n\n### Docker\n\n```bash\ndocker compose up --build\n```\n\n### Local\n\n- Run the matchmaking service\n```bash\ngo run cmd/service/main.go\n```\n\n- Run the workload generator\n```bash\ngo run cmd/workload/main.go\n```\n\n### Environment variables\n\n[.env](./example.env)\n| Name                          | Description                    | Default  |\n|-------------------------------|--------------------------------|----------|\n| `PRIVATE_ADDRESS`             | Private metrics address        | `:8081`  |\n| `GRPC_PROTOCOL`               | gRPC protocol                  | `tcp`    |\n| `GRPC_ADDRESS`                | gRPC address                   | `:32023` |\n| `LOG_LEVEL`                   | slog level                     | `DEBUG`  |\n| `QUEUE_SIZE`                  | Size of the matchmaking queue  | `25`     |\n| `MIN_GROUP_SIZE`              | Minimum group size             | `10`     |\n| `MAX_LEVEL_DIFF`              | Maximum level difference       | `10`     |\n| `FIND_GROUP_EVERY_SECONDS`    | Find group every seconds       | `1`      |\n| `MATCH_TIMEOUT_AFTER_SECONDS` | Matchmaking timeout in seconds | `60`     |\n\n\n### Metrics\n\n[localhost:8081/metrics](http://localhost:8081/metrics)\n\n```\n# HELP matchmaking_offline Total number of offline players in the matchmaking service.\n# TYPE matchmaking_offline counter\nmatchmaking_offline 4034\n# HELP matchmaking_online Total number of online players in the matchmaking service.\n# TYPE matchmaking_online counter\nmatchmaking_online 4200\n# HELP matchmaking_total Total number of players in the matchmaking service.\n# TYPE matchmaking_total gauge\nmatchmaking_total{type=\"added\"} 4200\nmatchmaking_total{type=\"matched\"} 4140\nmatchmaking_total{type=\"removed\"} 23\nmatchmaking_total{type=\"timeout\"} 37\n```\n\n\n## Features\n\n- [X] Add players into matchmaking queue\n- [X] Delete players from matchmaking queue\n- [X] Return match ID and the list of players in the match\n- [X] Setup timeout for the matchmaking process\n- [X] Configure matchmaking group size\n- [X] Get metrics for the matchmaking process\n- [X] Make simple API for the service\n\n## What is not covered\n\n- [ ] Security (authentication, authorization)\n- [ ] Load balancing and high availability\n- [ ] Monitoring and Tracing\n- [ ] Permanent storage and restore after service restart\n- [ ] How to process next matchmaking for players which can be in session now?\n\n## Links\n\n- \u003chttps://en.wikipedia.org/wiki/Elo_rating_system\u003e\n- \u003chttps://www.geeksforgeeks.org/elo-rating-algorithm/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsealbro%2Fmatchmaking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsealbro%2Fmatchmaking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsealbro%2Fmatchmaking/lists"}