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.

Introduction to Serverless Architecture

As presented at Software Architecture Bangalore Meetup #7:
https://www.meetup.com/SoftwareArchitectsBangalore/events/232659731/

  • Login to see the comments

Introduction to Serverless Architecture

  1. 1. Serverless Architecture @anandgothe
  2. 2. Where does our code run? Virtual Machines Containers PaaS Client BaaS (Backend) FaaS (Functions)
  3. 3. Demo
  4. 4. FaaS • AWS Lambda, Azure Functions, Google Cloud Functions* • Backend code without explicit server or server app • Usually small functions responding to events(nanoservices?) • Can be written several popular languages (C#, Python, Nodejs, Java...) • Resources allocated when needed, surrendered after execution • Horizontal scaling is automatic, elastic and managed by provider • Open source and hybrid alternatives are available
  5. 5. FaaS • Faster time to market, reduced packaging and deployment effort • Improves developer productivity, focus on business logic • Monitoring and logging built-in • Can work with source control and CI • Local dev tooling is improving • Wide range of triggers and templates • You are only charged when code is executing (memory*sec) • Eg. 128 MB for 8 seconds = 0.128gb * 8 = 1 GB-sec • Greener computing
  6. 6. FaaS - concerns • Execution environment limitations • Time • Memory • Storage • Throttling • Vendor lock-in(depends on event triggers) • Startup latency • All code must to be stateless • Loss of sever-level optimization • Testing • Security
  7. 7. AWS Lambda • JavaScript, Python, and Java • Independent functions • Versioning • Closed source • Limits • 500mb • 100 concurrent requests* • 5 mins execution time • Javascript,C#, F#, PHP, Python, Bash, PowerShell, Batch • Functions grouped into App* • No versioning (yet) • Open source • Easier to use • Lower execution cost (~22p/hr) • Classic/Dynamic App Service Plan • Free: ​ • 1 million requests​ • 0.4 million GB seconds​ • 888 hours (128 MB) Note: bandwidth, storage costs

×