{"repo":"psidh/Prithvi","free":true,"listed":false,"github":"https://github.com/psidh/Prithvi","clone":"git clone https://github.com/psidh/Prithvi.git","description":"Prithvi is an in-memory key-value database built from scratch in Java, without relying on external frameworks. It provides basic data storage operations, persistence to disk, and essential features like TTL expiry, automatic data management and LRU Cache","language":"Java","stars":87,"topics":["database","java","jdk","key-value-database","scratch-implementation","system-design"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Prithvi: A Key-Value Database Prithvi is an in-memory key-value database built from scratch in Java, without relying on external frameworks. It provides basic data storage operations, persistence to disk, and essential features like TTL (Time-To-Live) expiry and automatic data management. Contents - Prithvi: A Key-Value Database - Contents - Benchmarking vs Redis - Tech Stack - Contents - Features - Getting Started - Prerequisites - Running the Server - Normal - Using Docker - Commands - Persistence - Architecture \\& Design Notes - Client SDKs - Metrics and Monitoring - Write-Ahead Logging (WAL) - Version - Security Warning - Contributing - License - Author --- Benchmarking vs Redis We benchmarked Prithvi against Redis (v7.2) on the same machine using a custom load generator simulating SET / GET operations with random keys. Metric Redis Prithvi ------------------ ---------- ---------- Peak TPS (SET+GET) 169k ops/s 138k ops/s Avg Latency (GET) 0.61 0.72 Min Latency (ms) 0.02 0.03 Max Latency (ms) 627 38 Tested locally on MacBook M1 Air (16 GB RAM) with a custom Java load generator using 100 threads, 100k ops (SET+GET). Redis ran with default config (no AOF, no snapshotting); Prithvi ran with WAL enabled, TTL/AutoSave off. Note : Prithvi is NOT ⚠️ optimized with native code or memory pooling like Redis, but performs strongly for educational use-cases and mid-scale deployments. --- Tech Stack Contents - Prithvi: A Key-Value Database - Contents - Benchmarking vs Redis - Tech Stac","default_branch":null,"files":null,"tree":[],"storefront":"/r/psidh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/psidh/Prithvi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}