Go intro talk presented at Haifa:Dev meet up.
- Install Go
A small Go http server running on port :8090.
- GET /quote - , handles flow synchronosly
- GET /quote/v2 - handles flow asynchronosly, using gorountines
- GET /quote/v3 - handles flow asynchronosly, using gorountines + wait groups
Each function has a synthetic sleep time of 300ms.
- getUser(“uid”) - fetch user by id
- getUserSub(“uid”) - fetch user subscription
- generateQuote(“uid”) - generate car insurance quoute
- Compare goroutine strategies
- Load test