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

Serverless - Lessons Learned

Niko Köbler
September 28, 2017

Serverless - Lessons Learned

Niko Köbler

September 28, 2017
Tweet

More Decks by Niko Köbler

Other Decks in Programming

Transcript

  1. ABOUT ME ▸ Freelance Consultant/Architect/Developer/Trainer @ www.n-k.de ▸ Technical Advisor

    for Software & Support Media Group ▸ Doing stuff with & without computers, writing Software, ~ 20 yrs ▸ Co-Lead of JUG DA (https://www.jug-da.de / @JUG_DA) ▸ Speaker at international Tech Conferences ▸ Author of „Serverless Computing in AWS Cloud“
 serverlessbuch.de ▸ Twitter: @dasniko
  2. SERVERLESS COMPUTE MANIFESTO ▸Functions are the unit of deployment and

    scaling. ▸No machines, VMs or containers visible in the programming model or elsewhere. ▸Permanent storage lives elsewhere. (Functions are stateless!) ▸Scales per request: User cannot over- or under-provision capacity. ▸Never pay for idle (no cold servers/containers or their costs). ▸Implicitly fault-tolerant because functions can run anywhere. ▸BYOC - Bring Your Own Code. ▸Metrics and logging are a universal Right.
  3. """ FUNCTION: 1 EXECUTION / HOUR 512 MB, 10 SEC.

    MONTHLY EXECUTION COUNT: 720 MONTHLY GB-SEC.: 3.600
  4. """ FUNCTION: 1 EXECUTION / HOUR 1536 MB, 2 SEC.

    MONTHLY EXECUTION COUNT: 720 MONTHLY GB-SEC.: 2.160
  5. """ FUNCTION: 1 EXECUTION / HOUR 1024 MB, 5 SEC.

    MONTHLY EXECUTION COUNT: 720 MONTHLY GB-SEC.: 3.600
  6. """ FUNCTION: 12 EXECUTIONS / HOUR 512 MB, 100 MS.

    MONTHLY EXECUTION COUNT: 8.640 MONTHLY GB-SEC.: 432
  7. AWS LIMITS KNOW THE LIMITS! (E.G. MAX CONCURRENT INVOCATIONS,
 PAYLOAD-SIZE,

    MEMORY-SETTINGS, ETC.) KNOW HOW TO INCREASE THE LIMITS!
  8. NETWORK & SECURITY VPC - VIRTUAL PRIVATE CLOUD Be careful!

    VPC requires Elastic Network Interfaces (ENIs). ENIs add some seconds(!!) to the cold start!
  9. DEVOPS SERVERLESS IS NOT NO-OPS! NO OPS COST != NO

    COST OF OWNERSHIP! YOU ARE STILL RESPONSIBLE FOR THE (END) RESULTS KEEP DEVOPS IN MIND!
  10. MIGRATION TO SERVERLESS ‣ IDENTIFY THE PROBLEM ‣ TRAIN THE

    EXISTING TEAM ‣ CREATE A PROOF-OF-CONCEPT TO VERIFY THE PROBLEM IS SOLVED ‣ OPTIMIZE THE SOLUTION TO TAKE ADVANTAGE OF THE CLOUD ‣ AUTOMATE YOUR CONTINUOUS INTEGRATION/CONTINUOUS DEPLOYMENT PIPELINE ‣ AUTOMATE YOUR TESTING
  11. MIGRATION TO SERVERLESS 30 QUESTIONS TO ASK A SERVERLESS FANBOY

    HTTP://WWW.IHEAVY.COM/2017/03/13/30-QUESTIONS-TO-ASK-A-SERVERLESS-FANBOY/
  12. THANK YOU. ANY QUESTIONS? Slides: bit.ly/sls-ll Niko Köbler | www.n-k.de

    | [email protected] | @dasniko SERVERLESS - BEST PRACTICES & LESSONS LEARNED