Code Room
Code reviewHardcr-g104
Subject Timeout handlingLevel Senior–Staff~30 minCommon in Concurrency interviewsIndustries Software development

Question

Review this Java downstream-call config.

What a strong answer looks like

Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.

Talk through your review
Code to reviewjava
@Componentpublic class ProfileClient {    private final RestTemplate rt = new RestTemplate(); // default factory     public Profile getProfile(long id) {        return rt.getForObject("http://profile-svc/u/" + id, Profile.class);    }     public List<Profile> getMany(List<Long> ids) {        return ids.stream()                  .map(this::getProfile)                  .collect(Collectors.toList());    }}
Run or narrate your approach, then ask the coach.