Django REST API with Celery & Redis — Performance Optimization

Python
Job 12 of 13
Backend service built with Django REST Framework demonstrating real-world performance optimization techniques.

Key features:
— Subscription system: Client → Subscription → Service + Plan with automatic price recalculation
— Async background tasks via Celery + Redis (price updates, cache invalidation)
— Race condition prevention using select_for_update + transaction.atomic
— Database-level calculations with Django ORM F-expressions
— Query caching with django-cachalot and Redis
— Task deduplication via celery-singleton
— Multi-worker setup with Docker Compose (2 Celery workers + Flower monitoring)
— Split settings for dev/prod environments
— Composite DB indexes for query optimization

#django #python #celery #redis #postgresql #docker #restapi #backend #optimization


Gitlab:https://gitlab.com/trufinura037/optimise_django