4 ms·
People still think serverless is a good idea? There must be a certain threshold of horror story blog posts necessary to kick bad patterns.
by peterwwillis 8y ago
People still think serverless is a good idea? There must be a certain threshold of horror story blog posts necessary to kick bad patterns.
- westoque 8y agoYes. I believe "serverless" still has it's use cases. It's really good for small services and abstracting away some logic. It's really good for basic query and render (html/json) type apps. If you're doing more, then I suggest you just build more services that are specific to it's task and then let them talk to each other through RPC or similar.
- sidmitra 8y agoDepends on your use case. Certain parts of the app fit the bill really well. Just yesterday i put the 'dnspython' module behind a google cloud function and all it took was 5 minutes and i had a REST interface to query MX records. It's great for small little use cases like that. Another use case might be a simple webhook, where you're receiving pings from an external service and all the serverless function does is save it to a DB and maybe trigger another task for it. In cases like this you can skip a lot of the devops boilerplate and reduce it a single file containing your function and perhaps a requirements.txt(or whatever manages your dependencies)
- peterwwillis 8y agoIt would also be really simple to sftp a single application to a /cgi-bin/ directory on a shared web host. You don't need to know anything except STDIN and STDOUT, and none of that CI/CD or VCS boilerplate to worry about. Instant web applications. It'd probably be much simpler than using Lambda. I don't have anything against FaaS as a concept, but it almost always leads to crappy operation. The simplest examples of it working are crowded out by the attempts that ended up redesigned as normal applications.
- justasitsounds 8y agoGenuinely interested to hear/read these use cases. I'm using a serverless stack at the moment (AWS Api GW + Lambda), and after the initial headaches of wrestling with Cloudformation it's been relatively simple and performant
- skrebbel 8y agoCare to share? I haven't seen a single such blog post and would like to learn. (never did much serverless myself but could see us use it in the future)
- mark242 8y agoYes. I will gladly pay (Amazon|Google|Microsoft|Cloudflare|Zeit) to manage software deployment infrastructure for me, allowing my teams to concentrate on writing business logic. As with any other concept, it has a learning curve, but once you're comfortable with the concepts, your development will speed up, no question about it.
- vbezhenar 8y agoIs there any solutions for Intranet websites without Internet access?
- spockz 8y agohttps://triggermesh.com/ https://triggermesh.com/ Or https://openwhisk.apache.org/ https://openwhisk.apache.org/
- lapnitnelav 8y agoOpenFaas? https://www.openfaas.com/ https://www.openfaas.com/
- quickthrower2 8y agoIf "serverless" is referring to AWS Lambda, Azure Functions, etc. then cost and scalability make it a great idea for some applications. If load varies by time, and there are surges and troughs, then running servers can cost more and potentially be less responsive to changing demand. Its a nice way to take load off a web server.
- jjeaff 8y agoI feel like the use case is much smaller than the number of people preaching it warrants though. You really have to have extremely unpredictable and spikey needs as well as need the processing immediately. Because if the traffic is predictable, you can schedule spot instances for much cheaper and same for if the data doesn't have to be processed immediately. To me, the best use cases are very infrequent, spikey, brief needs. I haven't seen a lot of examples that meet that.
- quickthrower2 8y agoI agree. Where I saw it used, I'd say 99% of the application logic was in the web server, 1% in functions. The 1% in functions was for processing large PDF files where users were sitting their looking at a progress bar waiting for the file to be processed in real time. Another use case might be for something that is very low load, and say you have a lot of these services you may not want a VM for each one. However Docker provides a nicer solution for that: Get a VM (reserve if required) and run some kind of Docker host/orchestration on it, and run all your little services from there.
- simplify 8y agoLots of replies saying it "depends on your use case", but zeit's departure from v1 to v2 clearly shows they think serverless fits most use cases.