Do post response validation of a Bottle.py request

31 Views Asked by At

I have a Bottle.py server that, after it returns a response must do a PostgreSQL database call(s) to validate/update the data. My thinking was to do a Celery or RQ task queue but I can't find if Celery is supported or an example of integrating the two.

How would you, after sending a response back to the application, run one to three database commands to validate the data?

Thanks John

1

There are 1 best solutions below

0
RU-D On

Please look into brokers for Celery. Additionally, Flask is quite similar to Bottle.

You can try these:

Celery with PostgreSQL

Tutorial with steps

Flask & Celery