Salesforce Summaries – Introduction to Serverless Applications

Share this article...

SalesforceSummaries: a series delivering key insights from Salesforce YouTube videos, to save you time as you keep up to date with the latest technological changes within the Salesforce ecosystem.


Serverless architecture is a new and emerging technology paradigm that is incredibly powerful and will help to democratize cloud computing.

Details: ‘Introduction to Serverless Applications

PresenterAusten Collins

Details: 65 minutes

Key Terms: Serverless, micro-services, cloud computing

[email protected] — The agenda of this presentation is:

[email protected] — Getting stuff done is hard. Reducing the time it takes to get stuff done is incredibly valuable.

[email protected] — The invention of the cloud was a game changer. ‘Why should you own and maintain infrastructure? Why not just rent the virtual capacity instead? Why not interact with our services programmatically via our APIs?’. This was a huge innovation.

However, there is still a lot of scaling problems to be solved, like when Black Friday happens and millions view your site at once. Or when you have AWS bill and you’re not even using half of its features.

[email protected] — Serverless is a chapter in cloud history. It’s an evolution from virtual infrastructure. Serverless answers the question ‘how can we offer the infrastructure without the cost and current issues’.

[email protected] — Today is the golden age of delivering value at a low cost.

[email protected] — Heroku had the great concept of the ‘dyno’ when scaling. You can scale up as much as you require with additional cloud computing credits (dynos). But serverless is evolving that further asking ‘why do you even need to scale up or down in the first place? Let’s remove that constraint. You shouldn’t have to think about scaling — you should just be able to think about solving problems’.

[email protected] — The big drawer of serverless is ‘pay per use’. If you put your code on ‘serverless compute’, then you only pay when your code runs. If your code runs for 1 ms, then your cost is 0.000001 cent.

[email protected] — The AWS Lambda started the ‘serverless’ trend in 2014.

You can write a function and upload it to AWS Lambda. The function will do just one thing, such as send a text message to a set of users, save a user login to a database etc. You can use a handful of programming languages to achieve this — Python, Go, JavaScript, Java etc. You don’t need to worry about administration because you will only be charged when the code is run and when it does run, it’ll cost fractions of a cent.

[email protected] — Also, the code you upload can be event driven. You can have it run automatically whenever certain infrastructure in your AWS stack happens. So half the value comes from how well it integrates with other technologies in the AWS stack and also the other half is in how efficient the code runs.

[email protected] — Once the success of Lambda took off, AWS started to refactor and produce a lot of other services that have serverless qualities. These are the most efficient building blocks that you can leverage to build applications.

[email protected] — These serverless services are like superpowers. You can leverage services to convert text to audio, real time processing of video, perform facial recognition etc. This is the golden age of the developer.

[email protected] — These are the types of serverless services which AWS customers are building.

[email protected] — Chatbots are very popular. Again, you won’t be charged for your chatbots until they are being used.

[email protected] — Because this technology is so powerful, it attracts all types of use cases. It is liberating a lot of creativity that was previously suppressed due to overhead.

[email protected] — One of the most compelling stories that demonstrate the power of serverless technology can be found here. The Australian government in 2016 contracted IBM to build an online census survey that would scale. The cost for this was just over $9 million. The Australian government spent about 5x that amount on marketing urging Australians to complete the census online during a particular time period. Unfortunately, the survey was not serverless and so because the demand was so high during the certain time period, the website crashed. Relatively little data was successfully captured and a huge fallout occurred.

A few days after the calamity, two university students built a replica using AWS serverless technology in less than 72 hours for less than $200 that scaled flawlessly and was able to handle even more than what the estimated demand requirement was for the census survey. In fact, they load tested the survey with 4 million page views per hour and 10,000 submissions per second. Although no data verification, audit trail or full logging functionality was implemented (which would reduce performance), it does clearly demonstrates the power of serverless technology — it makes the power of the cloud accessible to everyone.

[email protected] — It is tricky to leverage all the different cloud technologies into a serverless application.

[email protected] — In the AWS dashboard, you are presented with numerous products and it can be overwhelming. This is something that Heroku has done so well on — they answered the question ‘there has got to be an easier way to do this stuff’.

[email protected] — The serverless framework is one of the most popular open source projects today and is an effort to make AWS more accessible.

[email protected] —The serverless framework solves the following:

[email protected] — Serverless is vendor agnostic. You can use AWS or Google or Azure etc. Different vendors may have different specialities. For example, Google is very strong in machine learning.

[email protected] — The Serverless framework is a CLI written in node.js. The goal is to help you to deploy something as fast as possible without having to look at the AWS dashboard at any point.

[email protected] — Serverless is a story of functions and events. It is an aggregation of plugins. This configuration file will setup a backend of your application.

[email protected] — Serverless comes with a number of different functions:

[email protected] — The serverless framework comes with all types of languages:

[email protected] — There are hundreds of serverless plugins that have been created courtesy of the fantastic open source community.

[email protected] — There is a huge demand for moving to serverless architecture. Companies like Nike and Coca-Cola already have adopted serverless architecture.

[email protected] — This architecture is micro-service architecture. ‘Let’s try to separate every single piece of logic in our application so that there will be no risk to the system overall if a swathe of changes are made’.

Add Comment