App backends: where your data and shared logic should live

Updated · 5 min read

What the backend actually does

The phone shows the screens, but it should not hold everything. A backend stores user accounts, records and files, decides who may see or change each item, and runs logic that must stay private, such as checking a payment, sending a notification or calling an AI model with a secret key. It also keeps data in step across the user's devices.

Backend-as-a-service: a fast start with platform rules

A backend-as-a-service (BaaS) gives you a hosted database, sign-in, file storage and real-time updates, configured through a console and client libraries. Firebase and Supabase are the two names most teams meet first. This speeds up early builds because you do not write the plumbing.

The trade-off is that your access rules live in the platform's own format, such as Firebase security rules or Postgres row-level security policies. Those rules are easy to get wrong, and moving to another platform later means rewriting them.

Custom API: more control, more responsibility

A custom API is code you write in a framework such as Node.js, Python or Go, hosted on a cloud provider you choose, with a database whose schema you own. It takes more effort at the start, and you are responsible for updates, monitoring and backups.

It suits apps with complex business rules, strict requirements on where data sits, or a plan to run the same logic across several products. Because the code and the database are yours, moving provider is a matter of planning rather than rewriting.

Serverless functions: pay for what runs

Serverless functions run your code only when a request or event arrives, on platforms such as AWS Lambda, Google Cloud Functions or Vercel functions. They are often paired with a managed database. This suits spiky traffic and webhooks from payment or messaging providers.

Watch two details. Functions that have been idle can take longer to respond on the next call, and many functions opening database connections at once can exhaust the database. Read each provider's current limits and pricing pages before you rely on either.

Five factors that decide the choice

Work through these in order before you pick a platform. Each one points toward a different option, and a tutorial cannot answer them for your business.

  • Data model: records with clear relationships favour a relational database; loosely nested content favours documents.
  • Traffic shape: steady use is easy to plan, while bursts and heavy real-time listening need careful limits.
  • Cost over time: model the bill per active user, using each provider's pricing page for reads, writes, storage and function runs.
  • Lock-in: check how easily you can export data and rewrite the logic if you change provider.
  • Data location and compliance: confirm which regions the provider offers and where it keeps backups and logs.

Mistakes teams make with app backends

The most common mistake is choosing by whichever tutorial came first. The second is putting secret keys inside the app, where anyone can extract them. The third is never testing a restore or an export, so the first real backup problem arrives in production.

  • Keep business logic in server-side code you can test, not only in client code.
  • Test that a user who should be blocked really is blocked.
  • Write down the data export process before you need it.

How Hundred Seas helps

Hundred Seas is a product studio in Taipei. We build native iOS and Android apps, web apps and internal tools, and the backend is chosen during scoping from the same factors listed above, so the data model and the data location fit your business rather than a habit.

Our process has three steps. A scope step of about one week at a fixed price ends in a written plan and a firm quote. The build then runs in weekly releases of working software, and a monthly run plan keeps the backend and the apps up to date.

Questions

Can I start on Firebase or Supabase and move to a custom API later?
Yes, and many teams do. Keep core business logic in functions you can call from a server you control, export your data on a schedule and avoid platform-only features for critical rules. The move is far easier when the database uses standard SQL or a documented export format.
Is a backend-as-a-service secure enough for customer data?
It can be, when the access rules are written and tested properly. Most problems in these setups come from rules that are too open, keys exposed in the app or missing checks on the server, rather than from the hosting itself. Test rules with a user who should be blocked, and review the provider's current security documentation.
Where should I store data for users in Taiwan or Singapore?
Check which regions each provider offers and where it keeps backups and logs, then compare that with the rules that apply to your business and customers. Some sectors have stricter requirements. Confirm with a qualified adviser or the relevant regulator, because regional options and rules change.
Do I need a server if my app is only a front end?
Not always. An app that only reads public information may need no backend at all. Once you store user records, take payments, send notifications or call a paid AI model with a secret key, you need some server-side code, even if it is a set of serverless functions.
How do I estimate backend running costs?
Model the bill per active user, using each provider's pricing page for reads, writes, storage, bandwidth and function runs. Test with a realistic sample of usage, then review a full month of real billing before you commit. Watch features that charge per call, such as continuous real-time listeners.

Have a project in mind?

Tell us what you want to build. We reply with a plan, not a sales call.

AboutApp backends: where your data and shared logic should live