Arabix

Connecting your product to outside APIs without breaking it

Outside services go down, change and set limits. How to connect to them so a fault on their side stays a small problem on yours.

Almost every product depends on services it does not run: payments, prices, maps, messages, sign-in. Each one saves months of work, and each one can fail on a day you did not choose. A product built well keeps working when one of them stops. Here is how to connect to outside APIs so that a fault on their side stays a small problem on yours.

How outside services break a product

  • They go down, or become slow, and every page that waits for them waits too.
  • They change, renaming a field or retiring a version, often with short notice.
  • They limit you, refusing requests once you pass a quota or a rate.
  • They return something wrong, an empty answer or a value in a new format, without an error.

None of these is rare. Over a year, a product with several integrations is likely to meet all four.

What a sound integration needs

  1. One place in the code for each service, so a change on their side is fixed once.
  2. Time limits, so a slow service cannot hold a page or a user waiting.
  3. Checks on what comes back, before it is shown or saved.
  4. A planned fallback: the last good value with its date, a clear message, or a second provider.
  5. Retries with limits, spaced out, so a failing service is not flooded and your quota is not spent in minutes.
  6. Monitoring that tells the team when a service fails or starts to drift.
  7. Keys kept safe: stored on the server, never in the app or the page, with access limited to what each one needs.

Show the user the truth

When a service fails, the worst outcome is a screen that looks normal and is wrong. A clear message that a feature is briefly unavailable, or an older value shown with its time, keeps the user's trust. A silent zero or a stale number shown as new loses it.

Before you add the next integration

  • What happens to the product if this service is down for a day?
  • What does it cost when usage grows, and what are its limits?
  • How much notice does it give before changes, and who on your side reads it?
  • Can you leave it later without rewriting the product?

How we work on this with clients

  • We list every outside service your product uses and what depends on each one.
  • We put each integration in one place, with time limits, checks and a fallback.
  • We set up monitoring and keep keys on the server.
  • We keep watching the integrations after launch and adapt when a provider changes.

Our own finance products depend on outside data and messaging services, and we run them this way. If an outside service has taken your product down before, talk to us.