Architecture and Indexing Mechanism of the Car Smart Investment Advertising System

This article details the business workflow, system architecture, logical index structures, creation, modification, and search processes of the Car Smart Investment advertising index, and evaluates its performance, demonstrating how billions of ad records are efficiently retrieved within milliseconds.

HomeTech
HomeTech
HomeTech
Architecture and Indexing Mechanism of the Car Smart Investment Advertising System

The article begins by outlining the core business workflow of the Car Smart Investment advertising system, including configuration of ad placements, storage of ads in an index library, request handling, real‑time bidding, and reporting.

It then introduces the index system, explaining the data‑投放 model where ad plans contain groups, each mapped to a numeric docid using an auto‑increment scheme stored in a hash table.

The index architecture employs multiple threads—main, Kafka, MySQL, and Dump—to handle request processing, real‑time updates, full‑data synchronization, and periodic backups.

The logical index structure consists of four parts: (1) a docid‑to‑ad‑group mapping via a hash table; (2) a forward table (array) storing detailed ad information for fast random access; (3) an inverted hash table combined with bitmap bitmaps for rapid condition matching; and (4) a docid status bitmap indicating valid or invalid entries.

Index creation is illustrated with a step‑by‑step example, showing docid assignment, bitmap updates for targeting attributes (region, keyword, device), and insertion of ad data into the forward table.

Index modification is described as a real‑time process that disables old bitmap entries, recomputes new attribute bitmaps, and re‑enables the status bitmap to keep the index consistent with business changes.

The search procedure is explained: the ad engine forwards targeting conditions to the index service, which performs inverted bitmap retrieval, forward‑table filtering, and returns matching ad groups.

Finally, performance testing shows the system can respond within 10 ms under billions of requests, sustain up to 80 k QPS, and handle real‑time updates of hundreds of thousands of ad records.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

real-timeadvertisingIndexing
HomeTech
Written by

HomeTech

HomeTech tech sharing

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.