Think of a channel that’s a continuous stream of data. Streams is a concept in computing to describe the input and output streams of data. The basic I/O streams are as follows.
- stdin - Standard input. Keyboard.
- stdout - Standard output. Terminal (or the display).
- stderr - Standard error. Error log. responds with that information back to your client.
But if you were to follow the request and response, the flow would be like this!
- User/client requests Presentation layer
- Presentation layer requests Application layer
- Application layer requests Business layer
- Business layer requests Database layer
- Database layer responds Business layer
- Business layer responds Application layer
- Application layer responds Presentation layer
- Presentation layer responds User/client
Now this way, you can see that there is a good share of modularity, organisation, cohesion, decoupling, isolation, reusability, and flexibility between the software components. Multitier architecture also encourages better discipline and makes it very convenient for collaborations by simplifying code maintenance without any complexities tangling the stack.
The layered architecture is a common practice in a client-server model. Most modern applications have at least three layers when a database is involved. Hence this architectural pattern is also called as a three-tier or n-tier architecture.
Comment