
Prepare for external API failure or change
An external API is a dependency: accessible documentation does not guarantee your application can use it. Plan what happens when responses are missing, late or structurally different.
Identify the dependency and its effects
List functions using the API, received data, permissions and the monitoring owner. Distinguish a catalogue describing a service from operational access actually obtained.
The official job-offers API record currently publishes a notice that it is no longer exposed on pole-emploi.io. This illustrates why a documentation URL alone cannot validate integration; it does not establish permanent closure.
Define a deadline and fallback
Choose a timeout compatible with the user’s task. On expiry, show a clear state: unavailable data, a dated previous result or deferred processing. Do not replace missing data with a plausible value.
Fictional example: an indicator comparison page can remain useful when it shows the last result date. It must not display “no vacancies” when the search service fails to respond.
Simulate errors in isolation
Prepare fictional responses: success, empty response, authorisation error, timeout and missing field. Compare display and logs with expected outcomes without multiplying calls to the real service.
For an action writing to another system, also simulate a lost response after execution. Recovery must check what actually happened before retrying, otherwise an operation may occur twice.
Separate freshness from availability
If results are retained, define what may be displayed, for how long and with which date. An old value may help a history view but mislead in an immediate situation.
Document data that must not be retained or is too sensitive, along with reuse permissions. A cache does not automatically authorise indefinite storage or republication.
Organise recovery and monitoring
Prepare proportionate reporting, an owner and a verification task after restoration. Check schema changes and pending records before declaring recovery complete.
Keep a manual procedure for essential functions. Monitoring must follow actual journey usefulness: a correct HTTP response may still contain unusable information.
Allocate time across dependencies
A journey may call several services in sequence. Set an acceptable duration for the complete task, then allocate waiting time between calls. Giving every dependency the full allowance can make the final response much slower than intended.
Keep retries within that budget. Temporarily suspending calls to a clearly unavailable service can avoid repeated failures. Explain what remains usable and what needs recovery rather than displaying fictional success.
Plan catch-up when service returns
During an outage, distinguish refused, queued and partly executed requests. Give operations references permitting status checks. Do not indiscriminately replay every logged request when the dependency returns.
Start with a small batch and respect ordering where operations depend on earlier work. A modification may require a completed creation. Monitor progress, duplicates and new failures with a stopping mechanism rather than immediately recreating overload.
A timeout does not prove an operation failed
Fictional teaching example, not a client result or a market benchmark.
An application submits a request to an external service. The connection times out before a response arrives. The team does not know whether processing occurred; immediately repeating the action could create a duplicate.
On a small screen, scroll horizontally to read every column. You can focus the table area and use the left and right arrow keys.
| Situation | Planned behaviour | Evidence to inspect |
|---|---|---|
| Read unavailable | Show unavailable status or an allowed dated copy | Freshness date and understandable message |
| Creation without response | Mark outcome for verification before retrying | Request identifier and provider-side status |
| Request limit reached | Wait according to service guidance | Received status and scheduled next attempt |
| Service restored | Reconcile pending requests | Resolved requests and remaining exceptions |
Separate reads from actions that create records, charge or notify. Repeating a read may be acceptable while repeating a creation needs duplicate protection. Check the guarantees actually documented by the API.
Set a maximum attempt count and an owner for exceptions. Make degraded operation explicit: old availability must not be presented as a confirmed booking.
What to record before deciding
Record affected operations, time limit, recovery rules, unknown outcomes and reconciliation results after recovery.
A record to keep with the decision
| Item | Evidence |
|---|---|
| Dependency | Service, function, access and owner. |
| Fallback | Timeout, message and usable data. |
| Tests | Fictional cases and expected outcomes. |
| Recovery | Pending-task review and recovery evidence. |
Frequently asked questions
Does HTTP 200 prove integration works?
No. Check contents, schema, permissions and business outcome.
Should every error be retried automatically?
Not without knowing the action and duplicate effects. Writes require particular care.
Reference material
France Travail · Avis de distribution de l’API Offres d’emploi
The practical checklist is an editorial synthesis to adapt to your service. It does not constitute a certification or an audit result.