Code Room
Code reviewHardcr-g102
Subject Missing rollbackLevel Senior–Staff~35 minCommon in Reliability & on-call interviewsIndustries Software development

Question

Review this Go multi-service booking orchestration.

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 reviewgo
func BookTrip(t Trip) error {	if err := hotels.Reserve(t.Hotel); err != nil {		return err	}	if err := flights.Book(t.Flight); err != nil {		return err	}	if err := payments.Charge(t.Card, t.Total); err != nil {		return err	}	return nil}
Run or narrate your approach, then ask the coach.