Set up Celery to handle automatic synchronization between the PostgreSQL database and Typesense whenever a shop or item is created, updated, or deleted. This will decouple the indexing logic from request/response cycles and ensure real-time search accuracy.
Tasks:
Configure Celery with the backend (e.g., Redis as broker)
Create background tasks for syncing shop/item data to Typesense
Trigger sync tasks on DB insert/update/delete
Ensure retry mechanisms and error logging
Set up Celery to handle automatic synchronization between the PostgreSQL database and Typesense whenever a shop or item is created, updated, or deleted. This will decouple the indexing logic from request/response cycles and ensure real-time search accuracy.
Tasks:
Configure Celery with the backend (e.g., Redis as broker)
Create background tasks for syncing shop/item data to Typesense
Trigger sync tasks on DB insert/update/delete
Ensure retry mechanisms and error logging