Refactor a Scheduling Function into a Production REST Service

Asked at Walmart Labs · System Design for ML · Difficulty: Medium · Last asked Apr 6, 2026

You have a working, tested Python function that merges a list of meetings into the blocks of time during which a room is busy. Turn it into a production-quality HTTP service that other teams can call, and explain each design decision with its trade-off. This is a design and code-structure question: the deliverable is the service design plus handler, service and repository code in Python-style pseudocode.

Loading the problem…