Engineering

Designing financial software for intermittent connectivity

Offline-first is not a nice-to-have in many Nigerian deployments. A practical pattern for queueing, reconciliation and honest user feedback.

6 min read

Most software is written by people on good connections, tested on good connections, and demonstrated on good connections. Then it is used on a bus.

Offline is not an edge case here

In the environments we build for, losing the network is not an exception to handle gracefully. It is a normal condition that recurs many times a day. Treating it as an error state produces an application that spends a meaningful share of its life showing an apology.

The alternative is to design the application as if the network were a background synchronisation mechanism rather than a prerequisite for using the product. That is a bigger architectural commitment than adding a retry, and it has to be made early.

Local first, reconcile later

The pattern that works is a local store that the interface reads from and writes to directly, plus a synchronisation process that moves changes to and from the server when a connection exists. The interface never waits on the network to render, and never blocks an action that can be queued.

This immediately raises the question everyone wants to skip: what happens when the local version and the server version disagree. There is no universal answer, but there is a universal discipline — decide the conflict rule per data type, write it down, and make it visible when it fires. Silent resolution is how users lose trust permanently.

Not everything can be queued

Financial actions deserve special care. A transfer is not a note that can be drafted offline and synced later without consequence. Our rule is simple: actions that move money require a live confirmed connection and an idempotency key, and we say so in the interface rather than queueing them and hoping.

Idempotency keys matter more than retries. On a flaky connection, the most dangerous failure is not the request that fails — it is the request that succeeds, whose response never arrives, and which the client then retries. A server that recognises a repeated key and returns the original result turns a potential double payment into a non-event.

Budget the bytes

Data costs real money to the people using the product. We treat payload size as a product requirement with a number attached, not as an optimisation to revisit later. In practice this means paginating aggressively, requesting deltas rather than full collections, compressing responses, deferring images and avoiding the habit of shipping an entire reference dataset to refresh one field.

It also means being honest in the interface about what an action will cost. An explicit "refresh all accounts" control that the user chooses is better than a background poller quietly consuming their bundle.

Test the bad path properly

Network conditioning belongs in the development loop, not in a pre-launch test cycle. We run day-to-day development against a throttled, lossy profile, and we include forced-disconnect scenarios in the automated suite: disconnect mid-write, disconnect after send but before response, reconnect with a stale local copy, and reconnect after a server-side change to the same record.

Teams that only test these paths manually test them rarely, and rarely is not often enough for a condition that occurs hourly in production.

What users notice

The reward for all of this is not a feature anyone can name. It is the absence of a complaint. The application opens instantly, shows what it knows, tells you how fresh it is, and stops pretending that a spinner is an acceptable answer to a question it could already answer locally.


This article reflects our delivery experience and is general information, not legal, regulatory or investment advice. Seek advice appropriate to your own circumstances before acting on it.

Working on something like this?

We would be glad to compare notes, whether or not it leads to an engagement.

Contact us