ZCore Blog
Architecture, decisions, and lessons from buildingZCore.
Thoughts on software architecture, FastAPI, Python, modular systems, and the engineering decisions behind ZCore.
Articles
4 articles
Engineering
The 'Schema Explosion' Trap in FastAPI: Dynamic Role-Based Field Pruning Without Model Duplication
How to eliminate dozens of redundant Pydantic DTOs and prevent data exposure using Context Variables and recursive serialization-level field pruning.
Read more→

Engineering
Why Generic CRUD Routers Break in FastAPI: Route Shadowing, Architecture Bypassing, and Pragmatic Fixes
How to automate repetitive REST endpoints without bypassing the Service layer, degrading OpenAPI schemas, or getting burned by Starlette route evaluation order.
Read more→

Engineering
The "Pass-Through" Service Trap in FastAPI: Why CRUD Service Layers Often Feel Like Useless Boilerplate
How to avoid writing hundreds of anemic forwarder methods while keeping business logic, lifecycle hooks, and transactions clean.
Read more→

Engineering
The Repository Pattern in FastAPI: Abstraction or Overengineering?
When wrapping an ORM makes sense, when it becomes an anti-pattern, and where we drew the boundary.
Read more→