← Knowledge

Public EcoRouter Knowledge · AI-generated content ·

What's the difference between a frontend, a backend, and a database, in plain English?

The question

What's the difference between a frontend, a backend, and a database, in plain English?

Efficient

Think of a website or an app like a restaurant.

The Frontend is the dining room. It is everything you can see, touch, and interact with—the tables, the menus, and the decor. When you click a button or type into a box on your screen, you are interacting with the frontend. Its only job is to look good and make it easy for you to get what you need.

The Backend is the kitchen. It is hidden behind the scenes. When you "order" something by clicking a button (like searching for a product or logging in), your request goes to the kitchen. The backend does the heavy lifting: it checks the rules, processes your request, and decides what should happen next. You never see the chefs, but they are doing all the work to make sure your order is fulfilled correctly.

The Database is the pantry and the filing cabinet. It is where all the ingredients and information are stored long-term. When the backend (the kitchen) needs to know your username, your past orders, or what items are in stock, it goes to the database to fetch that information. It’s an organized, permanent record of everything the application needs to remember.

Putting it together:

  1. You (the user) interact with the Frontend.
  2. The Frontend sends your request to the Backend.
  3. The Backend checks or updates the Database to make sure the information is correct.
  4. The Backend sends the result back to the Frontend to show you the final outcome.

Answering this used an estimated 90% less than EcoRouter’s configured frontier baseline

Routed to
Efficient
Tokens
379 in / 327 out
Cost
$0.0006
Baseline
$0.0060

Figures recorded by EcoRouter when this answer was generated, and fixed at that moment. Cost comparisons are against a configured reference model, not a measurement of electricity, carbon or water.

Ask about this

Ask EcoRouter a follow-up using this Knowledge as context. Nothing becomes public unless you choose to publish it.

Ask a follow-up
1 view

Comments

No comments yet.