MVC Architecture

12

Click here to load reader

Transcript of MVC Architecture

Page 1: MVC Architecture
Page 2: MVC Architecture

Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring PartnerBaabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd

Page 3: MVC Architecture

Model View ControlArchitecture

[email protected]/thansiq.villa

twitter.com/thansiq_villain.linkedin.com/in/profilename+919037043593

Page 4: MVC Architecture

What is MVC?

• Architectural design pattern which works to separate data and UI for a more cohesive and modularized system

Page 5: MVC Architecture

MVC

• The model is responsible to manage the data

• The view (presentation) is responsible to display the data provided by the model in a specific format

• The controller handles the model and view layers to work together

Page 6: MVC Architecture

How did it come about?

• The model view controller pattern is the most used pattern for today’s world web applications• It has been used for the first time in Smalltalk and then adopted and popularized by Java

Page 7: MVC Architecture

How does it work?

• User inputs a command• Controller handles input and updates model or changes the view

• View show data to user, updates if necessary.

Page 8: MVC Architecture

MVC

Page 9: MVC Architecture

3-tier Architecture vs. MVC Architecture

1.Communication• 3-tier: The presentation layer never communicates directly

with the data layer-only through the logic layer (linear topology)

• MVC: All layers communicate directly (triangle topology)

2.Usage• 3-tier: Mainly used in web applications where the client,

middleware and data tiers ran on physically separate platforms

• MVC: Historically used on applications that run on a single graphical workstation (applied to separate platforms as Model 2)

Page 10: MVC Architecture

Conclusion

• MVC is a sound architectural design for almost any GUI application

Page 11: MVC Architecture

If this presentation helped you, please visit our page facebook.com/baabtra and like it.

Thanks in advance.

www.baabtra.com | www.massbaab.com |www.baabte.com

Page 12: MVC Architecture

Contact Us

Emarald Mall (Big Bazar Building)Mavoor Road, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550

NC Complex, Near Bus StandMukkam, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550

Start up VillageEranakulam,Kerala, India.

Email: [email protected]