N-tier architecture splits an app into logical layers and physical tiers. A layer is a way to separate responsibilities: each does 1 thing. A tier is a separate machine where one or more layers run. It's like a restaurant: kitchen, dining room and till are 3 different jobs (layers), and they can be in 1 single place or in 3 places (tiers). Splitting into tiers helps scaling, but each hop between machines adds a few milliseconds of network.
Not every app has 3 tiers. In 2-tier, the interface runs on the client and talks directly to the database, with no logic layer in between. In 1-tier, everything runs on 1 single machine, like a program on your computer. It's like cooking: 1-tier is cooking and eating at home; 2-tier is ordering straight from the supplier; 3-tier is going to a restaurant with waiter, kitchen and pantry.
In N-tier, each layer has a responsibility and dependencies go in 1 single direction: a higher layer can use the services of a lower one, but not the other way around. That way, changing the higher layer doesn't break the lower one. It's like a building: floor 3 rests on floor 2, but 2 doesn't depend on 3. If the data layer called the interface, every screen change could break the database.
Splitting into tiers brings advantages. It improves availability, because if 1 tier fails it can be replaced without taking down the others. It improves security, because each layer works like a firewall filtering what goes through. Each tier scales separately, as it needs. And different teams can maintain different tiers. It's like a factory with 3 sectors: if packing is overloaded, you add people only there.
N-tier also has costs. The whole system becomes more complex. Each new tier adds network latency, because the request travels from one machine to another. It's more expensive, because each tier has its own hardware. And managing network security across so many machines is harder. It's like sending a letter through 5 post offices instead of 1: it arrives better protected, but slower and pricier.
There are 2 ways to set up layers. With closed layers, a layer can only call the one right below it. With open layers, it can call any of the ones below. Closed layers limit dependencies, but can add useless traffic if a layer just passes the request on to the next. It's like a company: in a closed one you talk to your boss and they talk to theirs; in an open one you can write directly to the manager.
3-tier architecture is the most widely used. The interface layer handles the user. The business logic layer receives the data, validates it against the business rules and passes it to the data layer. The data layer performs the operation on the database. It's like a bank: the teller serves you, the system checks you have funds and the vault keeps the money. If the rule is «at most $1,000 per day», the middle one checks it.