Faster Loading for Site information

πŸ“ Problem Statement

Fetching Site information can currently take up to a full second. This delay slows down loading, parsing, and execution across the UI.


πŸ‘€ User Story

As a business owner,
I want the Site Information endpoint to respond quickly,
So that my customers experience quicker page loads and smoother interactions in the UI.


βœ… Definition of Done (DoD)

  • Offload cacheable endpoints to Cloudflare for ultra-fast response times.

  • Store and update JSON in real-time using R2 Object Storage.

  • Serve responses with fast edge performance via Workers.

  • Enable real-time cache invalidation with Cache-Control, ETag, and versioning strategies.

  • Ensure fallback to origin works seamlessly via Worker logic.

  • Achieve sub-50ms response times with Cloudflare global edge + object prefetching.

Test Cases

  • Validate headers in response are served through cloudflare

  • Validate paymentGateway objects keys Addition/updates/deactivation in the response json.

  • Validate random keys Addition/updates from site info on the response (google_id, auth0_id...etc)

  • Validate products Addition/updates/deletion impact on json response

  • Validate plans Addition/updates/deletion impact on json response

  • Validate paywalls Addition/updates/deletion impact on json response

  • Validate the above against accounts on single site

  • Validate the above against accounts with multiple sites with objects (products, plans, paywall) to reflect on both sites

  • Validate the above against accounts with multiple sites with objects (products, plans, paywall) to reflect on a single sites

Please authenticate to join the conversation.

Upvoters
Status

Available

Board
πŸ’‘

Pelcro Product

ETA
Sep 16, 2025
Date

6 months ago

Author

Rana Haleem

Subscribe to post

Get notified by email when there are changes.