{"id":17933635,"url":"https://github.com/keyan/simpledb","last_synced_at":"2025-06-16T22:32:26.297Z","repository":{"id":87742770,"uuid":"320705940","full_name":"keyan/simpleDB","owner":"keyan","description":"Simple persistent key-value database from scratch","archived":false,"fork":false,"pushed_at":"2020-12-13T02:50:34.000Z","size":4025,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-02-27T03:02:43.922Z","etag":null,"topics":[],"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/keyan.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":"2020-12-11T23:22:28.000Z","updated_at":"2024-06-19T06:26:58.956Z","dependencies_parsed_at":null,"dependency_job_id":"c8276156-a3d7-40e6-a5dc-909d2495fbe4","html_url":"https://github.com/keyan/simpleDB","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/keyan/simpleDB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyan%2FsimpleDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyan%2FsimpleDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyan%2FsimpleDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyan%2FsimpleDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keyan","download_url":"https://codeload.github.com/keyan/simpleDB/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyan%2FsimpleDB/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260251555,"owners_count":22981067,"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":[],"created_at":"2024-10-28T21:41:01.142Z","updated_at":"2025-06-16T22:32:26.277Z","avatar_url":"https://github.com/keyan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simpleDB\n\nA persistent key-value store implementation from the paper [\"A simple and efficient implementation of a small database\"][paper].\n\nData is stored in a builtin `map` and a write-ahead-log is used to ensure atomic updates. Restarts/crashes will use any available logs and checkpoints stored in `./data` to reload state during startup. The structure of this directory closely matches the implementation guidelines in the end of Section 3 of the paper.\n\nThe client/server communicatation uses [`gob`][gob] over HTTP.\n\n## Usage\n\nStart the DB server with:\n```\n$ make server\n```\n\nCommands can be issued using the client CLI:\n```\n$ make client\n\n-- SimpleDB CLI --\n\nAvailable commands:\n     help\n     exit or CTRL+C\n     get \u003ckey\u003e\n     set \u003ckey\u003e \u003cvalue\u003e\n     delete \u003ckey\u003e\nsimpleDB \u003e\n```\n\n## Automated Run\n\nYou can also run an automated simulation which forks and runs a separate server process and issues random client load. A very simple form of process supervision of the server allows for random crashing. The intention of this is to test fault-tolerance and also ensure race conditions are not possible with many concurrent operations. This runs indefinitely and needs to be killed to exit. Start with:\n```\nmake sim\n```\n\n[paper]: https://dl.acm.org/doi/10.1145/41457.37517\n[gob]: https://golang.org/pkg/encoding/gob\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyan%2Fsimpledb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeyan%2Fsimpledb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyan%2Fsimpledb/lists"}