
Serverless Function Deployment
Creating Lightweight Microservices and Cloud Functions using Rust
By: Thomas Keegan
eBook | 19 October 2026
At a Glance
ePUB
eBook
$6.99
or 4 interest-free payments of $1.75 with
Instant Digital Delivery to your Kobo Reader App
Eliminate cold starts, slash your cloud compute bill, and build rock-solid distributed systems with the power of Rust.
Serverless computing promised effortless scaling and pay-for-what-you-use efficiency. Yet in practice, developers using interpreted or garbage-collected languages often battle multi-second cold starts, unpredictable memory spikes, and inflated monthly cloud bills. Rust changes the equation entirely. By compiling directly to compact native binaries with predictable memory management and strict compile-time safety, Rust unlocks the true financial and operational potential of serverless architecture.
Serverless Function Deployment is a practical, production-focused guide for software engineers, cloud architects, and backend developers who want to design, build, deploy, and maintain lightweight microservices and cloud functions using Rust. Modeling the best practices of modern cloud-native engineering, this book skips theoretical fluff to give you actionable architectural patterns that work across major cloud providers.
Whether you are migrating legacy APIs, building high-throughput event processors, or exploring the frontier of WebAssembly at the network edge, you will learn how to write portable, decoupled domain logic that avoids vendor lock-in while squeezing every millisecond of performance out of your cloud infrastructure.
What You Will Learn:
- Master the Serverless Execution Lifecycle: Understand how init, invoke, freeze, thaw, and shutdown phases impact your code across native runtimes, custom handlers, serverless containers, and WebAssembly sandboxes.
- Build a Fast Cross-Compilation Toolchain: Configure Cargo workspaces, cargo-lambda, cargo-zigbuild, and sccache to compile static musl binaries for both x86_64 and cost-effective arm64 (AWS Graviton) processors.
- Harness Asynchronous Rust and Tokio: Tune single-threaded and multi-threaded Tokio executors, manage bounded parallelism with semaphores, and stream large payloads without exhausting memory limits.
- Implement Production-Grade Handlers and APIs: Process strongly typed cloud events, validate untrusted input with serde and validator, and build cohesive HTTP microservices using the Axum framework.
- Integrate Seamlessly with Cloud Services: Architect idempotent queue consumers for SQS and Pub/Sub, handle partial batch failures, generate S3 presigned URLs, query DynamoDB, and solve relational database connection pooling pitfalls.
- Automate Infrastructure and CI/CD: Deploy safely using AWS SAM, AWS CDK, Terraform, OpenTofu, and Fermyon Spin, complete with OIDC passwordless authentication and automated canary rollouts.
- Harden Security and Observability: Enforce least-privilege IAM roles, audit your software supply chain with cargo-audit, emit structured JSON logs with tracing, and propagate OpenTelemetry distributed traces.
Who This Book Is For:
This book is designed for backend developers, DevOps engineers, and cloud architects who understand basic programming and HTTP concepts and want to apply Rust to real-world cloud workloads. You do not need to be a Rust expert to succeed: every essential language feature, from ownership and lifetimes to smart pointers and traits, is explained clearly in the context of practical serverless applications.
on
ISBN: 9798237777970
Published: 19th October 2026
Format: ePUB
Language: English
Publisher: ?Thomas Keegan























