Chapter 01What does backend development actually include?
Short answerBackend development is the server side of software: APIs, business rules, data storage, integrations, background jobs, security and the infrastructure that keeps it all running. Users never see it directly, but they feel it in speed, reliability and trust.
When a user taps "Pay", the frontend sends a request. The backend checks who they are, confirms they are allowed to pay, validates the order, talks to the payment provider, writes records to the database, sends a receipt email and returns a result. All of that has to be correct, secure and fast, every time.
Backend work usually includes:
- APIs: the contracts that web, mobile and partner apps call.
- Business logic: the rules that make your product what it is.
- Data: schemas, queries, migrations and backups.
- Integrations: payments, email, CRMs, ERPs and third party services.
- Background work: queues, scheduled jobs and event processing.
- Security: authentication, permissions and protection against attacks.
- Operations: logging, monitoring, deployments and incident response.
A good backend is boring in the best sense. It does what it promises, fails gracefully when something outside it breaks, and is easy for the next engineer to understand.
Chapter 02How do you choose a backend language and framework?
Short answerChoose based on your team's skills, your hiring market, your infrastructure and the type of work. Node.js suits API heavy and real time apps, Python suits AI and data, Java and .NET suit large enterprises, Laravel suits fast web builds and Go suits high throughput services.
Every mainstream backend language can build a reliable product. Most failures come from poor design, not the language. So start with practical questions:
- What does the team already know? Productivity in a familiar language beats theoretical benefits of a new one.
- Who can you hire? Node.js, Python and Java have large pools almost everywhere. Go and Elixir pools are smaller.
- What is the work? AI and data lean towards Python. Real time features lean towards Node.js or Go. Complex enterprise domains lean towards Java or .NET.
- What infrastructure do you run? Azure shops often prefer .NET. Kubernetes heavy platforms often use Go for tooling.
- How long will it live? Long lived systems benefit from strong typing and mature ecosystems.
Mixing languages is fine when each has a clear job, such as a Node.js API with a Python service for AI features. Avoid adding a new language just because one engineer likes it. Try the stack picker above with your own answers.
Chapter 03Should you build a monolith or microservices?
Short answerStart with a well structured monolith for most products. It is faster to build, easier to test and cheaper to run. Split out services later when a clear part of the system needs to scale, deploy or be owned separately.
A monolith is one application with one codebase and one deployment. Microservices split the system into many small services that communicate over the network.
| Modular monolith | Microservices |
| Speed to start | Fast | Slower, more setup |
| Testing | Simpler, one app | Harder, many moving parts |
| Scaling | Scale the whole app | Scale each service on its own |
| Team independence | Shared codebase | Teams deploy separately |
| Running cost | Lower | Higher, more infrastructure |
The middle path works well: a modular monolith with clear internal boundaries between areas such as billing, accounts and orders. If one area later needs its own scaling or team, it can be lifted out as a service with far less pain. Many teams who started with dozens of microservices later merged some back together.
Chapter 04When does serverless make sense?
Short answerServerless functions such as AWS Lambda run code on demand without managing servers. They suit spiky or low traffic workloads, event processing and glue between services. Steady high traffic, long running jobs and tight latency needs often fit containers better.
With serverless, you upload functions and the cloud provider runs them when events arrive: an HTTP request, a file upload, a queue message or a schedule. You pay for what runs and do not patch servers.
Good fits
- APIs with unpredictable or low traffic.
- Processing uploads, webhooks and queue messages.
- Scheduled tasks and automation.
- Small teams who want minimal operations work.
Watch out for
- Cold starts: the first request after idle time can be slower.
- Time limits: long jobs may need containers or step functions.
- Cost at scale: steady heavy traffic can cost more than containers.
- Local testing: emulating the cloud locally takes extra setup.
Many products combine both: containers for the main API and serverless functions for events and background tasks. See cloud engineering and our cloud and DevOps technologies.
Chapter 05How do you design a good API?
Short answerDesign around what clients need, use consistent naming and error formats, version deliberately, paginate lists, document everything in OpenAPI or a GraphQL schema, and treat the API as a contract you do not break without warning.
An API is a promise. Mobile apps in users' pockets may call it for years, so changes must be careful.
- Consistent resources and names: predictable URLs and fields make APIs easy to learn.
- Clear errors: one error format with a code, a message and details on which field failed.
- Pagination and filtering: never return unbounded lists.
- Idempotency: let clients safely retry payments and other critical calls with an idempotency key.
- Versioning: add fields freely, but plan versions or deprecation periods for breaking changes.
- Documentation: OpenAPI or GraphQL schemas, with examples, generated into client SDKs where useful.
REST, GraphQL or gRPC?
REST is simple, cacheable and understood by everyone. GraphQL suits products where many screens need different slices of related data. gRPC is fast and strongly typed, ideal between internal services. Many systems use REST or GraphQL for clients and gRPC inside. See API development.
Chapter 06How should you model data in the backend?
Short answerModel data around how it will be read and changed, enforce rules in the database where you can, use migrations for every change, and choose relational databases by default. Reach for document, key value or search stores when the data truly calls for them.
Data outlives code. A poor schema can slow a product for years, while a clear one makes features easy.
- Start relational: PostgreSQL or MySQL handle most products well, with transactions and strong consistency.
- Use constraints: foreign keys, unique indexes and not null rules catch bugs the code misses.
- Migrations: every schema change scripted, reviewed and reversible.
- Indexes for real queries: add them based on how data is actually read, and check query plans.
- Soft deletes and audit: decide early how deleted and changed records are kept, especially for regulated data.
ORMs such as Prisma, TypeORM, Django ORM, Hibernate, Entity Framework and Eloquent speed up development. Engineers still need to understand the SQL they produce, because hidden extra queries are a common cause of slow endpoints. See our database technologies.
Chapter 07How should a backend handle login and permissions?
Short answerUse a proven identity provider or framework rather than writing your own, support single sign on and multi factor login where customers need it, and check permissions on the server for every request, ideally in one central place.
Authentication answers "who are you?". Authorisation answers "what are you allowed to do?". Both are easy to get subtly wrong.
- Do not roll your own: use providers such as Auth0, Cognito, Azure AD B2C, Keycloak or the built in tools in Django, Laravel, Spring Security or ASP.NET Identity.
- Standards: OAuth 2.0 and OpenID Connect for login, SAML or OIDC for enterprise single sign on.
- Multi factor: offer it to all users and require it for admins.
- Central permission checks: one policy layer, not checks scattered across controllers.
- Tenant isolation: in SaaS products, every query must be scoped to the right customer.
Broken access control is one of the most common serious security flaws in web apps. Tests that try to read another user's or tenant's data should be part of every backend test suite.
Chapter 08What are the main backend security risks?
Short answerThe biggest risks are broken access control, injection, weak authentication, exposed secrets, vulnerable dependencies, server side request forgery and missing rate limits. Following the OWASP Top 10, scanning dependencies and reviewing code catches most of them.
The OWASP Top 10 is the standard list of web application risks. For backends, the ones we see most often are:
- Broken access control: users reaching data or actions they should not.
- Injection: SQL or command injection from unsafe query building. Parameterised queries prevent it.
- Secrets in code: keys committed to repositories. Use a secrets manager.
- Vulnerable dependencies: outdated packages with known flaws. Scan and update regularly.
- Server side request forgery: servers tricked into calling internal addresses.
- No rate limiting: login and costly endpoints open to brute force and abuse.
- Verbose errors: stack traces leaking internal details to attackers.
Security is a habit, not a phase. Code review, automated scanning in CI, least privilege access to databases and cloud resources, and regular dependency updates do most of the work. See AI security for risks specific to AI features.
Chapter 09When should work run in the background?
Short answerAnything slow, unreliable or not needed for the immediate response should run in the background: emails, reports, file processing, third party calls and data syncs. Queues make this reliable, with retries, dead letter queues and monitoring.
Users should not wait while your server generates a PDF or calls a slow partner API. Move that work to a queue and respond straight away.
- Queues: SQS, RabbitMQ, Redis based queues such as BullMQ or Sidekiq, and Celery for Python.
- Retries with backoff: try again after growing delays when a partner is down.
- Dead letter queues: park messages that keep failing so a person can look.
- Idempotent jobs: make jobs safe to run twice, because at some point they will be.
- Scheduling: cron style jobs for reports and cleanup, with alerts if they fail to run.
For systems where many services react to the same events, event streams such as Kafka add durable, replayable history. They are powerful, but bring their own operational load, so use them where the need is real. See our data technologies.
Chapter 10How should a backend use caching?
Short answerCache data that is read often and changes rarely, close to where it is needed: in the CDN, in Redis or in memory. Decide upfront how each cache is refreshed or cleared, because stale data bugs are among the hardest to find.
Caching can make a slow endpoint fast and cut database load sharply. It can also serve users wrong information if done carelessly.
| Where | What to cache |
| CDN or edge | Public pages, images, API responses that are the same for everyone |
| Redis or Memcached | Sessions, computed results, rate limit counters, popular lookups |
| In process memory | Small, rarely changing configuration |
| Database | Materialised views and summary tables for reports |
For every cache, write down how long data may be stale and what clears it. Measure hit rates, and remember that caching hides problems as well as solving them. Fix slow queries first, then cache.
Chapter 11How do you know what a backend is doing in production?
Short answerThrough structured logs, metrics and distributed tracing, tied together with request IDs, plus alerts on symptoms users feel such as error rates and slow responses. Good observability turns a long outage into a short one.
When something breaks at 2am, the team needs answers quickly: what is failing, for whom, since when and why.
- Structured logs: JSON logs with request IDs, user or tenant IDs and clear messages, never secrets.
- Metrics: request rates, error rates and response times for each endpoint, plus queue depths and database health.
- Tracing: OpenTelemetry traces that follow one request across services.
- Alerts: on user facing symptoms, routed to the right people, with runbooks.
- Dashboards: a small number that people actually look at.
Tools vary by budget and cloud: Datadog, New Relic, Grafana with Prometheus and Loki, CloudWatch, Azure Monitor and Sentry for errors. The habit matters more than the tool. See DevOps services and AIOps.
Chapter 12How do you make a backend fast and able to scale?
Short answerMeasure first, then fix the real bottleneck. That is usually slow queries, missing indexes, extra database calls, chatty integrations or blocking work in the request. Scale out with stateless services, caching, queues and read replicas when needed.
Most slow backends have a handful of causes:
- N plus one queries: one query per item in a list instead of one query for all.
- Missing indexes: full table scans on growing tables.
- Synchronous third party calls: waiting on slow partners in the request path.
- Large payloads: sending far more data than the client needs.
- Lock contention: many requests fighting over the same rows.
Scaling steps, in order
- Fix queries and add indexes.
- Move slow work to background jobs.
- Add caching where data allows.
- Run several stateless instances behind a load balancer.
- Add read replicas for heavy read traffic.
- Split out services or shard data only when the above is not enough.
Load testing with tools such as k6 before a launch or campaign shows where limits are before customers find them. See our QA technologies.
Chapter 13How should a backend be tested?
Short answerUse unit tests for business rules, integration tests against real databases in containers, contract tests for APIs, and a few end to end tests for key journeys. Run them all in CI on every pull request, and add load and security testing before big releases.
| Layer | What it checks | Common tools |
| Unit | Business rules and calculations | Jest, Vitest, pytest, JUnit, xUnit, PHPUnit, Go test |
| Integration | Code with a real database, queue or cache | Testcontainers, Docker Compose |
| Contract | APIs match what clients expect | Pact, OpenAPI validation |
| End to end | Full journeys through the system | Playwright, Postman, REST Assured |
| Load | Behaviour under heavy traffic | k6, JMeter, Gatling |
Integration tests against a real database catch far more bugs than mocks of the database. Containers make them fast and repeatable. Include tests for permissions and tenant isolation, since those failures are the most damaging. See QA and testing.
Chapter 14How should backend changes reach production?
Short answerThrough automated CI and CD pipelines that test, build containers, run database migrations safely and deploy with rolling, blue green or canary releases. Feature flags let you ship code dark and turn it on gradually.
Manual deployments are slow and risky. A good pipeline makes releases small, frequent and dull.
- CI: every pull request runs tests, linting and security scans.
- Containers: the same Docker image runs in test, staging and production.
- Safe migrations: change the database in backward compatible steps so old and new code can run side by side.
- Gradual releases: rolling, blue green or canary deployments with automatic rollback on errors.
- Feature flags: separate deploying code from releasing features.
- Infrastructure as code: Terraform or similar, so environments are reproducible.
See DevOps services and our cloud and DevOps technologies.
Chapter 15How do you build a backend for a multi tenant SaaS product?
Short answerChoose an isolation model early: shared tables with a tenant ID, a schema per tenant or a database per tenant. Enforce tenant scoping centrally, plan per tenant limits and billing, and test isolation constantly.
In SaaS, many customers share one system. The backend must keep their data strictly apart while staying efficient to run.
| Model | Strength | Tradeoff |
| Shared tables with tenant ID | Cheapest and simplest to run | Isolation depends on code discipline |
| Schema per tenant | Clearer separation | Migrations across many schemas |
| Database per tenant | Strongest isolation, easy data residency | Highest cost and operations work |
Whatever the model, apply tenant scoping in one place, such as a query layer or row level security in PostgreSQL, rather than trusting every developer to remember. Add per tenant rate limits, usage tracking for billing and audit logs that enterprise customers will ask for. See SaaS product development.
Chapter 16How do you build reliable integrations with other systems?
Short answerTreat every outside system as unreliable. Use timeouts, retries with backoff, idempotency and queues, verify webhooks, log every exchange, and wrap each integration in its own module so a partner change does not ripple through your code.
Payments, CRMs, ERPs, shipping providers and identity systems all fail sometimes. A robust integration expects that.
- Timeouts everywhere: never wait forever on a partner.
- Retries with backoff: and a limit, so you do not hammer a struggling service.
- Idempotency: repeated calls must not create duplicate orders or payments.
- Webhook verification: check signatures and handle events arriving twice or out of order.
- An adapter per partner: one module that translates between their API and your domain.
- Reconciliation: scheduled checks that both systems agree, with alerts when they do not.
ERP integrations deserve extra care because financial data must match exactly. See ERP integration and our ERP platforms page.
Chapter 17How do you add AI features to a backend?
Short answerPut AI calls behind your own backend service, never directly in the browser. Control prompts, costs, rate limits and data access there, add retrieval for your own content, log and evaluate outputs, and plan fallbacks when a model is slow or wrong.
Most AI features in products are backend work. The model is one component; the engineering around it decides whether the feature is safe and useful.
- A gateway service: one place that calls OpenAI, Claude, Gemini or open models, with keys kept secret.
- Data access rules: the model should only see data the current user is allowed to see.
- Retrieval: search your own documents and pass relevant passages to the model. See RAG development.
- Cost and rate limits: per user and per tenant limits, caching and model routing.
- Evaluation and logging: track quality and catch regressions. See AI evaluation and LLMOps.
- Fallbacks: timeouts and graceful messages when the model fails.
Python is common for AI heavy services, but Node.js, Java, .NET and Go all have solid SDKs. See our AI and ML technologies.
Chapter 18How do you modernise an old backend safely?
Short answerUse the strangler pattern: put a gateway in front of the old system, build new features and replacements beside it, move traffic route by route and retire old parts as they empty. Add tests around current behaviour first so nothing breaks unnoticed.
Old backends often hold years of business rules that nobody fully remembers. A full rewrite risks losing them and takes longer than anyone expects.
- Map the system: endpoints, jobs, data flows, integrations and who uses what.
- Add safety nets: characterisation tests that record what the system does today.
- Upgrade in place where possible: new language and framework versions often bring big gains with less risk.
- Strangle gradually: route one capability at a time to new code behind a gateway.
- Migrate data carefully: sync old and new stores during the transition, with reconciliation checks.
Common examples include old PHP apps moving to modern Laravel, .NET Framework moving to modern .NET, old Java EE moving to Spring Boot, and Python 2 moving to Python 3. See legacy modernization.
Chapter 19How does a backend support GDPR, HIPAA and other rules?
Short answerCompliance lives mostly in the backend: where data is stored, who can access it, how long it is kept, how it is encrypted and how every access is logged. Design these in from the start, because retrofitting them across a live system is slow and costly.
Many clients we work with handle personal, health or financial data. Rules such as GDPR in Europe, HIPAA for US health data, PCI DSS for card payments and local data residency laws all shape backend design.
- Data mapping: know which fields are personal or sensitive and where they flow.
- Encryption: in transit with TLS everywhere, and at rest for databases, backups and files.
- Access control and audit: least privilege for people and services, with logs of who read or changed sensitive records.
- Retention and deletion: clear rules for how long data is kept, and working processes for deletion requests.
- Residency: keeping data in specific regions when customers or laws require it.
- Payments: never store raw card numbers. Use tokenisation from providers such as Stripe or Adyen to reduce PCI scope.
Engineers do not replace your legal or compliance advisors, but a backend designed with these rules in mind makes audits far smoother. Our engineers sign NDAs and work within your security policies and access controls.
Chapter 20What should you look for when hiring backend engineers?
Short answerLook for depth in your language, strong data and API design, security awareness, a testing habit, comfort with production operations and the ability to explain tradeoffs clearly. Seniority shows in design decisions and how they handle failure.
A strong backend engineer thinks about what happens when things go wrong, not only when they go right. Signs of real skill include:
- Designing schemas and APIs that will still make sense in two years.
- Knowing how their framework talks to the database and spotting slow queries.
- Building in timeouts, retries and idempotency without being asked.
- Writing integration tests and caring about observability.
- Understanding authentication, authorisation and common attacks.
- Explaining a technical tradeoff in plain language.
| Level | What they own |
| Mid level | Features end to end within an agreed design, with light review |
| Senior | Service design, data models, reviews, production support and mentoring |
| Lead | Backend architecture, standards, reliability goals and cross team planning |
Javixor Labs provides mid level, senior and lead backend engineers. See hire backend developers.
Chapter 21How do you work well with remote backend engineers?
Short answerGive them the same access, tools and rituals as your in house team, agree overlap hours, document architecture decisions, share on call duties fairly and review code together. Clear ownership of services makes remote work smooth.
- Overlap hours: a daily window for standups, reviews and incident handovers. We agree overlap with US, UK, European, Gulf and Australian teams.
- Same access: repositories, staging environments, logs and dashboards, with least privilege for production.
- Written decisions: short architecture decision records so context is not lost between time zones.
- Ownership: give engineers whole services or modules, not scattered tickets.
- On call: agree who responds to incidents and when, with runbooks.
Every Javixor Labs account has a named delivery lead who runs monthly check ins on hours, work done and feedback.
Chapter 22What drives the cost of backend work?
Short answerCost depends on the complexity of business rules, the number of integrations, data volume and sensitivity, security and compliance needs, the state of existing code and the reliability you need. Clear requirements and API contracts reduce cost the most.
Ballpark: $18 to $34 an hour per engineer, about $2,900 to $5,400 a month full time. These are ballpark figures. Your final cost is confirmed after the proposal discussion. The final price depends on scope. These factors move it most:
- Domain complexity: billing, scheduling and financial logic take more care than simple data storage.
- Integrations: each external system adds build, testing and monitoring work.
- Compliance: health, finance and government data add security and audit work.
- Reliability targets: high availability and disaster recovery need more design and infrastructure.
- Existing code: untested legacy code takes longer to change safely.
- Team shape: one engineer in your team, or a full team with DevOps and QA.
You get a written estimate before anything starts. For staff augmentation, you pay for the engineers you choose for as long as you need them, with no fixed term.
Chapter 23What backend mistakes cost the most?
Short answerThe costliest mistakes are starting with microservices too early, weak access control, no tests around business rules, synchronous calls to slow partners, missing observability, unsafe migrations and secrets in code.
- Microservices first: distributed complexity before the product has found its shape.
- Scattered permission checks: one missed check exposes another customer's data.
- No tests on core rules: every change to billing or pricing becomes a gamble.
- Waiting on partners: slow third party calls in the request path.
- Flying blind: no logs, metrics or traces when things break.
- Risky migrations: schema changes that lock tables or break running code.
- Secrets in repositories: keys that leak and are hard to rotate.
- Ignoring the database: treating the ORM as magic until queries slow to a crawl.
A short review of an existing backend by an experienced engineer usually finds the few changes that matter most.
Chapter 24How do you get started with Javixor Labs on backend work?
Short answerTell us your product, stack, team and goals. A delivery lead replies within one working day. After an NDA, you get engineer profiles to interview or a written plan and estimate for a project. Most engineers start within 72 business hours of a confirmed brief.
- Share the brief: what you are building, your language and cloud, your team and the help you need.
- NDA: we sign yours or send ours before you share details.
- Profiles or plan: engineer profiles for staff augmentation, or a written scope and estimate for a project.
- Interviews: you meet every engineer and choose.
- Start: engineers join your tools and rituals, usually within 72 business hours of a confirmed brief.
- Review: your delivery lead checks in monthly. No fixed term. End with notice.
Not sure which language fits? Use the stack picker at the top of this page and send us your results, or contact us directly.