Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of deploying on AWS Lambda functions? #49

Closed
jaanli opened this issue Apr 15, 2024 · 4 comments
Closed

Example of deploying on AWS Lambda functions? #49

jaanli opened this issue Apr 15, 2024 · 4 comments

Comments

@jaanli
Copy link
Contributor

jaanli commented Apr 15, 2024

Hi! I work with a therapist and they mentioned something like this would be very useful. Do you think it’s possible?

Really excited to try it out :)

@filipre
Copy link
Owner

filipre commented Apr 15, 2024

Hi @jaanli!
I'm not sure if AWS lambdas are the correct solution for your use case. Both the signal api server as well as the bot framework would need to run continuously 24/7. In contrast, AWS lambdas are nice for individual requests and varying traffic. If you want to stay on AWS, I'd recommend to use the cheapest EC2 instance or any other VM. On Google, Cloud Run should work for you though you may need some custom logic to handle sudden restarts of containers. If you don't care about the cloud provider at all, I can recommend Oracle Cloud giving you a quite powerful VM for free, see this article. Last but not least, I use a Raspberry Pi for my personal bot which didn't let me down so far. Let me know if you have more questions.

@jaanli
Copy link
Contributor Author

jaanli commented Apr 15, 2024

Ooh thanks so much @filipre ! Would you recommend a VPS solution then (hertzner, digital ocean droplets I've used in the past)? Or just a Raspberry Pi Orange 5 (pretty okay specs for this) plugged in 24/7 near my computer?

@filipre
Copy link
Owner

filipre commented Apr 15, 2024

Both a VPS or a Raspberry Pi is fine imo. At least I don't see a reason why one shouldn't work. With a VPS you don't have to worry about the hardware so that's probably a bit nicer and quicker to set up. What happens when you move stuff around in your room? Or when your router has connectivity issues? In my case, I connected the bot with some other things in my network so a VPS doesn't work.

@jaanli
Copy link
Contributor Author

jaanli commented Apr 15, 2024

Ended up going with Lightspeed (3 months free right now, for a 2GB RAM 60GB SSD box, which should be plenty for this; https://aws.amazon.com/lightsail/pricing/ :)

@filipre filipre closed this as completed Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants