engineering··5 min read·WoWSQL Team

Mobile App Backend for India: Latency, OTP, Cost

Build a mobile app backend for Indian users: a Mumbai region, phone OTP over DLT-registered SMS, light payloads for weak 4G and low-end phones, and costs.

A good mobile app backend for Indian users puts the database in Mumbai, makes phone OTP the main login through a DLT-registered SMS route, keeps every response small enough for patchy 4G and entry-level Android phones, and has a bill you can predict. WoWSQL covers the backend side: a Mumbai region (ap-south-1), phone OTP through your own Twilio, Fast2SMS or MSG91 account, Postgres with a REST API, file storage and realtime, on plans from $0 to $99 a month. This guide walks through each decision with code, and it says where other options fit better.

WoWSQL is built by WoWSQL Technologies Private Limited in Thoothukudi, Tamil Nadu, which is recognised by Startup India (DPIIT) and is a member of NVIDIA Inception. The OTP and pagination code below was type-checked against @wowsql/sdk 3.10.0 and run against local mocks and a local PostgREST server on 28 November 2026, not against a live project. We quote no latency numbers: measure from real phones on your users' networks instead.

Key facts

  • Regions (regions API, 28 November 2026): Asia Pacific (Mumbai) ap-south-1, US East (N. Virginia) us-east-1, Europe (Frankfurt) eu-central-1. You choose the region when you create a project.
  • Phone OTP: POST /otp/send and /otp/verify with an E.164 number such as +919876543210 (auth docs). WoWSQL's auth service code supports Twilio, Fast2SMS and MSG91 as SMS providers, using your own account, with no platform fallback. Confirm the options in your dashboard.
  • Bot protection: optional Cloudflare Turnstile CAPTCHA on sign-up, login, OTP send and magic links. Turn it on before launch, because every OTP request costs you an SMS.
  • Plans (pricing): Free $0 (shared Postgres, 256 MB database, 512 MB files, 5 GB bandwidth, 10,000 MAU, read-only when over a limit); Pro $25/month (dedicated Postgres, 10 GB database, 100 GB files, 100,000 MAU, daily backups kept 7 days); Scale $99/month (2,000,000 MAU). Prices are in US dollars.
  • SDKs: TypeScript, Flutter/Dart, Kotlin, Swift and seven more (SDK docs).

Decision 1: Put the database in Mumbai

Every screen in a typical app makes several API calls, and each one pays the round trip to the database region. For users in India, a Mumbai database removes the extra distance to the US or Europe. If you also have customers abroad, read which region to choose for Indian users before deciding. Two practical rules:

  • Keep your server code in the same region as the database. An Edge Function or API server in another region doubles the long trip on every query.
  • Measure from phones, not your office fibre. Time a cheap request from a few test devices on Jio, Airtel and Vi in the cities you care about, and track the median and the slowest 5%.
// quick field check: time a tiny REST request from the app
const t0 = performance.now()
await fetch(`${PROJECT_URL}/rest/v1/app_config?select=key&limit=1`, { headers: { apikey: ANON_KEY } }) // any small public table
console.log('round trip ms', Math.round(performance.now() - t0))

Region is also a data-location choice. Choosing Mumbai keeps the database in India, which helps when you document where personal data is processed under the DPDP Act. It does not make an app compliant by itself; see the DPDP Act checklist for developers.

Decision 2: Phone OTP that actually arrives

Most Indian consumer apps sign people in with a mobile number. The hard part isn't the API call. It's delivery.

DLT registration. Domestic SMS in India goes through the operators' DLT (Distributed Ledger Technology) system. Twilio's India guidelines put it plainly: for the domestic route, register your company and sender ID on an operator DLT portal first, and messages then arrive from your DLT-registered alphanumeric sender ID. Twilio's international route skips DLT, but messages come from random short numbers (Twilio India SMS guidelines, read 28 November 2026). A recognisable sender ID builds trust, so most Indian apps register.

Provider choice. WoWSQL lets you plug in your own account:

Provider What you configure Good fit
MSG91 Auth key, DLT template ID, sender ID Indian apps with an approved OTP template
Fast2SMS API key, route (including DLT routes), sender ID Indian apps that want simple setup
Twilio Account SID, auth token, sender number or messaging service Apps with users inside and outside India

