Rust Concurrency and Performance Tooling: Harness Modern Rust for Scalable, High-Performance Systems — Async & Parallel Patterns, Tokio, Rayon, Tracing, Criterion, Cargo Mastery, and More - Tapa blanda

Denning, Hollis

 
9798262426751: Rust Concurrency and Performance Tooling: Harness Modern Rust for Scalable, High-Performance Systems — Async & Parallel Patterns, Tokio, Rayon, Tracing, Criterion, Cargo Mastery, and More

Sinopsis

Master the full power of Rust for building high-performance, concurrent systems — from first principles to production-grade deployments.

Rust has become the systems programming language of choice for engineers who demand both safety and speed. But while Rust guarantees memory safety, writing concurrent, high-throughput, and production-ready applications requires far more than syntax knowledge. It requires a toolbox of patterns, performance strategies, and real-world workflows that few resources cover in depth—until now.

Rust Concurrency and Performance Tooling is the definitive practical guide for backend developers, systems engineers, and performance architects who want to squeeze every ounce of efficiency out of Rust. Structured from foundations → advanced techniques → full-stack projects, this book takes you on a complete journey:

  • Foundations of Concurrency — Threads, channels, atomics, Arc, Mutex, RwLock, and lock-free programming explained with precision and hands-on labs.
  • Async Rust in Depth — Tokio runtime, async/await patterns, cancellation, timeouts, streams, and avoiding common .await pitfalls.
  • Data Parallelism & CPU Scaling — Parallel iterators with Rayon, work stealing, thread pools, and SIMD acceleration for raw CPU throughput.
  • Performance Profiling & Observability — Benchmarking with Criterion.rs, flamegraphs with cargo-flamegraph, distributed traces with tracing + OpenTelemetry.
  • Advanced Cargo Tooling — Custom profiles, memory allocators (jemalloc, mimalloc, snmalloc), unsafe optimizations with miri, and allocator-aware data structures.
  • System Integration — Cross-compiling Rust to WebAssembly, Python bindings with PyO3, and embedded IoT debugging with Probe-RS.
  • End-to-End Projects — Build a high-performance web service with Axum + Tokio + SQLx + Redis, benchmark it under load, and deploy it to Docker, Kubernetes, and serverless platforms.
  • Actor Models & Resilience — Implement robust message-driven systems with Actix and xtra, complete with supervision, backpressure, and fault tolerance.
  • Production-Grade CI/CD — Automate testing with cargo-nextest, secure dependencies with cargo-audit and cargo-deny, and roll out services with GitHub Actions, Prometheus monitoring, and Kubernetes HPA autoscaling.

Every chapter includes Practice Labs, designed to help you apply techniques immediately: from building concurrent counters and async TCP servers to full-stack, production-grade services benchmarked under real load. Extended appendices provide cargo command cheat sheets, concurrency quick references, optimization recipes, and a tooling directory covering Tokio, Rayon, Criterion, Tracing, Actix, SQLx, PyO3, Wasm-Pack, Probe-RS, and more.

If you’ve mastered Rust basics and want to step into the world of concurrent, performant, and production-ready Rust engineering, this book will show you how to get there.

Why You’ll Love This Book

  • Purely practical: hands-on labs, full-stack projects, and step-by-step workflows.
  • Updated for 2025+: modern Rust ecosystem, crates, and tools.
  • Comprehensive: concurrency, async, parallelism, profiling, tooling, deployment, and resilience in one volume.
  • For professionals written for developers who want real performance, not toy examples.

Unlock the full power of Rust.
Engineer concurrent systems without fear.
Deploy production-ready services that scale.

Rust Concurrency and Performance Tooling is your end-to-end blueprint for mastering performance engineering in Rust.

"Sinopsis" puede pertenecer a otra edición de este libro.