The Things Network - End to End Serverless Applications

The Things Network - End to End Serverless Applications

In this talk, I presented a workable architecture for designing your Lorawan application in a serverless matter.

This architecture does not involve any servers, and uses AWS Lambda functions to get things done. It is connected to The Things Network using the HTTP integration

D818fa99a5fae8aae7102277734e6fe7?s=128

Sander van de Graaf

February 01, 2018
Tweet

Transcript

  1. 2.

    SANDER VAN DE GRAAF. Cloud Solutions Architect / Consultant 15+

    years large scale applications 5+ years AWS experience http://twitter.com/svdgraaf http://linkedin.com/in/svdgraaf http://svdgraaf.nl mail@svdgraaf.nl
  2. 3.
  3. 6.

    PERSPECTIVE. •VM's •Hardware abstraction •Unit of scale: machines •Containers •OS

    abstraction •Unit of scale: application WHAT IS SERVERLESS?
  4. 7.

    PERSPECTIVE. •VM's •Hardware abstraction •Unit of scale: machines •Containers •OS

    abstraction •Unit of scale: application •Serverless •Runtime abstraction •Unit of scale: functions WHAT IS SERVERLESS?
  5. 8.

    PERSPECTIVE. •VM's "I want to configure machines, storage, networking and

    my OS" •Containers "I want to run servers, configure applications and control scaling" •Serverless "Run my code when it's needed" WHAT IS SERVERLESS?
  6. 10.

    WHAT IS SERVERLESS? "An application running on 3rd party services

    (BAAS) and/or using serverless computing (FAAS)" - Martin Fowler WHAT IS SERVERLESS?
  7. 11.

    WHAT IS SERVERLESS? "An application running on 3rd party services

    (BAAS) and/or using serverless computing (FAAS)" - Martin Fowler WHAT IS SERVERLESS?
  8. 12.

    BAAS/FAAS. WHAT IS SERVERLESS? •BAAS: Backend As A Service -

    Databases: Parse/Firebase/etc - Authentication: Auth0, AWS Cognito - etc... •FAAS: Functions As A Service
  9. 18.

    RUNTIMES. •C# .net core 1.0/2.0 •Go 1.x •Java 8 •NodeJS

    4.3, 6.10 •Python 2.7, 3.6 WHY SERVERLESS?
  10. 19.

    EVENT BASED. • API Gateway • AWS IoT • Alexa

    Skills Kit • Alexa Smart Home • CloudWatch Events • CloudWatch Logs • CodeCommit • Cognito Sync Trigger • DynamoDB • Kinesis • S3 • SNS WHY SERVERLESS?
  11. 22.

    SCALABLE BY DEFAULT. Seconds WHY SERVERLESS? Provisioned Servers Requests /

    second 0 100 200 300 400 0 10 20 30 40 50 60 70 80 90 100 110 120 130 Requests
  12. 23.

    SCALABLE BY DEFAULT. Seconds WHY SERVERLESS? Provisioned Servers Requests /

    second 0 100 200 300 400 0 10 20 30 40 50 60 70 80 90 100 110 120 Requests 130
  13. 26.

    COSTS. Pay per usage VM's: per minute Lambda: Per 100ms

    + per request $0.000000208 / 100ms + $0.0000002 / request
  14. 29.
  15. 35.
  16. 37.
  17. 42.
  18. 44.
  19. 47.

    QUESTIONS? Cloud Solutions Architect / Consultant 15+ years large scale

    applications 5+ years AWS experience http://twitter.com/svdgraaf http://linkedin.com/in/svdgraaf http://svdgraaf.nl mail@svdgraaf.nl SANDER VAN DE GRAAF.