Building Production APIs with Python
Lingua: inglese
Editore: Independently Published, 2026
- Brossura
- Nuovo

Da: PBShop.store US, Wood Dale, IL, U.S.A.PBShop.store US
Venditore AbeBooks dal 7 aprile 2005
Condizione: Nuovo
EUR 27,03
Quantità: Più di 20 disponibili
Aggiungi al carrelloDescrizione dell’articolo da parte del venditore
Codice articolo L2-9798195071813
- Titolo
- Building Production APIs with Python
- Autore
- Malte Eisenberg
- Editore
- Independently Published
- Anno di pubblicazione
- 2026
- Condizione
- New
- Rilegatura
- PAP
- Lingua
- inglese
- ISBN 13
- 9798195071813
- Peso dell'articolo
- 209 grammi
Most FastAPI tutorials end where production begins.
There's a gap — sometimes a chasm — between an API that works on a developer's laptop and an API that works at three in the morning under a load spike with one of the database replicas down. Most tutorials live on one side of that gap. This book lives on the other.
FastAPI makes it pleasant to write the laptop version of an API: type hints become validation, docstrings become documentation, async functions become a real concurrency story. The framework removes so much friction that you can ship a working endpoint in twenty minutes. That is its great strength and, paradoxically, its trap — because shipping the laptop version to production is how every team rediscovers the same handful of issues: secrets in source files, an authentication flow that works only for the happy path, a cache invalidation strategy that turns into a herd of database queries the moment Redis blinks, a test suite that can't be run in CI, a deployment story that consists of one engineer who knows how to do it.
This book attacks those failure modes head-on.
Across twelve chapters and a single continuing project — the Articles & Users API — you build a service that has every capability production demands and none of the demo-code shortcuts that fail under real load. The project starts in Chapter 2 as a single file with two endpoints. By Chapter 12 it is a containerized service with JWT authentication, refresh-token rotation, optional MFA, per-user rate limiting, a two-tier cache, two API versions running in parallel, OpenAPI documentation, a passing test suite, an observability stack, and Kubernetes manifests.
What you'll build:
- A typed, async-native API using FastAPI 0.115+ and Pydantic v2
- JWT authentication with refresh-token rotation and reuse detection
- Multi-factor auth (TOTP) with hashed backup codes
- Role-based access control and API key authentication
- Redis-backed rate limiting that actually pipelines correctly
- Cache-aside with stampede protection — the failure mode no tutorial mentions
- Two API versions running side-by-side with a real deprecation lifecycle
- OpenAPI documentation consumers can actually use
- A test suite using modern httpx with ASGITransport
- Performance work backed by profiling, not guesswork
- A production deployment with Docker, Kubernetes, OpenTelemetry, and graceful shutdown
This book is for you if:
- You're comfortable with Python and HTTP basics, but want to ship something beyond a tutorial demo
- You've built an API that worked in development and broke in production — and want the patterns that prevent that
- You're tired of fragmented blog posts that show pieces but never the integrated whole
- You want one continuous project that grows from a single endpoint into a deployable service
What this book is not:
An exhaustive FastAPI reference, a Python tutorial, or a microservices manifesto. It's an opinionated field guide that names tradeoffs, picks sides, and ends every chapter pointing at what comes next.
Stack (pinned in Appendix C):
Python 3.12, FastAPI 0.115+, Pydantic 2.9+, SQLAlchemy 2.0 async, PyJWT, Redis 5+, httpx 0.27+, pytest 8+. Every example was tested against this exact stack.
The companion code is free.
Download the complete Articles & Users API repository — including Dockerfile, docker-compose stack, Kubernetes manifests, and a passing test suite — at the link printed on the About page.
Take what is useful, argue with what is not, and ship the thing.
"Riassunto" può appartenere a un’altra edizione di questo titolo.
PBShop.store US
Wood Dale, IL, U.S.A.
Venditore AbeBooks dal 7 aprile 2005
Tariffe di spedizione nazionale per U.S.A.
| Articolo | Da 7 a 14 giorni lavorativi | Da 7 a 14 giorni lavorativi |
|---|---|---|
| Primo articolo | EUR 0,00 | EUR 0,00 |
Metodi di pagamento
Descrizione dello Store
Specializzazione
Hardbacks, PaperbacksInformazioni sull’azienda del venditore
Pbshop.co.uk Ltd
Unit 22 Horcott Industrial Estate, Horcott Road
Fairford, Regno Unito GL7 4BX
Condizioni di vendita
Returns Policy
We ask all customers to contact us for authorisation should they wish to return their order. Orders returned without authorisation may not be credited.
If you wish to return, please contact us within 14 days of receiving your order to obtain authorisation.
Returns requested beyond this time will not be authorised.
Our team will provide full instructions on how to return your order and once received our returns department will process your refund.
Please note the cost to return any unwanted order to us is borne by the buyer.
Should your order arrive damaged, not as advertised or faulty, we must be advised of this within 14 days of delivery. Please contact us so we can find the best solution for you.
Our Customer Care Team can be contacted via emailing paperback-us@paperbackshop.co.uk, or by calling our UK Office on +441285 712 917. We are available 9:00am till 5:30pm GMT weekdays and 9:00am till 1:00pm GMT on Saturdays.
Diritto di recesso
Se sei un consumatore puoi recedere dal contratto in conformità con quanto segue. Per Consumatore si intende qualsiasi persona fisica che agisce per scopi estranei alla propria attività commerciale, imprenditoriale, artigianale o professionale.
Informazioni sul diritto di recesso
Diritto legale di recesso
Hai il diritto di recedere dal presente contratto entro 14 giorni senza fornire alcuna motivazione.
Il periodo di recesso scade dopo 14 giorni dal giorno in cui tu o una terza parte, diversa dal vettore e da te indicata, acquisisce il possesso fisico dell'ultimo bene o dell'ultimo lotto o pezzo.
Per esercitare il diritto di recesso, compila e invia elettronicamente una dichiarazione esplicita sul nostro sito Web, alla voce “I miei acquisti” nella sezione “Mio account”. Ti comunicheremo senza indugio una conferma di ricezione di tale recesso su un supporto durevole (ad es. via e-mail).
Per rispettare il termine di recesso, è sufficiente inviare la comunicazione relativa all'esercizio del diritto di recesso prima della scadenza del periodo di recesso stesso.
Effetti del recesso
In caso di recesso dal presente contratto, ti rimborseremo tutti i pagamenti ricevuti, compresi i costi di spedizione (ad eccezione dei costi supplementari derivanti dalla tua eventuale scelta di un tipo di spedizione diverso dal tipo meno costoso di consegna standard da noi offerto).
Potremo effettuare una detrazione dal rimborso per la perdita di valore dei beni forniti, qualora tale perdita sia il risultato di una manipolazione non necessaria da parte tua.
Eseguiremo il rimborso senza indebito ritardo e non oltre 14 giorni dal giorno in cui saremo informati della tua decisione di recedere dal presente contratto.
Il rimborso sarà effettuato utilizzando lo stesso mezzo di pagamento da te usato per la transazione iniziale, salvo che tu non abbia espressamente concordato altrimenti; in ogni caso, non dovrai sostenere alcun costo quale conseguenza di tale rimborso.
Possiamo trattenere il rimborso finché non avremo ricevuto i beni oppure finché non avrai fornito la prova di averli rispediti, a seconda di quale condizione si verifichi per prima.
Dovrai rispedire i beni o consegnarli a PBShop.store US, Springfield Gardens, New York, U.S.A., +44 1285 712917, senza indebito ritardo e, in ogni caso, entro 14 giorni dal giorno in cui ci hai comunicato la tua volontà di recedere dal presente contratto. Il termine è rispettato se rispedisci i beni prima della scadenza del periodo di 14 giorni. I costi diretti della restituzione dei beni saranno a tuo carico. Sei responsabile solo della diminuzione del valore dei beni risultante da una manipolazione diversa da quella necessaria per stabilire la natura, le caratteristiche e il funzionamento dei beni stessi.
Eccezioni al diritto di recesso
Il diritto di recesso non si applica a:
- La fornitura di giornali, periodici o riviste ad eccezione dei contratti di abbonamento; e
- La fornitura di contenuto digitale non fornito su un supporto materiale (ad es. su un CD o DVD), se al momento dell'invio dell'ordine hai accettato l'inizio dell'esecuzione e hai riconosciuto che non avresti potuto recedere una volta iniziata l'esecuzione.
Condizioni di spedizione
Books are shipped from our US or UK warehouses. Delivery estimates allow for delivery from either location.