Engineering
DRF Serializers Done Right: Validation, Nested Writes and Speed
Field options, the three layers of validation, writable nested serializers, and how to keep list responses fast.
Backend, APIs and databases.
5 posts in this category
Engineering
Field options, the three layers of validation, writable nested serializers, and how to keep list responses fast.
Engineering
Authentication, permissions and throttling are three separate layers in DRF. How to set up each one, with JWT and object-level permissions.
Engineering
Choosing between page number, limit/offset and cursor pagination, and adding filters, search and ordering without slowing the database down.
Engineering
Why a list endpoint that is fast with 10 rows crawls with 1,000, and the ORM tools that fix it for good.
Engineering
A practical pytest setup for DRF: fixtures, factories, permission tests, query counts and a CI job that runs against PostgreSQL.