Can anyone can tell me the N-tier Structure and their tiers used in Web Programming?
Primarily, in 3 tier s开发者_Go百科tructure one is presentation layer, another is business logic layer and last is database access layer.
But for N-tier or 4 tier structure what are the layers and what sort of functions do they hold on them? Please explain me with a brief example of each.
You can adding caching layers as another tier. Caching can be added at a number of levels. For images, pages, database queries or just for individual files. A proxy server can cache pages for a certain length of time. This is really helpful for expensive pages.
Akamai has built an entire business out of this, although they have distributed caching. That can be considered a whole other tier. Serving content from the server closest to the server.
Load balancing and replication can be considered other tiers. This is fairly common, reads go to database slaves, writes go to the master. Firewalls can load balance to distribute traffic. For example, multiple web servers.
精彩评论