Skip to content
Xispalabs

How we designed an offline-first SaaS on AWS

When building a product that must work without continuous connectivity, offline-first design is not optional: it shapes the data model, API and mobile experience from sprint one.

Local queue and synchronisation

The mobile app persists operations in a timestamp-ordered local queue. When connectivity returns, a sync worker sends batches to the API with idempotency keys. Conflicts resolve via documented last-write-wins with alerts for human review.

Serverless API and multi-tenant

We chose managed functions and a relational database with tenant_id isolation on every query. Rate limits and quotas apply per organisation.

Deployment and observability

Every merge to main deploys to staging; production requires manual approval. Sync queue depth, P95 latency and per-tenant error rates surface issues before users report them.

Lessons

  • Design the sync contract before screens.
  • Test intermittent network scenarios in CI.
  • Document conflict policy for support and audit.