Serverless Code Camp Barcelona

12
Serverless Code Camp Gojko Adzic gojko@neuri.co.uk Aleksandar Simovic alexander .simovic@gmail.com

Transcript of Serverless Code Camp Barcelona

Serverless Code CampGojko Adzic [email protected] Simovic [email protected]

A good hockey player plays where the puck is. A great hockey player plays where the puck is going to be.

1Wayne Gretzky

4 Amazon AWS Lambda

4 Google Cloud Services

4 Microsoft Azure Functions

4 IBM Open Whisk

Code with batteries included4 Scaling

4 Monitoring

4 Recovery

4 Versioning

4 Logging

Traditional roles of servers taken over by the platform

4 Gatekeeper -> Distributed Auth

4 Scaling point -> Containers

4 Orchestration -> Client or workflow engines

Strengths4 Time to deploy minimal

4 Time to recover irrelevant

4 Multi-versioned

4 Forces small, isolated code modules

4 Fine-grained, transparent, cost of operation

4 Use readily-available services built for massive scale

Weaknesses4 No strong SLAs yet

4 Latency

4 No PCI compliance

4 No way to keep open connections

4 Requires complete rethink on many common practices

4 Configuration becomes a challenge

Opportunities4 Skip a generation of technology/process upgrades

4 Rethink architectural and operational "best practices"

4 Change billing models

4 Marketplaces for digital services

4 Fine-grained monitoring and optimisation

4 A/B testing throughout

Threats4 Vendor lock-in (not code, but services)

4 High reliance on external parties

Key components4 AWS Lambda - execute code

4 API Gateway - HTTP endpoint

4 DynamoDB - Storage (optional)

4 https://aws.amazon.com

Let's make some tanks4 https://tankwars.serverless.camp/

4 https://github.com/awslabs/chalice

4 https://claudiajs.com/tutorials/