Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

"Node.js and Serverless" Viacheslav Panevskyi

244 views

Published on

The term Serverless may seem rather incomprehensible, but we will try to figure out why this approach has appeared and also discuss its use cases. Consider the use of Node.js in Serverless and its advantages and disadvantages. I also propose to discuss the Serverless approach in the context of its application for microservice architecture.

Published in: Software
  • Be the first to comment

  • Be the first to like this

"Node.js and Serverless" Viacheslav Panevskyi

  1. 1. SERVERLESS NODE.JS AND
  2. 2. Viacheslav Panevskyi Node.js Tech lead at Yalantis
 10 years of production experience Area of interests: ‣ software architectures / engineering ‣ travelling ‣ psychology AGENDA ABOUT ME
  3. 3. AGENDA GOALS ▸ What is Serverless and FaaS ? ▸ What are pros and cons of that approach? ▸ When do we have to choose Serverless? ▸ NodeJS use cases?
  4. 4. WHAT IS SERVERLESS? SOFTWARE SYSTEM EVOLUTION
  5. 5. WHAT IS SERVERLESS? ARCHITECTURE / TECHNOLOGY
  6. 6. WHAT IS SERVERLESS? FUNCTION-AS-A-SERVICE
  7. 7. WHAT IF?
  8. 8. WHAT IS SERVERLESS?
  9. 9. LAMBDA FUNCTION
  10. 10. COMMON LAMBDA USE CASES
  11. 11. SERVERLESS INCLUDES DIFFERENT CATEGORIES OF SERVICES
  12. 12. ENTERPRISE INTEGRATION PATTERNS
  13. 13. SERVERLESS APPLICATION
  14. 14. SERVERLESS FRAMEWORK OVERVIEW SERVERLESS CLI COMMANDS
  15. 15. SERVERLESS OVERVIEW ANATOMY OF LAMBDA FUNCTION
  16. 16. SERVERLESS EXAMPLE SERVERLESS CONFIGURATION
  17. 17. SERVERLESS EXAMPLE CONVERTING AN EXISTING EXPRESS APPLICATION
  18. 18. SERVERLESS OVERVIEW SERVERLESS PROVIDERS
  19. 19. SERVERLESS PROS AND CONS PROS OF SERVERLESS COMPUTING ▸ Cheaper than the traditional cloud ▸ Scalable & HA - Amazon, Microsoft and Google are better at scaling than anything you can hire ▸ Management of infrastructure - Buying and configuring servers is costly in terms of initial investment and specialized staff required ▸ Easy deployment - developers don’t have to wait for OPS, DBA, etc, no need to worry about Linux, Docker updates ▸ Ability to focus on user experience and business logic
  20. 20. SERVERLESS PROS AND CONS CONS OF SERVERLESS COMPUTING ▸ Vendor lock-in ▸ Learning curve ▸ Unsuitable for long term tasks (API Gateway has a timeout of 30 seconds, and Lambda has a maximum execution time of 5 minutes) ▸ For apps that may not see traffic for several minutes at a time, you could see cold starts ▸ Cannot use native libraries (aka Addons) unless you package your app on an EC2 machine running Amazon Linux
  21. 21. LAMBDA LIMITATION COLD STARTS ▸ What is a Cold Start? ▸ When does a Cold Start occur?
  22. 22. SERVERLESS ARCHITECTURE LEVEL OF COMPLEXITY
  23. 23. BEST PRACTICE ADVANCED LOGGING
  24. 24. BEST PRACTICE SMART RESOURCE ALLOCATION
  25. 25. SERVERLESS USAGE IN PRODUCTION CASE STUDIES
  26. 26. SERVERLESS OVERVIEW
  27. 27. SERVERLESS ARCHITECTURE MICROSERVICES AND SERVERLESS
  28. 28. SERVERLESS ARCHITECTURE LAMDAS AS MICRO-SERVICES ▸ Events are first-class citizens ▸ Every lambda scales independently ▸ Agility (develop feature quick and in an isolated fashion) ▸ Language-agnostic Classic micro-services concerns: ▸ Granularity (how to separate features? BDD? Bounded context?) ▸ Orchestration (dependencies between lambdas, service discovery)
  29. 29. BEST PRACTICE THE 12 FACTOR PRINCIPLES
  30. 30. BEST PRACTICE THE 12 FACTOR PRINCIPLES AND SERVERLESS
  31. 31. BEST PRACTICE
  32. 32. USEFUL LINKS BOOKS https://martinfowler.com/articles/serverless.html https://serverless.com/ https://aws.amazon.com/ru/lambda/ https://aws.amazon.com/ru/serverless/

×