Skip to the content.

Rust Atomics and Locks

https://marabos.nl/atomics/basics.html

rpc

简单读了下,这是绝对应该阅读的东西

./target/debug/helloworld-server
./target/debug/helloworld-client
grpcurl -plaintext -import-path ./proto -proto helloworld.proto -d '{"name": "Tonic"}' '[::1]:50051' helloworld.Greeter/SayHello

pingora

RUST_LOG=INFO ./target/debug/pg  -c ./src/pingora/conf.toml  -d

测试

cargo test rustbook

覆盖率 cargo install cargo-tarpaulin cargo tarpaulin –out Html

基本遇到放到 demo 中测试

使用方法

cargo build --package demo && target/debug/demo 2

rust async

基于 Rust 的 https://news.ycombinator.com/item?id=34271739

https://github.com/PacktPublishing/Asynchronous-Programming-in-Rust/blob/main/ch02/a-os-threads/src/main.rs

rust 中如何设计锁的

https://www.scylladb.com/2022/01/12/async-rust-in-practice-performance-pitfalls-profiling/ https://eta.st/2021/03/08/async-rust-2.html

本站所有文章转发 CSDN 将按侵权追究法律责任,其它情况随意。