Running Highly Available Large Scale Systems is a lot of work. For the past 2.5 years, we've been running 100% serverless on a full production environment, serving customers worldwide. No VMs, no containers, no Kubernetes. Just code.
In this session I will present why we decided to go fully serverless at Torii, how it helped us move faster than our competitors, where did serverless computing worked best and where there's more work to be done.
17. WHAT DID WE GET?WHAT DID WE GET?
1. Highly available Slack bot
2. Scales from 0 to Infinity
3. Pay per use
4. No server management
18. WHAT DID WE GET?WHAT DID WE GET?
1. Highly available Slack bot
2. Scales from 0 to Infinity
3. Pay per use
4. No server management
5. Awesome Developer Experience!
19. 🆒🆒BUT CANBUT CAN SERVERLESSSERVERLESS BE USED FOR “BE USED FOR “REALREAL” WORK ?” WORK ?
24. WHY CHOOSE SERVERLESS?WHY CHOOSE SERVERLESS?
Advantage over competition
Minimum ops
Focus on delivering more value
25. WHY CHOOSE SERVERLESS?WHY CHOOSE SERVERLESS?
Win
Minimum ops
Focus on delivering more value
Advantage over competition
26. WHY CHOOSE SERVERLESS?WHY CHOOSE SERVERLESS?
... while sleeping better at night
Minimum ops
Focus on delivering more value
Advantage over competition
Win
47. LIMITSLIMITS
No persistent servers, websockets, polling.
15 minute max run time. Recursive invocations.
30 sec max API Gateway responses. Decoupled invocation.
48. LIMITSLIMITS
There's a service for that.
15 minute max run time. Recursive invocations.
30 sec max API Gateway responses. Decoupled invocation.
No persistent servers, websockets, polling.
56. OPTIMIZING FUNCTIONSOPTIMIZING FUNCTIONS
A lambda function is similar to a website
Open source:
, ,
Bundle using Webpack
Remove useless files
Bundle + Remove
Lazy load code
ncc pkg lambdapack
62. ONE FUNCTION VS. MANYONE FUNCTION VS. MANY
Many small functions or just a large one?
63. ONE FUNCTION VS. MANYONE FUNCTION VS. MANY
API servers are better as one large function
Many small functions or just a large one?
64. ONE FUNCTION VS. MANYONE FUNCTION VS. MANY
Less cold starts, easier to deploy and test
Many small functions or just a large one?
API servers are better as one large function
76. ACTIVELY IMPROVINGACTIVELY IMPROVING
We're just at the beginning
30 seconds 👉 5 mins 👉 15 mins
Node v6 👉 Node v8 👉 any version
Faster VPN cold starts
Websockets, SQS, ALB support
Cloud providers are investing a lot in serverless
Since most infra is on AWS, it keeps improving