Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Product Page Sharing and Rewards Platform

Design company-managed product pages with trackable share links, anonymous milestone rewards, and trustworthy engagement analytics.

Problem statement

For this exercise, assume authenticated company administrators can create and update public product-detail pages containing descriptions and image references. Any reader can create a share link for a published page and distribute it through an external channel.

Readers are anonymous; the platform issues a signed, privacy-preserving browser token and counts at most one eligible click per token within each product campaign. Each campaign stores an immutable sorted set of milestone ordinals such as 100 and 1,000.

An eligible click whose exact campaign ordinal belongs to that set receives one durable reward entitlement and a one-time claim code; other ordinals do not receive a reward. Link and campaign analytics may converge asynchronously, but milestone assignment must be exact and immutable.

Exclude image-upload internals, external social-network APIs, bot-detection internals, reward inventory and physical fulfillment, payments, comments, and personalized recommendations.

What to build

  1. An authorized company administrator can create, publish, and version a product-detail page with a description and image references.
  2. A reader can idempotently create a unique trackable share link for a published product page, and another reader can resolve an active link to that page.
  3. The platform records one eligible click per anonymous visitor within a product campaign, assigns an exact campaign ordinal, and creates one immutable reward entitlement exactly when that ordinal belongs to the campaign's configured milestone set.
  4. A company administrator can view bounded, privacy-preserving reach, click, unique-visitor, and reward metrics by product, campaign, share link, and time window with freshness metadata.

At scale

  • For this exercise, assume 100,000 companies manage 10 million published product pages and create 20 million active share links.
  • For this exercise, plan for 100,000 product-page or share-link reads per second, 20,000 click events per second, and 500 page or campaign writes per second at peak.
  • For this exercise, target p99 share-link resolution below 100 milliseconds and p99 page reads below 300 milliseconds; ordinary analytics may lag accepted clicks by up to five minutes.
  • For this exercise, an acknowledged page version, eligible-click ordinal, reward entitlement, and claim code must survive a single-zone failure; retain detailed click events for 90 days and daily aggregates for one year.