Backend development
Building the server-side logic, data access and integrations.
The backend handles business rules, persistence, authentication and integrations with other systems. It needs to be correct, secure and observable. Product engineers move between frontend and backend to deliver a feature end to end.
Why it matters for a product engineer
The backend holds the rules of the business, the data, sign-in and the connections to other systems. It must be correct, secure and easy to observe. A product engineer moves between frontend and backend to deliver a feature end to end, so they do not wait for another team to add a field or an endpoint.
How to do it
- Put the business rules in one place on the server. Never trust a check that only runs in the browser.
- Keep configuration, such as keys and URLs, in the environment, never in the code.
- Treat the database, email, payments and queues as services you connect to, so you can replace one without rewriting the rest.
- Move slow work out of the request: a job queue can resize images or send emails while the user continues.
- Validate every input at the edge and return clear errors with the right status codes.
- Log what you need to answer “what happened to this user’s request?”, without personal data.
Common mistakes
- Business rules copied into the frontend and the backend, until they disagree.
- Secrets in the repository.
- Slow work inside the request, so the page waits for an email to send.
- Building your own sign-in, payments or email delivery when a proven service exists.
Example
Papermark, an open-source data room product, runs as a Next.js app on Vercel. On Starter Story its founders named the rest: Postgres on PlanetScale, Trigger.dev for background jobs, Resend for email and Stripe for payments. The code adds Tinybird for page-view events. The app holds the product logic, and each of the other parts is a service it calls. (Papermark in In practice)
Papermark's backend: one app and the services it calls
Twelve-factor calls these attached resources. The team builds the data room logic and rents the rest.
ReportedPapermark on Starter Story and its repository, 17 Nov 2026
Sources: Server-side website programming (MDN Web Docs) ↗ · The twelve-factor app (Adam Wiggins) ↗
In practice
Real productsResources
2- courseStart here
Server-side website programming ↗
MDN Web Docs · free courseHow servers, frameworks and databases fit together, with hands-on tutorials.
- articleStart here
The twelve-factor app ↗
Adam Wiggins (Heroku) · 30 minTwelve short rules for building services that deploy and scale cleanly, still the common baseline.
Tools
1- ToolOpen source