Primary data · sourced from public filings·700+ listed companies · India-first·
Open screener
ἀλήθεια · aletheiaAncient Greek for truth — literally “un-forgetting”: the act of revealing reality, not merely stating it
← All posts
Sector Thesis·4 min read·Week 26

Build Offline-First: India's Connectivity Realities Demand It

India's 4G penetration is 45%, but usage is uneven across tier-2/3 cities. Offline-first architecture isn't a feature—it's table stakes. This post breaks down patterns that Y Combinator portfolio companies use, with India-specific implementation examples.

ByAmit Tyagi·Fitoor Capital
Aletheia Insights · Weekly

Get 1 unfair insight every week from India's startup ecosystem.

Read by serious founders and investors. No fluff.

The India Connectivity Paradox

India has 850M smartphone users. Only 50% have consistent 4G. In tier-2/3 cities, connectivity is binary: on or off. No gradual degradation—just sudden, minutes-long blackouts.

Most founders ignore this until users bail. Paytm, Ola, and PhonePe didn't. They built for offline from inception. Result: they own India's UPI market.

Your product doesn't need to become a database. It needs local-first thinking: assume offline is default, online is luxury.

Three Patterns That Scale

1. Sync-On-Demand Architecture

Traditional apps: fetch data, display it, assume network.

Offline-first apps: fetch once, store locally, sync when available.

Implementation:
- Write all user actions to local SQLite first.
- Queue network requests (use a job queue library like Tauri or Watermelon).
- On reconnect, batch-sync using transactional endpoints.
- If sync fails, retry exponentially (1s, 2s, 4s, 8s cap).

Example: Logistical apps in India (Locus, Navi) queue delivery updates locally. When driver reconnects, 50 updates sync in one HTTP call. This reduces bandwidth 10x and feels instant.

Framework: This mirrors Y Combinator's "first principles for mobile" talk by Michael Seibel. Don't optimize for connectivity—optimize for the user's mental model. They expect their action to stick. Period.

2. Eventual Consistency with Conflict Resolution

Here's the hard part: two devices edit the same object offline.

User marks invoice paid on phone. Meanwhile, accountant marks it paid on desktop. On sync, who wins?

Wrong answer: "last write wins." You'll lose data.

Right answer: Use CRDTs (Conflict-Free Replicated Data Types) or application-level conflict logic.

Simple implementation for most Indian B2B apps:
- Every field has a timestamp and user ID.
- On conflict, use: last-write-wins + explicit manual review queue.
- For sensitive data (payments), never auto-merge. Flag for user review.

Tools: Automerge, Yjs, or build your own JSON merger (100 lines of code).

Non-obvious insight: CRDTs were invented for distributed systems, but India's spotty networks make every user a distributed system. Your Delhi office and Bangalore field team aren't syncing in real-time anyway.

3. Smart Caching Patterns

Don't cache randomly. Cache by utility.

- Hot data (user profile, recent orders): cache for 7 days, refresh on app open.
- Cold data (historical reports): cache indefinitely, provide "offline version" notification.
- Real-time data (inventory, prices): don't cache. Show stale indicator if offline.

Implementation:
```
if offline:
show_cached_version()
show_stale_badge("Last updated 2 hours ago")
else:
fetch_fresh()
cache_it()
```

This costs nothing but trust is massive. Users prefer "stale but honest" over "offline and pretending."

Example: Shopify's mobile POS app caches product catalogs. Merchants can still ring sales offline. On reconnect, syncs in seconds. Took them 2 years to get right.

The Testing Reality Check

Synthetic testing (throttle network in dev tools): catches obvious bugs.

Real-world testing (use actual 2G hotspot in Indore): catches the brutal stuff.

What to test:
- App launch with zero connectivity. Should work or fail gracefully.
- Network toggle during upload (user is mid-action). Should queue and retry.
- Sync conflicts (same user, two devices). Should resolve or prompt.
- Storage limits (old Android phones: 16MB app cache max). Should evict old data.

Framework from "The Messy Middle" by Scott Belsky: prototype against reality, not assumptions. If you haven't tested your app offline in a moving auto-rickshaw, you don't know your product.

Investor Signal

When pitching, mention offline-first explicitly. It signals:
1. You've thought about Indian TAM beyond metros.
2. You understand unit economics (lower bandwidth = lower COGS).
3. You're building for retention, not churn.

Angle investors look for founders who've solved hard problems visibly. Offline-first is visible, hard, and profitable.

Implementation Checklist

- [ ] Local SQLite schema matches server schema.
- [ ] Queue library (Bull, Watermelon, Tauri) integrated.
- [ ] Exponential backoff for retries implemented.
- [ ] Conflict resolution logic documented (not coded by accident).
- [ ] Cache invalidation strategy defined (not "clear it all").
- [ ] Tested offline on real device, real network.
- [ ] User-facing indicator shows sync status ("3 pending uploads").
- [ ] Analytics track sync failures and network quality by region.

The Non-Obvious Insight

Offline-first architecture makes you faster online too.

Local-first apps are 100-500ms snappier. Users feel responsiveness before data arrives. This compounds into habit formation. PhonePe users stay longer because the app feels instant, even in Guwahati during peak hours.

You're not building for offline—you're building for responsiveness. Offline is just the test case that proves it.

Your Move

If you're building for India and not prioritizing offline-first, you're leaving 400M users on the table and losing to competitors who aren't.

Start with sync architecture. Test on real connectivity. Ship in tier-2 cities first. You'll find bugs that metros hide.

Amit Tyagi

Founder, AletheiaAI & GP, Fitoor Capital

Veteran of India's startup ecosystem. Writing about fundraising, investor psychology, and what it takes to build fundable startups in India.

Run a fundability check

India's only MRE-backed platform for founders and investors. Analyse your deck, find investors, and validate your raise strategy.

#offline-first#mobile-architecture#india-product#technical-decisions

Don’t miss the next one

One insight every week. No fluff.

Aletheia Insights · Weekly

One contrarian insight. Every week. No generic startup advice.

Join founders and investors building with better information.

Build Offline-First: India's Connectivity Realities Demand It · Aletheia Insights