{"repo":"IceFireDB/redhub","free":true,"listed":false,"github":"https://github.com/IceFireDB/redhub","clone":"git clone https://github.com/IceFireDB/redhub.git","description":"High-performance Redis-Server multi-threaded framework, based on rawepoll model.","language":"Go","stars":80,"topics":["golang","go","redis","epoll","fast","key-value","high-performance","cache","redis-protocol"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"RedHub RedHub is a high-performance RESP (Redis Serialization Protocol) server framework built in Go. It leverages the RawEpoll model via the gnet library to achieve ultra-high throughput with multi-threaded support while maintaining low CPU resource consumption. Features - Ultra High Performance - Exceeds Redis single-threaded and multi-threaded implementations in benchmarks - Fully Multi-threaded - Native support for multiple CPU cores with efficient event loop distribution - Low Resource Consumption - Optimized memory usage and CPU efficiency - Full RESP Protocol Support - Compatible with Redis protocol (RESP2) - Multi-Protocol Support - Supports RESP, Tile38 native, and Telnet protocols - Easy to Use - Create Redis-compatible servers with minimal code - Production Ready - Robust error handling, connection management, and extensibility Architecture RedHub implements an event-driven architecture based on the gnet framework: Threading Model - Single-core mode : All connections handled by a single event loop - Multi-core mode : Multiple event loops distribute connections using configurable load balancing strategies - Connection Buffering : Each connection maintains its own buffer for command accumulation - Thread Safety : Uses RWMutex for connection map synchronization Installation Quick Start Here's a simple example showing how to create a Redis-compatible server with SET, GET, DEL, PING, and QUIT commands: Example Code Run the Example Configuration RedHub provides various c","default_branch":null,"files":null,"tree":[],"storefront":"/r/IceFireDB","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/IceFireDB/redhub/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."}