I want to develop a Discord bot and I’m thinking about using AWS Lambda as the hosting solution. I’m not sure if this is actually feasible since I haven’t found many examples online of people doing this successfully.
My main concern is that Lambda functions only run when triggered and shut down afterward. Discord bots usually need to stay connected to receive messages and events constantly. How would this work with Lambda’s serverless model?
Has anyone managed to build a working Discord bot using AWS Lambda? What are the challenges I should expect? Are there specific Discord features that won’t work well with this setup?
I’m also curious about costs and performance compared to running a bot on a regular server or EC2 instance. Any advice would be helpful.