Microservices - Resilience Patterns
A microservice uses this code snippet for graceful degradation:
What is the main problem with this code?
try {
data = fetchFromService()
} catch (Exception e) {
data = null
}
return data.toString()What is the main problem with this code?
