PHP N-tier: Introduction N-Tier StrategyTag: n-tier, multi tier Category: PHP Application post: 12 Mar 2008 read: 481
PHP N-Tier Strategy Step By Step Tutorial - Part 1: May be you face complicated situation in your client's architecture. They use many technology for solve their complicated business process. If it happen, n-tier may be possible one solution you can choice. It this post, we begin to understanding possible N-Tier architecture.
General principle that we must consider if want to build N-tier application:
- Every layer must be independent physically. It doesn't mean every layer have to exist in separated computer. But, every layer can be distributed every where (separated computer or not).
- Each layer must transfer information only to/from previous/next layer.
- You can change technology used in every layer without change entire system. Example, - you want to change database layer- from mySql to PostgreSQL.
Following sample architecture design use 5-tier:
- Presentation GUI, do parse HTML, XHTML, WML.
- Presentation Logic do rendering process HTML, XHTML to send using HTTP to browser. It accepts data from business logic and tie to HTML. This process run at php at web server.
- Business Logic, manipulate and transform data. Simple, task of this layer is fetch data from data access tier and prepare before send to presentation logic. This process run at server that utilize XML.
- Data access tier have task to connect and retrieve data from database.
- Data tier is aplication database such as mySQL, PostGreSQL, and others.
|
|
| Give Your Opinion | Recommend
|