Where should you host a mobile app backend in India?
Host a mobile app backend in India on a KVM VPS in Mumbai (BOM1) or Delhi NCR (DEL1), whichever is nearer your users. It runs your API, database and uploaded files on one server with full root. A RapidServer VPS starts at ₹581/mo plus 18% GST, ready a few minutes after payment, with daily backups kept for 7 days and 24/7 support.
What a mobile app backend needs
Everything the app calls lives on a server you control:
- An API that the app calls over HTTPS, usually returning JSON.
- A database for users, orders, messages and settings.
- File storage for photos, documents and other uploads.
- Push notifications, sent through the platform services rather than from your own server to the phone.
Backend-as-a-service vs your own VPS backend
A backend-as-a-service (BaaS) is a ready-made hosted backend you plug the app into. Your own VPS backend is code you write and run yourself. Both are valid; this is how they differ:
| Backend-as-a-service | Your own VPS backend | |
|---|---|---|
| Setup time | Fast, with ready-made features | You build the API, or use a framework |
| Control over code and database | Limited to what the service offers | Full root and any database |
| Server location | Depends on the service and region you pick | Mumbai (BOM1) or Delhi NCR (DEL1) |
| Pricing | Usually grows with usage | Fixed monthly plan plus 18% GST |
| Moving away later | Can need a rewrite or data export | Your code and database stay yours |
| Operations work | Handled by the service | You, or managed support |
A server for a mobile app in India: Mumbai or Delhi NCR
Every request the app makes travels to your server, so distance matters on slow mobile networks. RapidServer has two Indian data centers, and a VPS costs the same in either (data centers):
- Mumbai (BOM1): typically 1–4 ms to Mumbai and Pune and 12–18 ms to Hyderabad, Bengaluru and Chennai. See VPS in Mumbai.
- Delhi NCR (DEL1): typically 1–8 ms across Delhi NCR, and about 5 ms to Chandigarh and Jaipur. See VPS in Delhi.
We have no data center in Noida; Noida is served from DEL1. These are indicative round trips; mobile networks vary. Pick the city closest to most of your users, and you can move a server later.
Step 1: Run the API and database
Use the language your team knows. Each has a guide with the full setup on a VPS:
- Node.js hosting: Express or similar, kept running and put behind Nginx.
- Python hosting: Django, Flask or FastAPI.
- Laravel hosting: PHP with a queue worker and scheduler.
- Docker hosting: any stack as containers in Compose.
For the database, PostgreSQL is a common choice, and MySQL works as well. Keep it listening on 127.0.0.1 or the private network between your servers, never on the public IP. Uploaded photos and files go on the VPS's NVMe disk, outside the code folder, and are included in your backups. If the disk fills, move up a plan.
Step 2: Push notifications with FCM and APNs
Your server does not push straight to a phone. Android notifications go through Firebase Cloud Messaging, and iPhone notifications go through Apple's push service, described in Apple's remote notification server docs. The usual flow is:
- The app asks the platform for a device token and sends it to your API.
- Your API stores the token against the user in your database.
- When something happens, a worker on your VPS sends the message to the platform service, which delivers it to the device.
Keep the service credentials in environment variables, not in the app.
HTTPS and keeping the API safe
Both platforms expect apps to talk to servers over HTTPS, so put Nginx in front of the API and add a free certificate with Certbot as in our Node.js hosting guide (see also SSL certificate kya hai). Then:
- Open only SSH, 80 and 443 in the firewall (firewall guide) and log in with SSH keys (SSH kya hai).
- Every VPS has always-on DDoS filtering (DDoS-protected VPS).
Backups and keeping user data in India
Every RapidServer VPS gets an automated daily backup kept for 7 days, plus snapshots on demand before a risky release. Also dump the database nightly and copy it off the server (VPS backup guide); that is your own off-server copy.
On location, our data centers page says primary data and backups are stored in India, which simplifies DPDP Act and sector-specific residency requirements. That covers what you keep on your VPS; if your app sends data to other services, such as the push platforms, check where those keep it. Whether a rule applies to your app is a question for your own advisor.
Scaling up and which plan to pick
- Stardust (2 vCPU, 4 GB RAM, 20 GB NVMe, ₹581/mo): a launch, a pilot or a staging backend.
- Crescent (2 vCPU, 4 GB RAM, 80 GB NVMe, ₹862/mo): a live app with an API, database and a growing upload folder.
- Full Moon (4 vCPU, 8 GB RAM, 160 GB NVMe, ₹1,723/mo): a busier app with workers and caching.
Watch CPU, memory and disk in the client area, and upgrade when they run high; upgrades are prorated to the day and billing is monthly plus 18% GST. Later, move the database to its own VPS in the same region over the private network. Support works 24/7; managed support adds ₹1,499/mo (managed vs unmanaged).
Dedicated vCPU, NVMe and full root in Mumbai or Delhi NCR, ready a few minutes after payment, from ₹581/mo.
See VPS plans