14. Minimum contingency plan
<< The backup plan cost more than fix the incident >>
14
Model Affected
Guests
Business
Repercussion
Team
Members
...
Doorkeeper All Critical 1
AdminPanel Internal Low 1
Permitted Partners High 1
Uploads Paying High 2
Notifications Free Low 1
15. Follow best code practices
- Version your endpoints
- Split your endpoints (add/remove) (micro-service)
- Apply small changes at once
- Roll out frequency
- Idempotency
- Flag as deleted
- Be paranoid
15
16. Follow best infrastructure practices
- Defense in depth (also known as Castle Approach)
- Use canaries (blue/green deployment) & rollback
- Automatic fallbacks (reboot if is down)
- Use API gateways
- Backups, replication, redundancy, …
- Dead letter queues
- Logs (when, where, who, what)
- Infrastructure by code (even ENV variables!)
- Disaster-recovery testing (ex. Chaos Monkey) 16
18. Workflow (template)
1. Stop!
2. Delay worse consequences
3. Communicate to your team
4. Pair
5. Write next steps
6. Log everything
7. Fix it
8. Add asserts
18
19. Easiests mistakes
- Do not keep it hidden
- Do not bypass your CI
- Do not fix it at any cost
- Interrupt your boss’ meeting if needed
- Experience makes you feel more comfortable
- Knowledge makes you fix the issue
- Your stakeholders should be informed
- Do not finger point
19
20. Iterate your custom process
- Do a retrospective with your team
- Survey your stakeholders
- Review your statistics to ensure you don’t underestimate it
- Do a post-mortem
- Create or update your documentation
- Increase your number of assertions
- Automate
20