Cloud Native Rust Workshop: Let's go parallel with Rust
summary
Builds a small TCP mailbox server in Rust that compiles and runs: uses TcpListener and TcpStream with read_line into String, parses into a Request enum (Publish/ Retrieve), stores messages in a VecDeque wrapped by Arc + Mutex, and demonstrates push_back/pop_front returning Option and Result handling with unwraps. Shows turning per-connection handling into thread::spawn closures with arc_clone and lock guards (explains guard scope), notes deadlock/data-race avoidance, and maps the same design to async runtimes like Tokio.
AI-written summary · about
chapters (28)
- 0:00Start
- 0:27Introductory Slides
- 2:22Who Am I
- 11:12What's the Best Text Editor for Rust
- 13:08Tool Chain Manager
- 15:57What Would You Recommend as a Container Base for Windows Based Build
- 22:52Listening for Network Connections
- 23:02Tcp Listener
- 25:27Unwrapping
- 31:13Match Statement
- 33:38Custom Macros
- 35:37Ownership System
- 43:01Buffered Reader
- 46:42Mark the Buffered Reader as Mutable
- 48:57Parsing Rules
- 51:19Request Parsing
- 53:12Debug Interface
- 54:07Derived Interface
- 55:40Trim End Function
- 1:05:44Storage
- 1:14:00Write Method
- 1:21:29How Do You Get the Documentation Interface
- 1:36:23Why I Use Arc Clone
- 1:36:58Clone Interface
- 1:38:14Mutex
- 1:43:34When Is the Guard Released
- 1:50:02Borrow Checking
- 1:50:46Are Data Race Conditions Possible
related talks
56mThe RUST Language for High‑Load Network Services — Quick Start
18mA better way of doing Async Rust
32mLet's build an async runtime together
25mRayon: Data Parallelism for Fun and Profit
20mThe status of parallel rustc
41mCap'n Proto and Rust: Type Systems for Sharing
34mMove fast and don't break things: High-performance networking in Rust
29mRust: Embedded, Async, All the Way
