{"id":13513938,"url":"https://github.com/pg-sharding/spqr","last_synced_at":"2025-03-31T02:33:09.571Z","repository":{"id":38309471,"uuid":"398202579","full_name":"pg-sharding/spqr","owner":"pg-sharding","description":"Stateless Postgres Query Router.","archived":false,"fork":false,"pushed_at":"2025-03-24T12:25:22.000Z","size":27454,"stargazers_count":1074,"open_issues_count":30,"forks_count":49,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-24T13:30:00.875Z","etag":null,"topics":["go","pooler","postgresql","proxy","sharding"],"latest_commit_sha":null,"homepage":"https://pg-sharding.tech","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pg-sharding.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":"2021-08-20T08:07:20.000Z","updated_at":"2025-03-24T12:25:26.000Z","dependencies_parsed_at":"2023-09-23T16:40:54.484Z","dependency_job_id":"9727af5b-f859-49d4-b7b9-5efc20023204","html_url":"https://github.com/pg-sharding/spqr","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pg-sharding%2Fspqr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pg-sharding%2Fspqr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pg-sharding%2Fspqr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pg-sharding%2Fspqr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pg-sharding","download_url":"https://codeload.github.com/pg-sharding/spqr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246407399,"owners_count":20772126,"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","pooler","postgresql","proxy","sharding"],"created_at":"2024-08-01T05:00:40.699Z","updated_at":"2025-03-31T02:33:04.562Z","avatar_url":"https://github.com/pg-sharding.png","language":"Go","funding_links":[],"categories":["Go","\u003ca name=\"Go\"\u003e\u003c/a\u003eGo"],"sub_categories":[],"readme":"\u003cdiv align=center\u003e\n\n[![Go](https://github.com/pg-sharding/spqr/actions/workflows/build.yaml/badge.svg)](https://github.com/pg-sharding/spqr/actions/workflows/build.yaml)\n[![Go](https://github.com/pg-sharding/spqr/actions/workflows/tests.yaml/badge.svg)](https://github.com/pg-sharding/spqr/actions/workflows/tests.yaml)\n[![Docs](https://img.shields.io/badge/docs-SPQR_dev-blue)](https://t.me/+jMGhyjwicpI3ZWQy)\n[![Telegram Chat](https://img.shields.io/badge/telegram-SPQR_dev-blue)](https://t.me/+jMGhyjwicpI3ZWQy)\n\n\u003cpicture align=center\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs/logo/png/spqr_logo_white_alpha.png\"\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"docs/logo/png/spqr_logo_alpha.png\"\u003e\n    \u003cimg alt=\"Stateless Postgres Query Router\" src=\"docs/logo/png/spqr_logo_white_alpha.png\" width=\"400px\"\u003e\n\u003c/picture\u003e\n\n\u003ch4\u003eStateless Postgres Query Router is a production-ready system for horizontal scaling of PostgreSQL via sharding.\u003c/h4\u003e\n\n\u003c/div\u003e\n\n---\n\nPostgreSQL is awesome, but it's hard to manage a single database with some terabytes of data and 10\u003csup\u003e5\u003c/sup\u003e+ queries per second. Current sharding solutions focus on analytical and hybrid workloads (OLAP, HTAP). Moreover, most of those solutions do not provide a smooth path for monolith to sharded transitions, which is why Yandex Cloud's Data Platform team developed SPQR.\n\nSPQR is a production-ready system for horizontal scaling of PostgreSQL via sharding. We appreciate any kind of feedback and contribution to the project.\n\nTo get started, please visit our [documentation](https://pg-sharding.tech). The full list of features is available [here](https://pg-sharding.tech/features/).\n\n## Development\n\nYou can use `make run` for a quick example using Docker. For local development, you need [the latest Go version](https://go.dev/dl/).\n\nHow to build:\n```\nmake\nmake build\n```\n\nHow to run:\n```\nspqr-router run --config path-to-router-config.yaml\n```\n\n## Tests\n\nSPQR has all types of tests: unit, regress, and end-to-end. These tests require Docker Compose, and can be run using `make`. For more information on testing, please see `unittest`, `regress`, and `feature` sections in [Makefile](./Makefile).\n\n## Support\n\nWe have a [Telegram chat](https://t.me/+jMGhyjwicpI3ZWQy) to discuss SPQR usage and development. If you're missing a feature or have found a bug, please open a [GitHub Issue](https://github.com/pg-sharding/spqr/issues/new/choose). We appreciate any kind of feedback and contribution to the project.\n\n## License\n\nThe SPQR source code is distributed under the PostgreSQL Global Development Group License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpg-sharding%2Fspqr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpg-sharding%2Fspqr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpg-sharding%2Fspqr/lists"}