Skip to content
Selected engineering experience

Product platform

A managed proxy platform that connected usage to revenue

How multi-tenant access, entitlement ledgers, billing workflows, and provider operations became one coherent self-service product.

  • Multi-tenant permissions
  • Idempotent entitlements
  • Operations automation

The challenge

Reliable proxy infrastructure is not yet a manageable product. A commercial platform also needs accounts, delegated users, packages, orders, usage limits, invoices, payments, support workflows, and analytics. If each feature maintains its own idea of access and balance, customers see inconsistent entitlements and operators compensate with manual corrections.

The platform had to serve direct users and partner-managed accounts without weakening isolation. A delegated operator could manage approved sub-accounts, but could not allocate capacity that the parent did not own. Payment callbacks could be repeated or arrive out of order, and infrastructure availability could change after an order was placed.

The core problem was connecting commercial state to network authorization with an audit trail that remained correct under retries.

The engineering approach

Define tenant and entitlement boundaries

Account ownership and delegation rules were enforced in application services rather than left to the user interface. Packages described commercial limits and routing capabilities; orders represented an account’s entitlement to those packages. Sub-account allocation was constrained by the parent entitlement and used the same authorization path as direct access.

Cached runtime credentials were projections of durable state, not an independent source of truth. Changes to an order, password, allocation, or expiration refreshed or removed the corresponding authorization data through explicit side effects.

Use a ledger for usage and allocation

Balance changes were recorded as ledger entries instead of repeatedly overwriting a single mutable total. This made purchases, allocations, deductions, adjustments, and reversals traceable. Usage reporting could be reconciled with the entitlement history that allowed the traffic.

The model also supported different commercial units without coupling the traffic runtime to pricing logic. The network enforced the resulting allowance; the platform retained responsibility for how that allowance was sold and accounted for.

Make payment fulfillment idempotent

External payment notifications were validated, normalized, and persisted before fulfillment. A successful event moved an invoice through a guarded transition and created or extended the corresponding entitlement once. Duplicate delivery returned the existing result instead of applying the purchase again.

Amount mismatches, failed payments, expired sessions, and late success events followed explicit paths. Provider-specific payloads stopped at an adapter boundary so the order and ledger services could use one internal payment result.

Bring provider operations into the product

Provider configuration, location vocabularies, health checks, proxy testing, cluster deployment, and capacity status were available to authorized operators through one administration model. The platform could reject an invalid package or route before a customer received unusable credentials.

Analytics connected orders, consumption, provider health, and support context without requiring direct access to production databases. Operational notifications highlighted depleted packages, failed checks, and fulfillment errors while avoiding secrets in messages and logs.

The qualitative outcome

The platform replaced separate provisioning, billing, and network spreadsheets with a consistent workflow. Customers and partners could receive access through the same entitlement model, while operators retained auditable controls for exceptions and recovery.

Idempotent fulfillment and ledger-backed allocation reduced the risk of duplicate credit or unexplained balance changes. Provider and cluster tooling shortened the path from an infrastructure issue to the commercial accounts affected by it.

What this experience informs at P2PSDK

P2PSDK separates application integration from publisher reporting and commercial settlement, but the two sides share explicit identities and measured events. The SDK remains focused on consent and network lifecycle; the control plane handles applications, managed users, analytics, billing, and webhooks through auditable workflows.