These fields come from WoWSQL's auth service code. Templates and sender IDs must match what you registered on DLT, or operators drop the message.

The code. Normalise numbers before sending, because people type 98765 43210, 098765-43210 or +91 98765 43210:

// phone-otp.ts: phone OTP sign-in with @wowsql/sdk 3.10.0
import { ProjectAuthClient } from '@wowsql/sdk'

export const auth = new ProjectAuthClient({
  projectUrl: process.env.WOWSQL_URL!,   // e.g. a project created in Mumbai (ap-south-1)
  apiKey: process.env.WOWSQL_ANON_KEY!,  // wowsql_anon_...
})

// "98765 43210", "098765-43210", "+91 98765 43210" -> "+919876543210"
export function toIndianE164(input: string): string {
  const digits = input.replace(/\D/g, '').replace(/^0+/, '')
  const local = digits.length === 12 && digits.startsWith('91') ? digits.slice(2) : digits
  if (!/^[6-9]\d{9}$/.test(local)) throw new Error('Enter a 10-digit Indian mobile number')
  return `+91${local}`
}

export async function sendCode(rawPhone: string, captchaToken?: string) {
  const phone = toIndianE164(rawPhone)
  await auth.sendOtp({ phone, purpose: 'login', captchaToken })
  return phone
}

export async function verifyCode(phone: string, otp: string) {
  try {
    const res = await auth.verifyOtp({ phone, otp, purpose: 'login' })
    if ('session' in res && res.session) return res.session // { accessToken, refreshToken, ... }
  } catch {
    // wrong, expired or already-used code
  }
  throw new Error('That code did not work. Request a new one.')
}

In React Native, read the variables from your app config instead of process.env. The SDK posts to /api/auth/otp/send and /api/auth/otp/verify; the docs say the /auth/v1/... paths work too. The purpose field also accepts signup and password_reset. Test on your project whether login creates an account for a brand-new number or whether you need a signup step first.

Protect your SMS budget. OTP endpoints are a favourite target for SMS pumping, where bots trigger thousands of messages. Turn on Turnstile for /otp/send, add a resend timer of 30 to 60 seconds in the UI, and watch your provider's daily spend alerts. Offer email OTP or Google sign-in as a fallback for when SMS is slow.

Decision 3: Design for weak networks and entry-level phones

Plenty of your users will be on a crowded 4G cell, in a lift, or on an older Android phone with little free memory. The backend can help a lot:

  • Ask only for the columns a screen shows. select=id,title,price instead of select=* keeps JSON small and parsing fast.
  • Paginate with a cursor, not an offset. It stays fast as tables grow, and a retry after a dropped connection can't skip or repeat rows.
  • Shrink images on the device before upload. WoWSQL storage docs don't describe on-the-fly image resizing, so upload the size you'll display. See Upload images from React to cloud storage for a resize helper.
  • Set timeouts and retry with backoff. The SDK clients take a timeout option in milliseconds. Show cached data straight away and refresh in the background.
  • Reconnect realtime carefully. The docs say a socket closed with code 4003 means an invalid key: don't reconnect in a loop on that one.
// Keyset pagination over the REST API: newest first, 20 at a time
type Item = { id: string; title: string; created_at: string }

export async function fetchPage(before?: string): Promise<Item[]> {
  const cursor = before ? `&created_at=lt.${encodeURIComponent(before)}` : ''
  const res = await fetch(
    `${PROJECT_URL}/rest/v1/posts?select=id,title,created_at&order=created_at.desc&limit=20${cursor}`,
    { headers: { apikey: ANON_KEY, Authorization: `Bearer ${accessToken}` } },
  )
  if (!res.ok) throw new Error(`Feed failed: ${res.status}`)
  return res.json() // pass the last item's created_at as `before` for the next page
}

Index the column you page on (create index on posts (created_at desc);). If two rows can share a timestamp, add the id as a tiebreaker.

Decision 4: Know the real costs

WoWSQL plans are in US dollars: Free $0, Pro $25 and Scale $99 a month. Our BaaS pricing in rupees guide converts them at the 23 November 2026 FBIL rate (about ₹2,320 a month for Pro before GST) and explains how GST works for foreign-currency bills.

