What is the difference between a hard and a soft dependency?
IntermediateConceptAvailability Math
Answer
A hard (critical) dependency must work for the request to succeed: checkout cannot complete without the payment service. A soft dependency improves the response but is optional: recommendations, personalization, reviews. Soft dependencies should have short timeouts and fallbacks so their failure degrades rather than fails the request. Classifying dependencies is part of every production readiness review.
More on Availability Math
How much downtime per month does each "nine" allow?BeginnerHow do you calculate composite availability of services in series?BeginnerHow do you calculate availability of redundant components in parallel?BeginnerWhy do the parallel-availability numbers lie in practice?AdvancedYour service depends on five services each at 99.9%. What availability can you promise?IntermediateWhat are MTBF and MTTR, and how do they relate to availability?Intermediate