#Jonah Librach

1 messages · Page 1 of 1 (latest)

waxen starBOT
twin token
#

Hi 👋

That's very much up to your application architecture

bold talon
#

I know, how should I architect it :p

twin token
#

However, a good approach that will allow you to scale and perform multiple operations in response to webhook events, is to use a message/task queue or stream process

bold talon
#

I'm asking because I've never done something like that before

twin token
#

That way you can do time consuming tasks like writing to a database after you respond to the webhook

bold talon
#

message/task queue. I see

twin token
#

I built my own test integration with RabbitMQ and Celery

#

Works great for me

bold talon
#

Are those libraries for python/flask?

twin token
#

RabbitMQ is a general purpose task queue system, Celery is a Python based async task runner

#

But these are just suggestions. Flask is a very popular web application framework and I'm willing to bet there are many tutorials available on how to wire it up with task queues or stream processing (like Kafka)