server-vs-server-less
https://www.youtube.com/watch?v=SCIfWhAheVw
Problem with having a single server: Traffic is dynamics. Sometimes you have 100 visiters a dynamics The next hour maybe 100k How should you manage this?
Solutions:
- Severless services manaages the demand automatically
- Use kubernetics: Set the dynamic demoand yourself
DANGERS OF SERVERLESS:
- DDOS attack? -> more isntances -> Higher Costs 1
- Popular overnight? -> more instances -> Higher costs 1 So always set limitss!!!!
serverless
cons: -times out after X seconds 2
- no statefull connection (like websockets) 2