Anzeige
Anzeige

Más contenido relacionado

Presentaciones para ti(20)

Similar a Serverless Logging with AWS Lambda and the Elastic Stack(20)

Anzeige

Serverless Logging with AWS Lambda and the Elastic Stack

  1. SERVERLESS LOGGING WITH ELK Edoardo Paolo Scalafiotti - Software Engineer @ Sainsbury’s
  2. About me Go, NodeJS SPAs, WebComponents Material Design Serverless Architecture Microservices Machine Learning FabLab, Meetups
  3. Agenda OVERVIEW WHY SERVERLESS? CHALLENGES USE CASES DEMO Q & A
  4. WHAT IS SERVERLESS?
  5. TL;DR FaaS is about running back end code without managing your own server systems or your own server applications
  6. applications that run in stateless compute containers that are event-triggered, ephemeral and fully managed by a 3rd party
  7. ● 2 overlapping areas: BaaS and PaaS ● run code without provisioning or managing servers ● horizontal scaling is completely automatic, elastic, and managed by the provider ● responds to triggers
  8. WHY SHOULD WE CARE?
  9. serverless is HOT!
  10. Typical servers in business and enterprise data centers deliver between 5 and 15 percent of their maximum computing output on average over the course of the year
  11. ● Reduced operational cost ● Good with irregular, high spike traffic that cannot be handled by auto-scaling ● Promotes best coding practises
  12. WHAT ARE THE CHALLENGES?
  13. TL;DR not for the faint-hearted... at the moment
  14. ● Ugly hacks for keeping the function alive ● Vendor lock-in ● Unit testing is ok, integration... another story ● Repetition of logic ● Concurrent limit ● Logging, Monitoring and Debugging
  15. USE CASES
  16. USE WISELY FaaS, containers and VMs are not enemies
  17. FAAS is seen as a better choice for event-driven apps with few event types per application component, while CONTAINERS are seen as a better choice for synchronous-request driven components with many entry points
  18. VM Containers Serverless Configure machines, storage, networking and OS Run servers, configure applications and control scaling Run my code when it’s needed
  19. Use cases: ● Real-time file processing (ingestion) ● Real-time stream processing (mkt. data) ● Extract, Transform, Load ● IoT Backends ● Mobile Backends ● RESTful APIs
  20. ● Open Source alternative: IBM’s OpenWhisk ● API Orchestration: serverless.com and claudia.js ● Multiple PL support: Apex ● Logging and monitoring: ELK
  21. LET’S GET TO THE CODE...
  22. THE MISSION ...is to monitor a set of Lambda-based functions that generates Game Of Thrones plot points
  23. DEMO
  24. github.com/edoardo849/lot

Hinweis der Redaktion

  1. This talk is divided in 2: Introduction on What is Serverless, Serverless logging with ELK, demo in NodeJS and GOlang
  2. To summerize, this talk is about why I think that ELK is a good solution - not the only one… - for monitoring logs and metrics for Serverless
  3. When we talk about serverless we are mainly talking about AWS’ Lambda, which is the more mature solution out there, released in 2014. Other vendors are coming with similar solutions like: Google Cloud Functions (Alpha) Azure Functions PL support: Lambda: Python, Java (slow) and NodeJS Google Cloud: NodeJS Azure: Javascript, C#, Python, PHP We’ll talk about Lambda
  4. No offline testing Concurrent limit is 100 functions, then queuing / throttling happens
  5. There is the perception that VMs, Containers and Serverless are equivalent alternatives Although they represent higher layers of abstraction VM abstracts the hardware Container the OS Serverless the language runtime They are suited for different use cases. This is about having more choices, not the next hot thing
Anzeige