Sluice

Sluice

Cross-product vendor rate limit broker for cooperative quota sharing across Ontopix services.

Sluice is a cross-product vendor rate limit broker at Ontopix. It provides SDK-first cooperative rate limiting backed by DynamoDB, so multiple products (audit-service, stats-service, etc.) can share vendor quotas (OpenAI, ElevenLabs, Anthropic, Google) without exhausting each other's capacity.

Who is this for?

Product teams at Ontopix that call third-party vendor APIs from their services. If your service makes calls to a vendor with shared quotas, you need Sluice.

Status

The development is progressing and solid.

The initial implementation is working, and stress tests shows promising results.

Pending:

  • Ensure stress tests results are realistic to production
  • Ensure the SDK API is solid, clean and usable.

Documentation

PageDescription
Mission & ConceptsWhy Sluice exists, design philosophy, and key concepts
ArchitectureToken bucket algorithm, DynamoDB schema, lease lifecycle, reconciler
Python SDK ReferenceInstallation, configuration, acquire(), slot(), penalize()
TypeScript SDK ReferenceInstallation, configuration, acquire(), slot(), penalize()
Go SDK ReferenceInstallation, configuration, Acquire(), WithSlot(), Penalize()
SDK ParityCross-language contract tests and feature matrix
How-TosCommon patterns: inline retry, SQS requeue, multi-dimension acquire
OperationsEnvironment setup, sandbox, deployment, reconciler monitoring
Stress TestingMethodology, invariants, and results for cross-language stress tests