Skip to content

Web: Edge Compute Deployment for Dynamic Pricing Engine #168

Description

@wagmiiii

Repo context. accensa-app is the off-chain half of Accensa — the merchant back-office for x402 sellers on Stellar. Three workspace packages matter: apps/web (Next.js dashboard and the indexer at src/app/api/sync), packages/sdk (@accensa/sdk), and apps/demo-merchant. The Soroban contracts live in accensa-contracts.

🟢 Unblocked. Standalone API route refactoring.

Problem

Pricing logic in apps/web is evaluated at the origin server, introducing unacceptable latency for global buyers during checkout. The architectural gap prevents executing complex merchant pricing rules at the CDN edge.

What to build

Refactor the Next.js pricing API route to run on Cloudflare Workers or Vercel Edge Functions. Move the stateful pricing rules engine into an edge-compatible WebAssembly or lightweight JS execution sandbox.

Acceptance criteria

  • Pricing engine decoupled from Node.js APIs.
  • Edge function deployment pipeline established.
  • Latency reduced to under 50ms globally.

Contact & Support

Metadata

Metadata

Labels

Stellar WaveDrips Wave Programarea: webWork in webcomplexity: high200 pts — integrations or architectural work

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions