{"repo":"raptodb/rapto","free":true,"listed":false,"github":"https://github.com/raptodb/rapto","clone":"git clone https://github.com/raptodb/rapto.git","description":"For engineers seeking an in-memory key-value database, Rapto provides predictable performance, cache-aware design, and low memory usage through an event-driven runtime.","language":"Zig","stars":25,"topics":["database","in-memory","in-memory-database","key-value","rapto","cache","nosql","real-time","zig","raptodb"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Currently unstable and incomplete Rapto takes into consideration multiple architectural aspects that differentiate it from traditional in-memory databases. Performance does not derive exclusively from the classic in-memory model, but also from the execution model, protocol, and memory layout that provide these characteristics: - Scalability : The runtime uses a completely single-threaded event-driven architecture based exclusively on epoll . This linear model avoids synchronization, cache contention, and overhead introduced by threads or context-switching. In addition, memory remains preallocated to maintain predictable and stable behavior even under high workloads. - Performance : For common read and write operations, latencies often remain below ten microseconds. This is possible thanks to the frame-based protocol, aggressive buffer reuse, and the in-memory storage system, designed to favor zero-copy deserialization and minimize allocations during serialization and query execution. - Cache-aware : Memory is managed through a flat hashmap containing key-value pairs with a total size of 16 bytes. The pointer associated with the key encodes the value type directly inside the pointer LSB bits, reducing cache pollution and memory overhead. Although this choice introduces coupling between key and value type, the Ref wrapper provides a safe access layer. - Flexibility : Although Rapto maintains a simple and direct key-value model, it also supports structured value types such as li","default_branch":null,"files":null,"tree":[],"storefront":"/r/raptodb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/raptodb/rapto/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."}