Upgrade to Pro — share decks privately, control downloads, hide ads and more …

8 1-2 things about serverless

8 1-2 things about serverless

Presentation from GeekNight #5

Slobodan Stojanović

May 09, 2017
Tweet

More Decks by Slobodan Stojanović

Other Decks in Technology

Transcript

  1. I AM SLOBODAN STOJANOVIĆ CTO OF CLOUD HORIZON AND JS

    BELGRADE MEETUP ORGANIZER github.com/stojanovic twitter.com/slobodan_
  2. • WHAT IS SERVERLESS? • HOW DOES IT WORK? •

    WHY IS IT IMPORTANT? • MOST IMPORTANT SERVERLESS PLATFORMS? • PROGRAMMING LANGUAGES? • WHAT CAN TRIGGER SERVERLESS FUNCTION? • HOW DOES IT WORK WITH NODE.JS? • WHEN SHOULD I USE IT?
  3. Hello, from our physical server, again! Now it can be

    in the cloud, it doesn’t matter
  4. • TIMEOUT BETWEEN 1 AND 300 SECONDS • 128MB TO

    1.5GB OF MEMORY • 500MB OF NON-PERSISTENT STORAGE (/TMP) • DEFAULT CONCURRENT EXECUTION LIMIT: 1000
  5. • $0.20 PER 1 MILLION REQUESTS • FIRST MILLION REQUESTS

    / MONTH ARE FREE • $0.00001667 FOR EVERT GB-SECOND • FIRST 400.000 GB-SECONDS / MONTH ARE FREE
  6. • NODE.JS • PYTHON • JAVA • C# • SHELL

    SCRIPTS • ANY EXECUTABLE AWS LAMBDA
  7. • NODE.JS • C# • F# • PYHON • PHP

    • SHELL SCRIPTS • ANY EXECUTABLE AZURE FUNCTIONS
  8. API Gateway Amazon S3 DynamoDB Amazon Aurora Simple Notification Service

    Simple Email Service Amazon Cognito CloudWatch Kinesis Streams Kinesis Firehose AWS CloudFormation AWS CodeCommit Amazon Lex AWS Config AWS Snowball
  9. • GOOD START-UP PERFORMANCE • SMALL MODULES • GOOD PERFORMANCE

    WITH LOW MEMORY AND CPU • SINGLE THREAD • ASYNC • EASY TO LEARN
  10. 'use strict' const Api = require('claudia-api-builder') const api = new

    Api() const excuse = require('huh') api.get('/', () => { return excuse.get() }) module.exports = api api.js
  11. { "lambda": { "role": "geeknight-executor", "name": "geeknight", "region": "eu-central-1" },

    "api": { "id": "d1weoszyg7", "module": "api", "url": "https://d1weoszyg7.execute-api.eu-central-1.amazonaws.com/latest" } } result
  12. • REAL-TIME APPS WITH WEB SOCKETS • LOW-LATENCY APPS •

    WHEN YOU NEED CUSTOM SERVER CONFIG • WHEN YOU NEED COMPLIANCE • LONG RUNNING TASKS • COMPEX COMPUTING • WHEN YOU NEED TO PROVIDE SLA
  13. NOW