Wednesday 9 November 2016 | Category: Development Digital marketing Technology
This month I got the opportunity to look into this new area of computing when a client project required an innovative way to solve a difficult problem. Our client has an application that runs on dedicated equipment at each of its 500 retail stores around the country. Our brief was to take usage metrics from this application and upload them to a management and KPI portal which was hosted in the Amazon Web Services (AWS) cloud. Rather than run a VPS to host a rudimentary queue system we looked at a S3 and Lambda combo solution.
Our solution was to upload a data file to S3 and then let Lambda automatically kick off a small script to parse the data file and insert it into the correct location in the database tier.
This design was ingenious for two very important reasons, namely it is very cheap to run and manage. There’s no need for a virtual server infrastructure and all the associated gubbins such as load balancing, OS updates or security patches. All of this stuff is managed by Amazon. Lambda allows us to deploy a very simple application and for our client to run in a safe and very cost effective way…it only costs around $0.00000023 every time the application is run!
Well, let’s get one thing straight, despite the name, it does not actually involve running code without servers. This is a code execution model in which the cloud provider fully manages starting and stopping virtual machines as necessary to serve Lambda requests. The service is then billed for by the 100ms of CPU time used. Gone are the costs of running an virtual server infrastructure!
AWS Lambda was the first service of this type on the market, however this year Google launched Cloud Functions and later this year Microsoft will release Azure Functions. These are very similar services and will extend this functionality to their cloud stacks. In addition, Iron.io have launched an On-Premises solution too. Regardless of your provider, I see the benefits as:
Just like the cloud computing revolution a few years ago, the serverless design approach has found its early adopters with startups. The number one reason is affordability, another is scalability, and a third is not having to spend time building your infrastructure. As data traffic continues to grow, expect to see serverless become a standard approach. I have no doubt in my mind, the serverless model is poised to become a staple of the software development space.
© Koios Technology Limited. Registered in England and Wales No. 11284873