Browser server and database
A web application is a conversation
A browser displays an interface and sends requests. A server receives requests and returns responses. A database stores information that can survive after a request finishes. In our fictional Notes app, Mina opens her note titled Reading list. The browser requests it; the server checks whether Mina may read it, retrieves it from storage, and returns the title. The browser does not need direct database access.
Follow the components
A reverse proxy is a service in front of the application that forwards requests to it. One possible path is browser → reverse proxy → application → database; the result travels back. The proxy may terminate TLS (the encrypted connection) and establish a separate protected connection to the application. The application implements business rules; the database persists records. Small apps may combine components or omit the proxy.
Two requests, two outcomes
In a synthetic example, Mina requests her note N1. The application permits the read and returns its title. Omid requests his own note N2; the same service returns that title instead. The same interface can serve different users because the server evaluates each request in its own identity context. The application should retrieve only the information the caller may receive.
Separate availability from authorization
A reachable proxy does not prove that the application or database is healthy. If the database is unavailable, the application may return an error rather than a note. Conversely, healthy components may correctly refuse access. A private database network limits exposure but does not remove the need for permission checks in the application.
Draw a request path
On paper, draw a browser, proxy, app and database. Mark the component that decides whether a note belongs to the requester and the component storing the note. Expected: the application enforces the decision (possibly with data-layer controls too); the database stores the note. Next, learn what the request and response actually contain.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Browser server and database — Knowledge check
Reason about fictional web application components and security decisions.
Which component normally displays a note to the user?
Which component in Notes enforces the note ownership rule?
The proxy responds but storage is unavailable. What follows?
What is TLS termination at the proxy?
Why keep a database behind the application?