JEEKSSHIRE 24

The server side of an app: what the backend consists of, where it runs and how it is built

The server side of an application, or backend, is everything that runs on a server rather than on the user's screen: accounts and permissions, business logic, calculations, the database, files, notifications and links to other systems. The mobile app, web interface and bot call it through an API and display the result. Reliability, security and how easily the product can grow all depend on the server side. That is why it is designed together with the screens rather than added at the end.

Open the software development page

What the server side is and how it differs from the interface

Any application that people use with their own account has two halves. The interface, meaning the screens on a phone, in a browser or on a computer, shows data and accepts the user's actions. The server side receives those actions, checks whether they are allowed, runs the logic, saves the result and sends back a response.

Users never see the server side, yet it decides whether they can see someone else's order, whether a discount is calculated correctly and whether a payment survives a dropped connection. A simple brochure website can almost do without it. A customer account, an online store, a booking service, a CRM, a bot with payments or an app for employees always needs one.

The main rule: everything that affects money, permissions and data is decided on the server. The interface can be faked or altered on the user's device, the server cannot. So amounts are calculated on the server, permissions are checked on the server, and the customer is shown the result.

What the backend includes

The composition depends on the product, but in most business applications the server side has similar building blocks:

Not every block is needed in the first version. Usually the team starts with what serves the main scenario and adds the rest in later releases. More on admin tools in the guide to admin panel development, and on data storage in the guide to the web app database.

One backend for the app, website and bot

A well-designed server side serves several interfaces at once. A mobile app for iOS and Android, a web account, a desktop version and a Telegram bot all call the same API and the same database. A customer can start an order in the bot and finish it in the app, and see the same thing in both.

This approach has an important consequence: mobile apps are not updated instantly. Some users keep an old version for weeks, so changes to the API are made in a way that keeps old versions working while they are still in use. To do this the API is versioned, new fields are added without breaking old ones, and outdated methods are switched off only once old versions have almost disappeared.

Another consideration is multiple languages. If the product serves several markets, texts, currencies, date formats and text direction are built into the server side from the start instead of being reworked later.

Where the server runs

The server side needs a place where it runs around the clock. There are several options, and the choice depends on load, data requirements and budget.

OptionWhat it isWhen it fits
Shared hostingSpace on a shared server with a ready-made environmentSimple websites without complex logic
Virtual or cloud serverYour own virtual server whose resources can be increasedMost web applications, customer accounts and bots
Managed cloud servicesThe provider takes care of the database, queues and file storageWhen you want to spend less effort on maintaining infrastructure
Several serversSeparate machines for the application, database and background jobsGrowing load and fault-tolerance requirements
The company's own serverHardware inside your own networkStrict requirements to keep data inside the company

Besides computing power, the choice is shaped by laws on where users' personal data is stored and by who will maintain the server: update the system, watch its protection and make backups. The provider is responsible for hardware and network, while the software and data are the responsibility of the service owner or their contractor.

Environments: development, testing and production

Changes are not written directly on the live server that customers use. There are usually several environments:

Each environment has its own settings and keys: the test server connects to the test modes of payment and other services, and production keys exist only on the production server. That way a check never charges a real card or sends customers an accidental mailing. Test data is prepared separately or made from an anonymised copy, so that customers' personal data does not end up where the whole team has access to it.

Deploying a new version is a separate procedure. Before it, the build, automated code checks and tests run; if a check fails, the version is not released. Changes to the database are made through migrations that are tested on a copy of the data. A good deployment does not stop the service and makes it possible to roll back quickly if something goes wrong. How to set up these checks is covered in the guide to software testing.

Reliability: monitoring, backups and growth

After launch, the server side has to be visible. Logs show what happened and where an error occurred. Monitoring tracks response time, errors, disk space and background jobs and immediately alerts the person in charge. Backups of the database and files are stored separately from the main server, and restoring from them is tested regularly.

Growing load is not a reason to rewrite everything. First the team looks at what exactly is slow: a slow database query, a heavy operation inside the user's request, a missing cache. Often it is enough to speed up the bottleneck, move long operations into background jobs and add server resources. Splitting into several servers and services makes sense once those steps have already been taken.

Background jobs deserve special attention. A mailing, report generation or an exchange with the accounting system may take minutes, and the user should not wait for them on screen. Such operations are put into a queue, executed separately and retried on failure, and monitoring watches the queue: if jobs pile up, the person in charge finds out before customers do.

Server-side security

The server is the main target for attacks because it holds the data and the money. The basic requirements are the same for any product:

Threats and protection are covered in detail in the guide to web application security.

How JEEKSSHIRE 24 builds the server side

When a mobile product or web service is needed, we build it end to end, from the screens to the server side, admin panel and integrations with CRM, warehouse and payment services. We design the data structure, access rights and scenarios at an early stage, and build languages and right-to-left text direction into the architecture from the start. Money is calculated on the server, and the customer is shown the result.

The build, linting and tests pass before deployment; if the gate is red, there is no release. Together with the product, the client receives configured failure alerts and backups of the server side, the source code and a description of how the product is built and released; terms for the code and rights are fixed in the contract. More on the pages for web application development and mobile app development, and all our services are collected on the software development page.

Frequently asked questions

Does a mobile app need a server side?

Almost always, if the app has accounts, orders, payments, sync between devices or data shared by many users. Only simple standalone apps can do without a server.

Can one backend serve the app, the website and the bot?

Yes, and it is often the right choice. All interfaces call the same API and the same database, so data and rules are identical everywhere.

What is an application API?

It is the set of server-side methods through which interfaces get data and perform actions: sign in, show the catalogue, place an order, pay.

Why is a test server needed?

To check a new version as a whole in conditions close to production but without real customers or money. Errors are caught there before users see them.

Who maintains the server after launch?

The provider is responsible for hardware and network, while updates, protection, backups and monitoring are handled by the service owner or their contractor under a support agreement.

IP geolocation by DB-IP