The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
Bought separately
$203
Minimum price
$69.00
$99.00
About the Bundle
About the Books
Written for senior engineers and technical leads who already know Python — closures, decorators, comprehensions, async basics — and need the judgment to make and defend architectural decisions.
The book starts inside the interpreter. You'll work through identity, reference counting, the type hierarchy, the descriptor protocol, `__getattr__` vs. `__getattribute__`, `__init_subclass__` vs. metaclasses, and special-method dispatch. From there it moves outward: class-creation machinery and signature-preserving decorators; generators, `yield from`, `send`/`throw`/`close`, `contextlib.contextmanager`, async generators and `anext`; the typing system from PEP 484 to PEP 695, `Protocol`, `TypedDict`, `ParamSpec`, and incremental adoption with `py.typed`.
Then the engineering layers. Packaging and tooling with `pyproject.toml`, `uv`, `hatchling`, and `ruff`. Testing architecture with pytest fixtures, Hypothesis, mutation testing, test doubles, and async testing. Performance with `cProfile`, `py-spy`, `pyinstrument`, Scalene, `memray`, `pyperf`, and `sys.monitoring`. Memory work with `tracemalloc`, `objgraph`, reference cycles, `weakref`, and RSS measurement.
Architecture and operations fill the second half: layered and hexagonal design, FastAPI with Pydantic v2, SQLAlchemy 2.0 and the N+1 problem, Celery, Dramatiq, Kafka, the transactional outbox, containers and Kubernetes, Prometheus and OpenTelemetry, application and supply-chain security, and large-scale migration with `ruff`, `pyupgrade`, and `libcst`.
Case studies from Instagram, Dropbox, Spotify, Meta, Netflix, and Discord anchor the patterns. Every chapter pairs a mental model with runnable Python 3.12+ snippets, trade-off tables, concrete failure modes, exercises, and a recap checklist.
Advanced JavaScript Programming is written for developers who already ship JavaScript and want to understand *why* it behaves the way it does under load. It moves from ECMAScript semantics and V8's tiered compilation pipeline (Ignition, Sparkplug, Maglev, TurboFan) through the Node.js event loop, closures, prototypes, modules, memory management and concurrency, into advanced TypeScript, web-platform APIs, data modelling, testing, debugging, security, build tooling, performance, observability and deployment.
You will learn to reason about latency from first principles: how hidden classes and inline caches shape object shape, when V8 deoptimizes, how microtask and macrotask queues differ between browser and Node.js (including the Node.js 20 timer-ordering change), and how closures and reachability produce leaks you can reproduce and fix with `WeakMap`, `WeakSet`, `WeakRef` and `FinalizationRegistry`.
The middle chapters cover production mechanics: bounded parallelism with `AbortController`, retries with backoff and jitter, idempotency, structured concurrency, streams and RxJS backpressure, `satisfies`, `as const`, conditional and inferred types, type-level validation, Workers, Web Crypto, and API design covering pagination, errors, versioning and rate limiting.
The final third is operational: the Node test runner, contract testing with Pact, property-based testing, load and chaos testing, Node Inspector and diagnostic reports, OWASP Top 10:2025, supply-chain security, bundlers and reproducible builds, latency budgets, Core Web Vitals, OpenTelemetry tracing, alerting, Kubernetes zero-downtime rollouts and graceful shutdown. Two end-to-end walkthroughs build a production API service and a publishable library with CI/CD.
Move from working PHP code to systems that survive production with a practical guide built around PHP 8.3, Composer, Symfony-style dependency injection, and modern operational tooling.
You will learn how to structure a Composer-managed project with reproducible installs, secure dependency policies, typed class constants, enums, readonly classes, value objects, generics through PHPDoc, and PHPStan. The book covers PSR standards, PSR-4 autoloading, constructor injection, and architecture boundaries, then applies them to testing with Pest, PHPUnit, and mutation testing.
The security and data chapters cover allowlist input validation, output encoding, password hashing with Argon2id, authentication and authorization, CSRF and SSRF defenses, secrets management, PDO, transactions, migrations, query optimization, caching, queues, and event-driven design.
API and runtime chapters cover REST, OpenAPI, GraphQL, webhooks, rate limiting, Fibers, ReactPHP, RoadRunner, FrankenPHP, Swoole, profiling with Blackfire and Xdebug, load testing with k6, OPcache, and memory management.
Finally, you will wire up structured logging, Prometheus metrics, OpenTelemetry tracing, health checks, alerts, containers, CI/CD, Terraform, zero-downtime releases, and rollback before building a production order service and evolving it into an event-driven platform.
Advanced Rust Programming
This book is for experienced Rust programmers and working engineers who already know the syntax and want to build production systems rather than toy programs. It moves from ownership and type-system design through trait architecture, error handling, lifetimes, interior mutability, smart pointers, unsafe Rust and FFI, memory layout, async runtimes, structured concurrency, networking with Tokio/Axum/Tonic, database access, testing, fuzzing, supply-chain security, cross-compilation, benchmarking, and observability — and finishes with a complete walkthrough that takes a service from design through CI, profiling, deployment, and incident diagnostics.
You will learn to encode state transitions in the type system with newtypes, sealed traits, and typestate; design library error types that callers can act on, with `thiserror`-style conversions, `anyhow` at the application layer, and panic-versus-unwind decisions. You will work through GATs, `dyn` object safety, variance, `PhantomData`, and what the compiler actually guarantees about zero-cost abstractions.
The middle of the book covers the escape hatches and where soundness bugs live: `Cell`/`RefCell`/`Mutex`/`RwLock`, `Rc`/`Arc`/`Weak`/`Cow`, reference cycles, raw pointers, stacked and tree borrows, `Send`/`Sync`, and a working C FFI loop with `bindgen` and `cbindgen`. Then async: Tokio's architecture, `spawn` versus `spawn_blocking`, channels, `select!`, cancellation semantics, `JoinSet`, deadlock avoidance, and graceful shutdown — followed by Axum services with middleware, Tonic gRPC, TLS, and backpressure; sqlx with pooling, transactions, migrations, and the N+1 problem; and a testing stack covering integration tests, mocking, property-based testing, snapshots, `cargo-fuzz`, Miri, and sanitizers.
The final chapters cover operational reality: `cargo audit`, `cargo deny`, `cargo vet`, reproducible builds, cross-compilation to ARM64, multi-stage Docker builds, release profiles, `criterion` benchmarks, `perf` and `samply` profiling, `tracing`, OpenTelemetry, Kubernetes probes, and deployment strategies. A capstone chapter walks one service from domain design through PostgreSQL, HTTP, gRPC, CI, benchmarking, deployment, and an incident walkthrough. Every chapter ends with a recap checklist and exercises; nightly-only features are marked as such.
Real projects anchor the material — Linux kernel Rust drivers, AWS Lambda cold starts, Cloudflare Pingora, Discord's Read States rewrite, Dropbox's sync engine, Polars — with cited numbers and sources.
This book is a field manual for C++ developers who already ship code and want to ship better code. It is not a syntax tutorial. It covers the C++20/23 language foundation and object model — trivially copyable, standard layout, aggregate — then works through move semantics, RAII, value categories, perfect forwarding, ownership models, concepts, ranges, type erasure, error handling, concurrency, lock-free programming, coroutines, memory management, ABI stability, profiling, testing, debugging, packaging, and deployment.
You will work with real tools as they are used in production: `std::expected` and `std::error_code` for structured failure, `std::jthread` and `atomic::wait`, ThreadSanitizer and `perf` for measurement, `rr` and core dumps for deterministic replay, `std::pmr` and pool allocators for memory layout, Conan 2.x and CMake 4.x for reproducible builds, and OpenTelemetry, Prometheus, and `sentry-native` for observability. Each chapter names the projects — LLVM, Chromium, Qt, Unreal Engine, TensorFlow, Abseil, Folly, Boost, GoogleTest, Catch2 — where the technique is actually deployed, with runnable C++20 snippets, failure modes, alternative comparisons, exercises, and a recap checklist you can lift into a design review or pull request template.
The capstone walks through building a modular, concurrent, observable C++ service: project layout, core types, HTTP layer, testing, and shipping, ending with an architecture checklist, a debugging-and-optimization workflow, and a release-readiness roadmap.
Written for Scala developers who have already shipped collections-based code, written implicits, and felt the sharp edges of traits and higher-order functions — and who now want to build systems that survive production.
This book moves from the Scala 3 language and the JVM beneath it into type-level design, then out to distributed systems. You'll work with union and intersection types, opaque type aliases, match types, `given`/`using`, type class derivation with Cats, `inline` and `transparent inline`, and macros via `scala.quoted`. You'll choose between Cats Effect and ZIO, use `bracket` for resource safety, and reason about `Future` versus fibers versus Java virtual threads (Project Loom). You'll cover actor systems with Akka and Apache Pekko, supervision trees, event sourcing, cluster sharding, and Pekko Streams.
The engineering chapters are hands-on: Scala 2.13 collection redesign and empirical collection performance, `LazyList`/`Iterator`/`View` laziness, fs2 and backpressure, parallel collections versus task versus data parallelism with Spark and Flink, serialization with JSON, Avro, and Kryo including schema evolution as a discipline, testing with ScalaTest, MUnit, property-based tests, effect testing and concurrency testing, and performance profiling with JDK Flight Recorder, async-profiler, and JMH.
Deployment and operations close the loop: packaging, JVM configuration, GraalVM Native Image, Scala Native and Scala.js, reproducible builds, observability, security, and resilient microservice architecture built around timeouts, retries with jitter, circuit breakers, bulkheads, rate limiting, load shedding, and the service mesh.
Six real-world walkthroughs — Spark, Flink, Pekko, Gatling, Play, and linkerd — tie it together. Every chapter includes working Scala 3 code, explicit pitfalls (erasure, initialization order, deadlocks, divergence), and a recap checklist you can use in code review.
Go at Scale is a hands-on guide for backend and platform engineers who already write Go and need their services to perform reliably under real traffic. It begins with the runtime: the G-M-P scheduler, escape analysis, size classes, the cost of allocation rate, and GC tuning with `GOGC` and `GOMEMLIMIT`. From there, it covers scheduler behavior and tail latency, channels and context cancellation, structured concurrency, and choosing between mutexes, atomics, `sync.Map`, and sharded maps.
The middle chapters move into service design: HTTP server configuration, Go 1.22+ routing, API boundaries, health checks, `database/sql` pool sizing, layered timeouts, bounded worker pools, gRPC, service discovery, retries, circuit breakers, and backpressure. It then shows how to instrument production systems with Prometheus, OpenTelemetry, runtime metrics, and structured logs.
The final chapters cover race detection, `testing/synctest`, benchmarks, fuzzing, k6 and vegeta load tests, profile-guided optimization, capacity planning, Kubernetes autoscaling, resilience patterns, and an end-to-end walkthrough that scales a service from one process to a containerized, autoscaled deployment.
Each chapter combines mechanisms, runnable code, profiling and measurement workflows, worked investigations, common pitfalls, exercises, and a recap checklist.
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
Learn more about writing on Leanpub
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.