Blog

Kostja Palović

Celery Chord and Groups: Complete Guide with Error Handling

Master Celery chord and group for parallel Django tasks. Covers chain vs chord, error callbacks with link_error, chord_unlock behavior, and working code examples.

Read more →
Kostja Palović

Django CloudWatch Logs

Send Django application logs to Centralized CloudWatch. This enables you to have a better view of logs, search and filter logs. Every container gets its own log stream.

Read more →
Kostja Palović

Celery shared_task

shared_task is a decorator that makes a function – a celery task. Its primary purpose is for library developers because it doesn't require Celery App instance, but it is convenient for everyone. See params and examples of how to use it.

Read more →
Kostja Palović

Celery Flower: Monitoring, Setup, and Production Deployment

Complete guide to Celery Flower monitoring tool: run it with Docker Compose, add basic auth, configure nginx reverse proxy, integrate Prometheus metrics, and deploy to production.

Read more →
Kostja Palović

Django Bulk Update Model Instances

There are two ways to bulk update your Django model instances depending on the requirements. One is to save multiple objects using .bulk_update() and another is to use QuerySet.update() method.

Read more →
Kostja Palović

Bulk Create model instances in Django

If you have a lot of objects to save in database you may want to create them using .bulk_create method to make it faster. This will ignore pre and post save signals.

Read more →
Kostja Palović

Django Celery Multiple Queues, when and how to use them

How to work with multiple queues in Celery, why you need it and how to set it up. Tutorial includes file processing and DNS lookups for domains of email addresses. Also, docker-compose.yml is covered for local development.

Read more →
Kostja Palović

Using Celery task to generate data for a view

Learn how to use the Celery task to generate data for a Django view that is taking too long to respond.

Read more →
Kostja Palović

Django Simple JWT Authentication with djangorestframework-simplejwt

Complete guide to JWT authentication in Django using djangorestframework-simplejwt. Covers token refresh, blacklisting, custom claims, logout, and all SIMPLE_JWT settings.

Read more →
Kostja Palović

Django REST Framework and DataTable example

How to use DataTable ServerSide with Django REST Framework. How to display and filter a large dataset using ServerSide mode and achieve great performance.

Read more →