API Design FastAPI Python Software Architecture

Your FastAPI Middleware May Never See the Whole Response

A FastAPI middleware can return a response before a streaming response has finished sending its body. That is the shorthand behind this headline: the middleware can inspect the response object, yet still not have seen every byte the client will receive. To understand why, think of middleware as a wrapper around an ASGI application, not […]

Python Software Architecture

FastCRUD for FastAPI: Less Repetitive CRUD, Not Less Architecture

Quick summary Automate predictable CRUD: FastCRUD reduces repeated endpoint and data-access wiring. Expose relationships deliberately: control fields and response sizes. Keep business rules explicit: permissions, tenant boundaries and transactions remain design choices. Use custom endpoints when needed: complex domain workflows may need a service layer. One FastAPI tool I’ve found genuinely useful lately is FastCRUD. […]

Subscribe to Our Newsletter

We don’t spam! Read our privacy policy for more info.