Skip to content

Resolve API: measure latency, declare a payload limit, record the metering decision #1365

Done

Description

@athvin

Follow-up from #529. Online resolve is now tested over HTTP for person and account datasets, with a typed status map and an ambiguous decision. Three parts of #529 remain, and each needs a measurement or a contract choice rather than code alone:

  • Latency. No p50/p95 figure exists for POST …/resolve on the dev cluster. Measure it at a 10k and a 100k corpus, and record it in the er-server-control-plane reference.
  • Payload limit. The route inherits axum's default body limit. Declare an explicit one (a single record, so tens of KB) and document it in OpenAPI.
  • Metering. Decision taken in E20 — Public duplicate-check and record-resolution API #529: resolve calls do not count toward the record allowance, because they write nothing. If request metering is introduced (E3 — API usage, entitlements and commercial metering #518's successor), resolve is a candidate for a per-call counter. Revisit then.

Done when the latency is recorded, the limit is declared and gated by a test returning 413, and the metering note is in the usage docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions