How I approach third-party integrations
An external API is easy to call. Making it reliable under retries, delays and ambiguous responses is the part I care about.
Across live services and independent product development, I've repeatedly worked at the point where one system has to trust information from another. The code that sends an HTTP request is rarely the difficult part. The challenge is deciding what happens when a provider retries, an acknowledgement never arrives or two systems disagree.
This is a general engineering guide, not a diagram or specification of any employer system. The fictional example below shows the questions I would ask and the safeguards I would consider. It does not claim that every mechanism was implemented in every project I've worked on.
One reward event. Two callbacks.
Imagine an invented app called Lantern, with an external provider that sends a signed callback when an offer is completed. A timeout makes the provider send the same event twice. Without careful design, the product could credit the same event twice.
Original worked example for explaining the pattern.
Duplicate callback
Network retries are normal. A provider may not know whether the first request was processed.
Idempotent event handling
Consider a provider-scoped event ID and a durable uniqueness check so replays do not create a second logical award.
Provider unavailable
A transient outage or delayed callback should not become an undocumented customer-support mystery.
Retries and reconciliation
Use bounded retry/backoff and a clear way to inspect unresolved events. Match the mechanism to the product's real risk.
The integration checklist
Contracts and trust
- What can the sender actually prove?
- What does a valid request look like?
- Which fields are authoritative?
- How are credentials kept out of source control?
Delivery behavior
- Can the provider retry the same event?
- What if callbacks arrive late or out of order?
- Which failures can be retried safely?
- How can support investigate a missing result?
Compatibility
- What user behavior must remain unchanged?
- Can new and old flows be compared safely?
- Is there a clear rollback or disable path?
Verification
- Which sandbox cases represent production risks?
- Have negative scenarios been exercised?
- What metrics or logs reveal degradation?
On real projects I've modernized payment integrations, implemented server-side rewarded-ad service support and worked on production-facing platform features. In my independent product iSayara, I also had to examine repeated requests, notification fallback and API behavior using Postman. Those experiences are why I ask these questions.
The fictional examples above are educational, not assertions about the precise controls inside any of those implementations.
Engineering starts where the happy path ends.
If you work on production integrations or platform architecture, I'm happy to compare approaches.