Serverless
@karthikdivi
Few questions to understand the audience
1. How many of you are building serverless ?
2. How many of you are building micro services ?
3. How many of you are building Monolithic applications ?
4. How many of you are running your Monolithic applications on your own hardware ?
Monolithic applications on your own hardware
● All for one and one to fail
● Team collaboration problems
● Testing is pain
● Less frequent updates
● Scalability issues
Monolithic applications on cloud
● All for one and one to fail
● Team collaboration problems
● Testing is pain
● Less frequent updates
● Scalability issues
Micro services
Good
● More frequent rollouts
● No single point of failures
● Easy testing and deployments
● Polyglot
● New team members become productive quickly
Not so good
● Web servers, Dependencies, Frameworks
● Autoscaling not out of the box
● Capacity management, security
● Logging and monitoring
● Time to start
What is Serverless?
Functions that run in response to events,
auto-scale for you, and only charge you when
they run.
Ex: AWS Lambda, Google Cloud Functions
Advantages
● No provisioning
● No Administration
● Scalability out of the box (Scale up & Scale down)
● Logging, Monitoring, Security all out of the box
● High availability
● Zero time to start
● Cheap - Million requests costs less than 1$
- Focus on your code
Real world use cases
● Webapp backends
● Mobile app backends
● Image processing
● IOT data processing
● CRON Jobs
● Webhooks
- Almost any microservice
Example Code
function helloWorld(req, res){
res.send(“Hello World!”);
}
exports.helloWorld = helloWorld;
$ gcloud beta functions deploy helloWorld --trigger-http --stage-bucket karthikdivi-functions-bucket
Alexa Clone Demo
‘Amazon Alexa’ Clone, demo using Google cloud functions
Q&A
Use case discussions…..

Serverless

  • 1.
  • 2.
    Few questions tounderstand the audience 1. How many of you are building serverless ? 2. How many of you are building micro services ? 3. How many of you are building Monolithic applications ? 4. How many of you are running your Monolithic applications on your own hardware ?
  • 3.
    Monolithic applications onyour own hardware ● All for one and one to fail ● Team collaboration problems ● Testing is pain ● Less frequent updates ● Scalability issues
  • 4.
    Monolithic applications oncloud ● All for one and one to fail ● Team collaboration problems ● Testing is pain ● Less frequent updates ● Scalability issues
  • 5.
    Micro services Good ● Morefrequent rollouts ● No single point of failures ● Easy testing and deployments ● Polyglot ● New team members become productive quickly Not so good ● Web servers, Dependencies, Frameworks ● Autoscaling not out of the box ● Capacity management, security ● Logging and monitoring ● Time to start
  • 6.
    What is Serverless? Functionsthat run in response to events, auto-scale for you, and only charge you when they run. Ex: AWS Lambda, Google Cloud Functions
  • 7.
    Advantages ● No provisioning ●No Administration ● Scalability out of the box (Scale up & Scale down) ● Logging, Monitoring, Security all out of the box ● High availability ● Zero time to start ● Cheap - Million requests costs less than 1$ - Focus on your code
  • 8.
    Real world usecases ● Webapp backends ● Mobile app backends ● Image processing ● IOT data processing ● CRON Jobs ● Webhooks - Almost any microservice
  • 9.
    Example Code function helloWorld(req,res){ res.send(“Hello World!”); } exports.helloWorld = helloWorld; $ gcloud beta functions deploy helloWorld --trigger-http --stage-bucket karthikdivi-functions-bucket
  • 10.
    Alexa Clone Demo ‘AmazonAlexa’ Clone, demo using Google cloud functions
  • 11.