{"id":38298606,"url":"https://github.com/patrickkoss/patrick-db","last_synced_at":"2026-01-17T02:21:57.760Z","repository":{"id":215142245,"uuid":"734467760","full_name":"PatrickKoss/patrick-db","owner":"PatrickKoss","description":"PatrickDB is a simplified Rust-based database designed to demonstrate distributed database principles. This distributed key-value store employs Zookeeper for replication and partitioning. Data is stored in a row-based format using a file-based system.","archived":false,"fork":false,"pushed_at":"2024-01-13T20:50:27.000Z","size":1373,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-01-29T21:28:30.141Z","etag":null,"topics":["database","database-management-system","key-value-store","partitioning","replication","rust","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/PatrickKoss.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-21T18:56:51.000Z","updated_at":"2024-01-23T22:19:04.000Z","dependencies_parsed_at":"2024-01-24T05:49:52.522Z","dependency_job_id":null,"html_url":"https://github.com/PatrickKoss/patrick-db","commit_stats":{"total_commits":39,"total_committers":3,"mean_commits":13.0,"dds":"0.15384615384615385","last_synced_commit":"cba9b37caeb11eb78983b2a946b5c929ecd77128"},"previous_names":["patrickkoss/patrick-db"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PatrickKoss/patrick-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickKoss%2Fpatrick-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickKoss%2Fpatrick-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickKoss%2Fpatrick-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickKoss%2Fpatrick-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatrickKoss","download_url":"https://codeload.github.com/PatrickKoss/patrick-db/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickKoss%2Fpatrick-db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492216,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"online","status_checked_at":"2026-01-17T02:00:07.808Z","response_time":85,"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":["database","database-management-system","key-value-store","partitioning","replication","rust","rust-lang"],"created_at":"2026-01-17T02:21:56.852Z","updated_at":"2026-01-17T02:21:57.755Z","avatar_url":"https://github.com/PatrickKoss.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n \t\u003cimg src=\"./media/thumbnail.png\"\u003e\n\u003c/p\u003e\n\n# PatrickDB\n\n![Build Status](https://github.com/patrickkoss/patrick-db/actions/workflows/main.yml/badge.svg)\n![License](https://img.shields.io/github/license/patrickkoss/patrick-db)\n![Issues](https://img.shields.io/github/issues-raw/patrickkoss/patrick-db)\n![PRs](https://img.shields.io/github/issues-pr/patrickkoss/patrick-db)\n![Forks](https://img.shields.io/github/forks/patrickkoss/patrick-db)\n![Stars](https://img.shields.io/github/stars/patrickkoss/patrick-db)\n\nPatrickDB is a simplified Rust-based database designed to demonstrate distributed database principles. This distributed\nkey-value store employs Zookeeper for replication and partitioning. Data is stored in a row-based format using a\nfile-based system.\n\nThe database is accessible through gRPC or REST, facilitated by Envoy for converting REST to gRPC. Additionally,\npatrick-db's storage and index engines can be integrated into other projects.\n\n# Architecture\n\n![Architecture](./media/architecture.png)\n\nClients compatible with gRPC or REST can connect to patrick-db, such as the [cli](./server/src/client.rs) tool located\nin\nthe [server](./server) directory.\n\nEnvoy, which serves multiple purposes, is used here to interchange REST and gRPC.\n\nZookeeper plays a role in service discovery and managing leader elections.\n\nThe [router](server/src/router.rs), a gRPC server akin to the database server, interacts with Zookeeper. It identifies\nall partitions and their respective leaders and followers, directing traffic to the appropriate partition through\nhash-based partitioning. For write or read operations, it selects the leader, and for read-only operations, a follower\nis chosen.\n\nThe [database](server/src/server.rs) itself is a gRPC server that implements a file-based storage system. In its role as\na leader, it replicates data to followers using statement replication.\n\n# Getting Started\n\nStart all components (Zookeeper, Envoy, Router, and two Partitions with one Leader and Replica) inside docker\ncontainers:\n\n```bash\nmake run-all-docker\n```\n\nLint all components:\n\n```bash\nmake lint\n```\n\nRun all tests:\n\n```bash\nmake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickkoss%2Fpatrick-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickkoss%2Fpatrick-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickkoss%2Fpatrick-db/lists"}