Back to problems

Build Resilient Aggregation and Debug Routing

Algorithm · DoorDash · Medium

Complete the following two software engineering tasks. Part A: Fault-tolerant API aggregation. Implement a service method that invokes several mock downstream REST endpoints, merges their individual JSON responses into one nested result object, and tolerates transient failures by retrying the failing calls. The method should accept a retry count parameter (e.g., maxRetries) and a list of endpoint identifiers. When a call fails with a transient error such as HTTP 500 or a…

Checking your access…