Versions and Availability
The version DHA 0.4.0 serves for each operation, how it reports health, and how it answers errors.
Versions
DHA is built on version 2.4.0 of the Data Adapter Specification. Each Delegate can advertise its own versions, and DHA presents one set to HaaS:
- One version for each operation. For an operation served from the Primary Delegate only, DHA advertises the versions the Primary Delegate advertises. For an operation served from both Delegates, DHA advertises the highest version it can reach by translation from the versions of every Delegate.
- Translation in both directions. DHA translates each request to the version each Delegate serves, and each response to the version it advertised, before combining them.
- No approximation. DHA advertises only versions it can read. A request that would need a translation DHA cannot make exactly fails with HTTP 500, and a request that names a version DHA does not advertise is refused.
- Get Endpoint Meta is answered at the highest document version from V3 to V6 that HaaS accepts.
Availability
Get Service Health Status reports DOWN when:
- either Delegate reports
DOWNor does not answer; - the Delegates' metadata cannot be read; or
- no translation joins the Delegates' versions for an operation DHA serves.
It reports UP otherwise. The status is for information and alerting only: DHA attempts every request whatever status it last reported, and the response to that request decides whether it succeeds.
Errors
- A request served from both Delegates fails as a whole when either Delegate fails, other than by reporting the Principal or account unknown (see Unknown Principals and accounts). DHA never returns a partial response.
- A Delegate's HTTP 429 (too many requests) is passed on as HTTP 429.
- A Delegate's HTTP 405, 406, 413 or 415 is answered as an unexpected error (HTTP 500). DHA sends no request that could validly receive one, so it means a fault between DHA and the Delegate, which Biza investigates.