Join Slack
Powered by
Does anyone have any examples of a sensible way to...
# sst
j
jamlen
02/14/2022, 11:25 AM
Does anyone have any examples of a sensible way to set up an sst Function to consume an Azure service bus queue? I have these docs and example but wondering the best way to have a long running process that is consuming a queue
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-nodejs-how-to-use-queues#receive-messages-from-a-queue
t
thdxr
02/14/2022, 2:04 PM
If this is a pull based system it's not a great fit for a lambda
thdxr
02/14/2022, 2:05 PM
Your probably have to resort to a container
j
jamlen
02/15/2022, 8:37 AM
Thanks
@thdxr
can I still have that live in a stack and if so is there any examples I can checkout
t
thdxr
02/15/2022, 2:39 PM
Yes you can -
https://docs.aws.amazon.com/cdk/v2/guide/ecs_example.html
thdxr
02/15/2022, 2:40 PM
Adding a container does make things more annoying since you have to deal with building images and shipping them to a registry
thdxr
02/15/2022, 2:40 PM
Depending on how fast you need the queue to be consumed you could have a lambda get invoked by sst.Cron
thdxr
02/15/2022, 2:40 PM
and have those dump into an SQS queue or process it inline
Open in Slack
Previous
Next