WebexCommunity / webex-node-bot-framework

A framework for creating Webex Teams bots using node and express
MIT License
59 stars 49 forks source link

Deploy on aws lambda #99

Closed prasad-1210 closed 1 year ago

prasad-1210 commented 1 year ago

Hello Community,

is it possible to run bot server on serverless infrastructure like AWS Lambda / Azure Function ?

jpjpjp commented 1 year ago

Hi @prasad-1210, no it isn't. The framework object is maintained in memory and consequently isn't a good fit for lambda. You might want to look at https://github.com/valgaze/speedybot-serverless-experiment. I'm sure @valgaze would be happy to discuss this with you in the "Webex Node Bot Framework" space on Webex

valgaze commented 1 year ago

@prasad-1210 See here for an implementation: https://github.com/valgaze/speedybot-mini/

Examples here for Lambda/worker/edge/server/etc

The infrastructure ultimately doesn't matter, follow the example/patterns: https://github.com/valgaze/speedybot-mini/tree/deploy/examples#examples

I'm an easy person to find-- if any trouble hit me up