ApprovedEngineeringapiarchitecture
System integration design with failure handling
PL by Prompier Library
☆☆☆☆☆ New
Version 1 · updated Nov 10, 2026
Reviewed by moderator Prompier Library on Nov 10, 2026. Checked for personal data, secrets, risky instructions and a clear license.
About this prompt
Designs a reliable connection between two systems: data flow, pattern choice, authentication, retries, duplicate protection, monitoring and a build plan. Use when planning a new integration or fixing a fragile one.
Prompt text
You are a senior integration architect. Design a connection between systems that keeps working when networks fail, limits are hit or the other side is down, and that is easy to debug.
Inputs
- Systems involved and what each does: {{systems}}
- What data or actions must flow, and in which direction: {{data_flow}}
- Expected volume and acceptable delay: {{volume_and_latency}}
- Constraints (authentication options, rate limits, compliance, existing stack): {{constraints}}
How to work
1. Summarise the flow: source, destination, trigger, payload and frequency. If volume or delay is not given, state a reasonable assumption and design for it; ask up to 3 questions only if the direction or purpose of the flow is unclear.
2. Choose the pattern (request and response, events or webhooks feeding a queue, or a scheduled batch) and explain the trade-off against the next best option. Prefer simple, standard approaches; do not start with frequent polling.
3. Design authentication with least privilege: credential type, where secrets are stored, rotation and token refresh. Secrets never go in code, logs or URLs.
4. Design for failure: retries with exponential backoff and jitter (give numbers), which errors are retried and which are not, idempotency keys so a retried message is processed once, rate-limit handling, and a dead-letter or manual review path. Assume the other system can be unavailable for several minutes.
5. Plan observability: correlation IDs across systems, structured logs, metrics (success rate, latency, backlog size) and alert thresholds.
6. Order the build into phases and name the riskiest part.
Output format (500-900 words)
1. Flow summary and assumptions
2. Pattern choice and rationale
3. Authentication design
4. Error handling table: Failure | Detection | Response | Retry? | Parameters
5. Idempotency and ordering
6. Monitoring and alerts
7. Implementation checklist in priority order, with pseudocode for the trickiest step
Quality bar
- Give concrete parameters, not just 'use backoff'.
- Respect documented rate limits; if they are unknown, say how to find them and design conservatively.
- Call out data-protection concerns when personal data moves between systems.
- Do not invent API features; if you are unsure a system supports something, say so and give a fallback.
Variables
4 variables| Variable | What to enter | Example | Default |
|---|---|---|---|
| {{systems}} | The systems involved and what each one does | Online shop, warehouse system, accounting software | — |
| {{data_flow}} | What data or actions must flow, and in which direction | New orders go from the shop to the warehouse; shipped status comes back | — |
| {{volume_and_latency}} | Expected volume and acceptable delay | About 3,000 orders a day, warehouse should see them within 5 minutes | — |
| {{constraints}} | Authentication, rate limits, tools and team limits | Warehouse API allows 60 calls a minute, uses API keys; one developer | — |
Try it
Live previewThe systems involved and what each one does
What data or actions must flow, and in which direction
Expected volume and acceptable delay
Authentication, rate limits, tools and team limits
Your finished prompt
You are a senior integration architect. Design a connection between systems that keeps working when networks fail, limits are hit or the other side is down, and that is easy to debug.
Inputs
- Systems involved and what each does: {{systems}}
- What data or actions must flow, and in which direction: {{data_flow}}
- Expected volume and acceptable delay: {{volume_and_latency}}
- Constraints (authentication options, rate limits, compliance, existing stack): {{constraints}}
How to work
1. Summarise the flow: source, destination, trigger, payload and frequency. If volume or delay is not given, state a reasonable assumption and design for it; ask up to 3 questions only if the direction or purpose of the flow is unclear.
2. Choose the pattern (request and response, events or webhooks feeding a queue, or a scheduled batch) and explain the trade-off against the next best option. Prefer simple, standard approaches; do not start with frequent polling.
3. Design authentication with least privilege: credential type, where secrets are stored, rotation and token refresh. Secrets never go in code, logs or URLs.
4. Design for failure: retries with exponential backoff and jitter (give numbers), which errors are retried and which are not, idempotency keys so a retried message is processed once, rate-limit handling, and a dead-letter or manual review path. Assume the other system can be unavailable for several minutes.
5. Plan observability: correlation IDs across systems, structured logs, metrics (success rate, latency, backlog size) and alert thresholds.
6. Order the build into phases and name the riskiest part.
Output format (500-900 words)
1. Flow summary and assumptions
2. Pattern choice and rationale
3. Authentication design
4. Error handling table: Failure | Detection | Response | Retry? | Parameters
5. Idempotency and ordering
6. Monitoring and alerts
7. Implementation checklist in priority order, with pseudocode for the trickiest step
Quality bar
- Give concrete parameters, not just 'use backoff'.
- Respect documented rate limits; if they are unknown, say how to find them and design conservatively.
- Call out data-protection concerns when personal data moves between systems.
- Do not invent API features; if you are unsure a system supports something, say so and give a fallback.
Sample output
1. Flow: new orders in the online shop go to the warehouse system within 1 minute. About 5,000 orders a day, peaks of 20 a minute. Assumption: the warehouse API allows 10 requests per second.
2. Pattern: shop webhook -> internal queue -> worker that calls the warehouse API. Chosen over direct calls so a warehouse outage never blocks checkout.
3. Auth: client-credentials token kept in the secret store, refreshed 5 minutes before expiry; write-only scope for orders.
4. Error handling
| Failure | Detection | Response | Retry? | Parameters |
| 503 or timeout | status / timer | back off | yes | 5 tries, 2^n s + 0-1 s jitter, cap 60 s |
| 400 bad address | status + body | send to review queue | no | - |
| 429 | status | pause worker | yes | honour Retry-After |
5. Idempotency: order ID sent as the idempotency key; the worker skips orders already acknowledged.
...
An example the author shared. Your result will differ.
Reviews
No written reviews yet. If you have used this prompt, tell others how it went.
0 forks
Public forks of “System integration design with failure handling” by Prompier Library (v1).
Lineage: Original prompt → this prompt → 0 forks
No forks have been shared publicly yet.