This question evaluates a candidate's competency in system and API design, frontend performance optimization, caching and request deduplication strategies, and operational observability for reducing redundant network requests for availability and pricing.
You are designing the web client and APIs for a bookings marketplace that displays many listings (e.g., 50–200 on search results, plus a detail page). The client repeatedly needs availability and pricing for a user-specified date range and party size. Today it often fires many small, overlapping requests, increasing latency and backend load.
Propose how to reduce redundant frontend network requests specifically for availability and pricing. Compare the following approaches, provide an example API schema or query, discuss trade-offs, and outline safe monitoring and rollout:
Include:
Login required