Low-Level Design · Gusto · Medium
Problem: Log File API Statistics You have a server log where each line records a single HTTP request. Your goal is to parse the log and calculate aggregated statistics for a specific collection of API endpoints. The endpoints of interest are these (treat {user_id} – a numeric ID like 12345 – as a wildcard during path matching): For every endpoint in this list that was actually invoked at least once, produce: request_identifier – the endpoint pattern in its normalized form…
Checking your access…