3

Rust编写的Memcached缓存替代品:​​​​​​​memc.rs

 2 years ago
source link: https://www.jdon.com/57995
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Rust编写的Memcached缓存替代品:​​​​​​​memc.rs

以 Rust 编程语言实现并使用 Tokio 运行时确保内存和线程安全;

可以以最小的开销处理数千个请求。

memc.rsmemcached二进制协议100% 兼容。无需重写您的代码。只需启动服务器并使用您喜欢的语言/框架即可。

编译为单个二进制文件,可以部署在任何地方。将二进制文件复制到任何你想要的地方,启动服务器,你就完成了。使用您喜欢的工具构建易于部署和分发的容器。

Github地址

有人将其与memcached性能比较:

 memc:   6399480 ops, 639989 ops/sec, 28.45MB/sec, avg 0.67 msec latency
 memcache: 6399623 ops, 1291566 ops/sec, 57.41MB/sec, avg 0.40 msec latency

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK