This project implements a high-throughput, low-latency key-value cache server using a custom TCP protocol. It's optimized for high-concurrency environments, making it ideal for use cases that demand speed, simplicity, and scale.
Note: If you're looking for a traditional HTTP-based key-value server, check out the
http-serverbranch of this repository.
- β‘ High-Throughput TCP Server: Designed to efficiently handle thousands of concurrent TCP connections.
- π¦ Key-Value Caching: Supports
PUTandGEToperations with LRU eviction viaCachetools. - π§° Python SDK Included: Quickly build or test clients using the provided SDK (
sdk/directory). - π³ Docker Support: Easily deploy with Docker or Docker Compose.
- Python 3.7+ (for SDK or development)
- Docker (recommended for running the server)
- Clone the repository:
git clone https://github.com/arjun-kshirsagar/redis-server.git
cd redis-server- Run using Docker:
docker pull arjunkshirsagar/key-value-server
docker run -p 7171:7171 arjunkshirsagar/key-value-serverOr use Docker Compose:
docker compose upThe TCP server will be available on
127.0.0.1:7171.
We provide a Python SDK in the sdk/ directory to simplify testing and integration.
π Refer to sdk.md for detailed usage instructions.
main: β‘ High-performance TCP-based key-value server (this branch).http-server: π Traditional HTTP-based server built using FastAPI with REST endpoints.
- Designed for internal infrastructure, microservices, or any system requiring fast cache lookups.
- Consider using HTTP version if you need REST APIs or client-friendly integrations.