Does anyone have any examples of a sensible way to...
# sst
j
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
If this is a pull based system it's not a great fit for a lambda
Your probably have to resort to a container
j
Thanks @thdxr can I still have that live in a stack and if so is there any examples I can checkout
t
Adding a container does make things more annoying since you have to deal with building images and shipping them to a registry
Depending on how fast you need the queue to be consumed you could have a lambda get invoked by sst.Cron
and have those dump into an SQS queue or process it inline