Retry and timeouts

Use cases Achieve high availability (HA) from the standpoint of Users or Proxies assuming that: the failure of some attempt is temporary or localized to some of the workers workers are redundant and interchangeable there are enough time and workers There are several types or levels of retrying: A general control flow of retries: Polling for a status change without knowing when it’ll happen Sleep interval can be linear or exponential, based on your modeling of probability distribution of when the change will happen. ...

August 24, 2021

Deployment evolutions

Case 1. “/whatis”: a slack command server Business: When Slack users input a command like “/whatis GDPR”, search on wiki pages and respond in 3 seconds what GDPR is. Generation 1. servers on machines ElasticSearch: to respond in less than a second Ngrok: to pierce the private network Gen 2. containerized Docker: to make deployments reliable Gen 3. Cloud (AWS EC2 + Amazon ElasticSearch Service) To get rid of on-premise server room, which occasionally suffers from power outages. ...

August 13, 2021