Question

In: Computer Science

Software Design When is the model-view-controller pattern better than the client-server pattern? Why? Justify your answer.

Software Design

When is the model-view-controller pattern better than the client-server pattern? Why? Justify your answer.

Solutions

Expert Solution

When is the model-view-controller pattern better than the client-server pattern? Why? Justify your answer.

Why Is Model-View-Controller so Important?

The MVC architectural pattern is not directly related to web applications. In fact, it’s quite common in Smalltalk applications, which generally have nothing to do with the Web. As we saw in the previous section, the Model 2 approach is concerned with separating responsibilities in web applications. Allowing a JSP page to handle the responsibilities of receiving the request, executing some business logic, and then determining the next view to display can make for an unattractive JSP page, not to mention the maintenance and extensibility problems this entanglement causes. Application development and maintenance are much easier if the different components of a web application have clear and distinct responsibilities.

Client/Server Pattern

Basically all web systems follow this model. The web system, as a server, responds to all requests sent by different clients(browers, crawler, etc), using standard protocols. Clients’ requests are considered independent of each other. This means when the server is constructing the response to a request sent from one client, it doesn’t need to consider the requests from other clients or other requests from the same client, but only the information contained in this request, and probably the information stored in the database or file system on the server side.


Related Solutions

Why are Software Defined Networks (SDN) considered an overlay network? Justify your answer with examples of...
Why are Software Defined Networks (SDN) considered an overlay network? Justify your answer with examples of some well-known overlay networks. [5 Marks] 2. Discuss the key challenges in SDN? How will you migrate from a traditional network to an SDN based network? Justify your answer with examples.
Explain why a balanced scorecard is a better view of a company for an investor than...
Explain why a balanced scorecard is a better view of a company for an investor than the Financial Records alone.
why is the economic model better for policy than the biological model alone?
why is the economic model better for policy than the biological model alone?
1. Why are Software Defined Networks (SDN) considered an overlay network? Justify your answer with examples...
1. Why are Software Defined Networks (SDN) considered an overlay network? Justify your answer with examples of some well-known overlay networks. [5 Marks] 2. Discuss the key challenges in SDN? How will you migrate from a traditional network to an SDN based network? Justify your answer with examples. [5 Marks]
Why it can be a better idea to design the system/software architecture during or before the...
Why it can be a better idea to design the system/software architecture during or before the completion of the requirement specification? Explain.
Why it can be a better idea to design the system/software architecture during or before the...
Why it can be a better idea to design the system/software architecture during or before the completion of the requirement specification? Explain.
“Singleton design pattern provides stricter control over global variables.” Justify this statement with your own logic....
“Singleton design pattern provides stricter control over global variables.” Justify this statement with your own logic. Compare Singleton design pattern and global variable (similarities and differences) Implement any example (in JAVA), representing concept of global variable and Singleton design pattern, highlight the differences with coding and output.
~THERMODYNAMICS~ Design a way to boil water on the surface of the moon. Justify your answer.
~THERMODYNAMICS~ Design a way to boil water on the surface of the moon. Justify your answer.
1. Why is a multivariate regression model usually better to use than a univariate regression model?...
1. Why is a multivariate regression model usually better to use than a univariate regression model? Define both and discuss at least two reasons.
Why might it be better to use these types of designs rather than the independent-samples design?
Why might it be better to use these types of designs rather than the independent-samples design?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT