3 ms·
I'm new to serverless, can someone clear up two things for me? 1. Can I run a standard Rails or Django app on "serverless"? 2. If I'm running on Heroku and do
by marcell 9y ago
I'm new to serverless, can someone clear up two things for me?
1. Can I run a standard Rails or Django app on "serverless"?
2. If I'm running on Heroku and don't directly manage servers, does that count as "serverless"?
- pronoiac 9y agoAnother name for serverless is function as a service, which might help clarify. No to both of your questions.
- tmnvix 9y agoZappa[1] allows you to do this (for python WSGI apps - I'm not sure if there is a similar option for hosting a Rails app serverlessly). I've found it very straight-forward to use for my Django app. I also like that if I choose to, I can ditch Zappa and host my app elsewhere (such as on Heroku) without really changing my app's code. [1] https://www.zappa.io/ https://www.zappa.io/
- pronoiac 9y agoHuh, I'd thought Lambda covered smaller components than those asked. TIL.
- moduspwnens14 9y agoYou can run Python WSGI apps (including Django) using Zappa [1] with a serverless infrastructure. Do you tell Heroku how many servers you need and how big they should be? Are you in charge of making sure you have the right number, or that the triggers for scaling up / down are working? If so, it is not serverless. [1] https://github.com/Miserlou/Zappa https://github.com/Miserlou/Zappa
- dominotw 9y agoIts not about 'directly manage servers' i think. You still have a conceptual view of a single server(rails server) that is serving your requests. In serverless you have bunch of servers that are serving requests for all apps that are deployed to them. Your specific app is not pinned to a conceptual server.
- k__ 9y agoIf you answer 2. with "yes" then 1. is probably "yes" too. PaaS is "serverless" but currently, people think more of FaaS when using the term. I think FaaS is more flexible than PaaS, especially when it comes to pricing and scaling.