← Selected work / Public engineering note

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.

API designFailure pathsIntegration architectureSolutions engineering
FormatIndependent architecture guide
FocusTrust boundaries · callback handling
PatternsIdempotency · retries · recovery
ContextFictional Lantern service
Why this exists

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.

A fictional worked example

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.

01 / ReceiveCallback arrivesMay be repeated or delayed
02 / VerifyCheck authenticityValidate signature and fields
03 / DeduplicateStable event keyOne logical award per event
04 / ObserveRecord outcomeSupport investigation

Original worked example for explaining the pattern.

Failure

Duplicate callback

Network retries are normal. A provider may not know whether the first request was processed.

Design option

Idempotent event handling

Consider a provider-scoped event ID and a durable uniqueness check so replays do not create a second logical award.

Failure

Provider unavailable

A transient outage or delayed callback should not become an undocumented customer-support mystery.

Design option

Retries and reconciliation

Use bounded retry/backoff and a clear way to inspect unresolved events. Match the mechanism to the product's real risk.

Questions I ask before shipping

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?
The design goal is not maximum complexity. It is the smallest defensible set of controls for the product's requirements and failure modes.
What this reflects about my work

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.

Connect

Engineering starts where the happy path ends.

If you work on production integrations or platform architecture, I'm happy to compare approaches.