3 ms·
How do other users of Flask handle async calls to third party APIs? I use celery which works okay but it still feels quite clunky.
by procinct 8y ago
How do other users of Flask handle async calls to third party APIs? I use celery which works okay but it still feels quite clunky.
- oneweekwonder 8y agoBoth the solutions I use is mq and py based: mqttwarn[0] and celery. What feels clunky about celery? The third party broker? Bunch of "magic" code you feel can be simpler as a couple of pika modules? While I like pika it needs a bunch of boiler plate[1] where celery is just multi-broker batteries included solution... which might feel a bit clunky. I see a lot of zmq solutions in the wild. But I'm happy with my current setup. [0]: https://github.com/jpmens/mqttwarn https://github.com/jpmens/mqttwarn [1]: https://github.com/pika/pika/blob/master/examples/asynchronous_publisher_example.py https://github.com/pika/pika/blob/master/examples/asynchrono...