Overview
Syllabus
Intro
Use Rust to: . ack Transport Layer Security (TLS) • match performance of implementation
Rust Storage in Pelikan: 2018 Engineer wants to add storage to Pelikan and write the library in Rust . Used the framework with FFI to use Rust Storage First commit of Rust to Pelikan!
Rust Server in Pelikan: 2019 Engineer wants to use Rust for server code
Prototype • Memcached protocol compatible • wrapped std::collections:: HashMapas temporary storage benchmarking looked good • next step: FFI for storage library
Rewrite Benefits new storage design • added new ideas to storage library helped make it more production ready
empowering everyone to build reliable and efficient software • high performance • code with confidence in reliability awesome language features and tools zero cost abstraction
microbenchmarking of critical components cargo fuzz easy to add fuzz testing for protocol library
Next Steps Path to Production • feature complete . more testing • production canary • deployment
Rewriting has costs and benefits Costs • Extra time would have • Easier to work with an all caused missed deadlines Rust codebase Duplicating work that's • No more cmake!!! been paid for
Cand Rust are both very fast Profiling and benchmarking helped get us match the performance of the implementation
Taught by
Rust