For OTP-heavy apps, SMS is often the bigger line. As a public reference point, Firebase's phone auth, through Google Cloud Identity Platform, lists $0.07 per SMS to India, with the first 10 SMS a day not billed (Identity Platform pricing). At that list price, 10,000 OTP messages a month would cost about $680. Indian DLT providers price in rupees and change their rate cards often, so get current quotes from MSG91, Fast2SMS or others before you budget. Keeping people signed in with refresh tokens, instead of sending a new OTP every day, can save more than any plan choice.

Options for an India-first app

Nearest region to India Phone OTP Billing Fits when
WoWSQL Mumbai ap-south-1 Your Twilio, Fast2SMS or MSG91 account USD; Free, $25, $99 You want Postgres, auth, storage and realtime in one plan with a Mumbai region
Supabase South Asia (Mumbai) ap-south-1 (regions) Your MessageBird, Twilio, Vonage or Textlocal account (docs) USD; Free, Pro from $25 You want the largest Postgres BaaS ecosystem; Free projects pause after a week idle
Firebase Firestore in asia-south1 (Mumbai) and asia-south2 (Delhi) (locations) Built in, billed per SMS; not on the free Spark plan Pay as you go on Blaze Offline-first apps already on Firebase
Appwrite Cloud Nearest listed: Singapore; Bangalore listed as "coming soon" (regions) Built in (phone auth docs) USD You prefer Appwrite's open-source platform
Voroa Managed Postgres in Mumbai Not included INR with a GST invoice, from ₹299/month plus GST (Voroa) You only need a database and want rupee invoices

Checked 28 November 2026. Firebase is ahead for offline-first apps, with its local cache and built-in phone auth. Supabase has a bigger community and more integrations. Voroa beats everyone here on rupee billing with GST, but it gives you a database rather than auth, storage and realtime. WoWSQL's case is a Mumbai region, phone OTP through Indian SMS providers, and one predictable plan for the whole backend.

Launch checklist

  • Project created in Mumbai, server code in the same region.
  • DLT entity, sender ID and OTP template approved; the SMS provider tested on Jio, Airtel and Vi numbers.
  • Turnstile enabled on OTP send; resend timer in the app.
  • RLS on every table that holds user data; the service key never inside the APK or IPA.
  • Lists paginated, images resized on the device, timeouts set.
  • Pro plan (or your own backups) before real user data goes in, since Free has no platform backups.

Related guides

FAQ

What is the best backend for an Indian mobile app?

One with a Mumbai region, phone OTP that works with DLT-registered Indian SMS providers, and predictable pricing. WoWSQL and Supabase both offer Mumbai with Postgres, auth and storage; Firebase suits offline-first apps already on Google's stack. Measure latency from real phones before you commit.

How do I add OTP login to an app in India?

Register your business, sender ID and OTP template on an operator DLT portal, connect an SMS provider such as MSG91, Fast2SMS or Twilio to your backend, then call send-OTP and verify-OTP endpoints with the number in E.164 format (+91 plus 10 digits). Add CAPTCHA and a resend timer to stop SMS abuse.

Do I need DLT registration to send OTP SMS in India?

For domestic routes, yes: operators require the business and sender ID to be registered on DLT, and templates must match. Twilio's international route doesn't need DLT, but messages arrive from random short numbers instead of your brand name, which users trust less.

Which server region should I use for app users in India?

Mumbai (ap-south-1) on AWS-based platforms, or a Mumbai or Delhi region elsewhere. Keep your API or functions in the same region as the database. If most paying customers are abroad, compare the trade-offs first.

How do I make my app fast on slow mobile networks?

Request only the columns each screen needs, paginate with a cursor, resize images on the device before upload, cache the last response and show it instantly, and set timeouts with retries. Those changes usually matter more than raw server speed.

How much does a backend for an Indian app cost per month?

On WoWSQL, $0 on Free (up to 10,000 monthly active users), $25 on Pro and $99 on Scale, billed in US dollars. Add your SMS provider's per-message charges for OTP, which often exceed the plan price for phone-first apps with many daily logins.

Create a free WoWSQL project · Pricing · Auth docs