Skip to content

Search Engine

ddayto edited this page Jan 31, 2025 · 1 revision

Search Flow

(1) User enters search query (2) Preprocess the query → preprocess_query() (3) Check cache for previous results → get_cached_result() (4) Run concurrent API calls if not cached → search_books() (5) Stream results to frontend → Server-Sent Events (SSE) (6) Cache results for faster future searches → set_cache()

Clone this wiki locally