# talent-plan/tinykv

A course to build distributed key-value service based on TiKV model

Repository: https://github.com/talent-plan/tinykv
Canonical: https://ross.abutalabs.com/products/tinykv
Language: Go
License: Apache-2.0
License Family: permissive
Last push: 2025-05-03T04:44:59+00:00

## Health v2 (maintenance only)
Score: 41/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 19, release rhythm 35, longevity 100
- inputs: {"age_days": 2431, "days_push": 487, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3983, forks 1089 (observed 2026-08-28T04:08:31.709350+00:00)

## What it is
TinyKV is a Go-based course project where students build a distributed key-value storage system modeled on TiKV, implementing Raft consensus, multi-raft sharding, and distributed transactions. It provides skeleton code completed across four projects, from standalone KV storage to MVCC transaction handling.

## Use cases
- learn how Raft consensus works by implementing it
- build a fault-tolerant key-value server
- understand region splitting and cluster scheduling in distributed databases
- implement MVCC and distributed transactions like Percolator
- study TiKV architecture hands-on
- practice distributed systems coursework similar to MIT 6.824

## When to choose
- you want a structured, project-based way to learn distributed storage internals
- you are preparing to contribute to or work with TiKV or TiDB
- you need hands-on experience with Raft, snapshotting, conf changes, and distributed transactions

## When to avoid
- you need a production-ready key-value store for real workloads
- you want a finished database rather than skeleton code you must complete yourself
- you are looking for a SQL layer, which is covered by the separate TinySQL course

## Facets
- artifact type: learning-resource
- maturity: active
- function: database, developer-tools
- domain: microservices, databases, education, developer-tools
- platform: go, cross-platform
- tags: raft, distributed-storage, tikv, course, kv-store, consensus, transactions

## Member repositories
- talent-plan/tinykv (main) score 41

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:31.709350+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:24:15.774955+00:00, confidence not recorded.
  - readme: https://github.com/talent-plan/tinykv (fetched 2026-08-28T04:08:31.709350+00:00, sha 395e43897c6a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
