A production REST API with volume, latency and availability commitments the client's engineering team could build against.
An Israeli technology firm running a production system that needs external data inline, at request time.
An Israeli technology firm runs a production system that needs external data inline, at request time. This is a repeat engagement — they had worked with us on prior projects before commissioning this one, so our first conversation with their VP of Engineering started at architecture rather than at whether we could deliver.
The requirement was not a dataset. It was an API their own production code calls, with volume, latency and availability commitments the VP of Engineering's team could build against.
| Field | Type | Notes |
|---|---|---|
| request_id | string | Echoed for correlation and idempotency |
| query_params | object | Normalised and echoed back |
| status | enum | ok / partial / no_data / error |
| data | array | Result payload — domain-specific fields |
| data_freshness_ts | timestamp | When the underlying data was collected |
| data_source_mode | enum | live / cache — always disclosed |
| cache_age_seconds | int | Zero on live fetch |
| partial_reason | string | Present when status is partial |
| error_code | string | Stable, documented enum |
| error_message | string | Human-readable, not for programmatic branching |
| retryable | boolean | Explicit retry guidance per response |
| retry_after_seconds | int | Present when retryable is true |
| rate_limit_remaining | int | Returned in headers |
| served_latency_ms | int | Our own processing time |
We wrote the API contract before the infrastructure: endpoints, request and response schemas, the full error-code enum, rate limits, latency and uptime targets, and the definition of each status value. The VP of Engineering signed off on it, and their team built the integration against it in parallel with our implementation. The most valuable clause was the distinction between no_data and error. no_data means the query was valid, we looked, and nothing exists — a final answer the client can cache and act on. error means we could not determine the answer. Collapsing the two into an empty array makes correct client behaviour impossible.
The serving path is deliberately short, with the expensive work moved off it.
Edge and validation. A stateless API tier authenticates, validates against the schema, normalises parameters into a canonical form and computes a cache key. Malformed requests are rejected here with a documented error code before touching anything downstream. Parameter normalisation matters more than it sounds: two semantically identical requests written differently must produce the same cache key, or the hit rate collapses.
Cache tier. A distributed cache sits in front of every data path, keyed on normalised parameters, with policy set per data class rather than globally — some attributes change in minutes, others in weeks, and a single TTL is either wastefully short for the stable data or misleading for the volatile data.
Every response discloses data_source_mode and cache_age_seconds, so the client always knows whether it has a fresh fetch or a cached value and how old it is. Serving cache silently is a way of appearing to meet a latency target while quietly degrading data quality.
Cache population is not purely reactive. For the predictable query space — the parameter combinations the client's traffic hits repeatedly — a background warming process refreshes entries before they expire. That is what lets a high proportion of production traffic be served from warm cache inside the latency budget while upstream fetches happen off the request path on our own schedule.
Queue and worker tier. Cache misses that cannot be served within the latency budget are enqueued for asynchronous collection, and the request returns a documented status the client's code handles. Work units carry idempotency keys, and identical in-flight requests are coalesced onto one upstream fetch — coalescing is the mechanism that stops a burst of client traffic becoming a burst of upstream traffic. Workers use lease-based assignment on priority-aware queues, so a worker that dies mid-unit loses nothing: the lease expires and the unit returns to the queue.
Concurrency is capped at two independent points, and this is the core of the design.
Upstream concurrency is capped centrally per source, owned by the system rather than by individual workers. Adding workers raises internal throughput up to that ceiling and no further. Our capacity to serve must never translate into unbounded load on the sources we depend on.
Client-facing concurrency is governed by published rate limits enforced at the edge, with remaining quota in response headers. A client over its limit receives a documented 429 with retry_after_seconds, not a degraded service that affects everyone.
Between the two caps sits the queue, which is what makes the decoupling real. When inbound traffic exceeds upstream capacity the queue absorbs the difference and depth grows, making queue depth the primary early warning that capacity needs attention. Past a threshold the system sheds load in a defined order — lowest-priority queries receive a documented 503 with retry guidance rather than everything slowing together.
Every upstream interaction has a bounded timeout well inside the latency budget, so a slow source cannot consume the request's whole allowance. Retries use exponential backoff with full jitter and a bounded attempt count. Retry storms are the classic way a high-volume system turns a small upstream problem into an outage; jittered bounded retries are the specific defence.
Per-source circuit breakers open when the error rate crosses a threshold, stop traffic to the failing source for a cooldown, then probe with limited traffic before closing. While a breaker is open, responses are served from cache with cache_age_seconds disclosed or returned as an explicit error — never as an empty successful result.
Every response carries retryable and, where applicable, retry_after_seconds, so the client never has to infer retry safety from an HTTP code. Idempotency keys make a client retry safe by construction. Units that exhaust their retries land in a dead-letter queue with full context, feeding both alerting and a recurring review of failure patterns.
High serving volume does not license high upstream volume, and the architecture is built so that it doesn't. Caching, coalescing, predictive warming and central upstream caps exist partly for latency and partly because passing client traffic straight through would be an unreasonable load on the sources.
Dashboards and thresholds were agreed with the VP of Engineering, and SLA metrics are reported on a [FILL: reporting cadence] basis from the same instrumentation we run operations on. One source of truth removes the whole category of argument about whether a commitment was met.
We negotiated the SLA in terms we could actually control, and said so plainly. The commitment covers our own processing latency, availability of the API surface, and the freshness guarantee per data class. It does not commit to upstream availability, because nobody can commit to that honestly — instead the contract specifies what the API returns when an upstream is unavailable, how freshness is disclosed, and what the client's retry behaviour should be.
A versioned production REST API with a documented OpenAPI specification, authentication via a staging environment matching production behaviour, and rate limits per the contract.
Supporting delivery: integration docs with worked examples for every response status, a runbook for the client's on-call team covering each error code, a shared metrics view, and Additive changes ship in place; breaking changes ship as a new version with before the previous one retires.
These figures must be taken from the project records before publication. Do not estimate.
The architecture works because the request path and the collection path are genuinely decoupled. Caching, predictive warming, coalescing and a queue between the two mean the latency commitment does not depend on an upstream we do not control, and the client's traffic volume does not translate into proportional upstream load. Both properties come from the same design decision, and either alone would have justified it.
The second reason is that the contract was specific about failure. Distinguishing no_data from error, publishing a stable error enum, returning explicit retry guidance and disclosing cache age on every payload meant the client wrote correct handling code once and then stopped thinking about it. Most production API integrations go wrong in the failure cases, and being precise about those in writing before go-live is what a repeat client is actually buying.
“We needed an API our production code could call, with latency and uptime commitments we could build against. Actowiz wrote the contract first, decoupled the serving path from the collection path, and was precise about failure semantics — which is exactly what a production integration needs.”
— VP of Engineering, Technology Client
Request a free sample dataset for your category. Visit actowizsolutions.com to discuss your data requirement.
Our web scraping expertise is relied on by 4,000+ global enterprises including Zomato, Tata Consumer, Subway, and Expedia — helping them turn web data into growth.
Watch how businesses like yours are using Actowiz data to drive growth.
From Zomato to Expedia — see why global leaders trust us with their data.
Backed by automation, data volume, and enterprise-grade scale — we help businesses from startups to Fortune 500s extract competitive insights across the USA, UK, UAE, and beyond.
We partner with agencies, system integrators, and technology platforms to deliver end-to-end solutions across the retail and digital shelf ecosystem.
Track how prices recover after Diwali, 11.11 and Black Friday: fields, recovery KPIs, cadence and EU prior-price rules for brands.
Explore Restaurant & Menu Data from RestaurantGuru UK to analyze restaurant listings, menus, pricing, ratings, and dining trends.
Goa New Year hotel rates report 2026/27: tourist demand, tariff trends and what to track on OTAs for Christmas–New Year stays.
Whether you're a startup or a Fortune 500 — we have the right plan for your data needs.