- Spring 5 Design Patterns
- Dinesh Rajput
- 443字
- 2021-07-08 09:59:30
Overview of GOF Design Patterns - Core Design Patterns
In this chapter, you'll be given an overview of GOF Design Patterns, including some best practices for making an application design. You'll also get an overview of common problem--solving with design patterns.
I will explain the design patterns that are commonly used by the Spring Framework for better design and architecture. We are all in a global world, which means that if we have services in the market, they can be accessed across the Globe. Simply put, now is the age of the distributed computing system. So first, what is a distributed system? It's an application that is divided into smaller parts that run simultaneously on different computers and the smaller parts communicate over the network, generally using protocols. These smaller parts are called tiers. So if we want to create a distributed application, n-tier architecture is a better choice for that type of application. But developing an n-tier distributed application is a complex and challenging job. Distributing the processing into separate tiers leads to better resource utilization. It also support the allocation of tasks to experts who are best suited to work and develop a particular tier. Many challenges exist in developing distributed applications, some of which are detailed here:
- Integration between the tiers
- Transaction management
- Concurrency handling of enterprise data
- Security of the application and so on
So my focus in this book is on simplifying Java EE application design and development by applying patterns and best practices with the Spring Framework. In this book, I will cover some common GOF Design Patterns, and how Spring adopted these for providing the best solutions to the aforementioned listed problems of enterprise application because the design of distributed objects is an immensely complicated task, even for experienced professionals. You need to consider critical issues, such as scalability, performance, transactions, and so on, before drafting a final solution. That solution is described as a pattern.
At the end of this chapter, you will understand how design patterns provide the best solution to address any design-related and development-related issues, and how to start development with the best practices. Here, you will get more ideas about GOF Design Patterns, with real-life examples. You will get information about how the Spring Framework implements these design patterns internally to provide the best enterprise solution.
This chapter will cover the following points:
- Introducing the power of design patterns
- Common GOF Design Patterns overview
- Core design patterns
- Creational design patterns
- Structural design patterns
- Behavioral design patterns
- J2EE design patterns
- Design patterns at presentation layer
- Design patterns at business layer
- Design patterns at integration layer
- Core design patterns
- Some best practices for Spring application development
- 零基礎搭建量化投資系統(tǒng):以Python為工具
- 企業(yè)級Java EE架構設計精深實踐
- Hadoop+Spark大數據分析實戰(zhàn)
- Unity 2018 Shaders and Effects Cookbook
- 智能手機APP UI設計與應用任務教程
- Mastering Apache Storm
- ASP.NET 4.0 Web程序設計
- 現代CPU性能分析與優(yōu)化
- Test-Driven iOS Development with Swift
- SCRATCH編程課:我的游戲我做主
- Professional JavaScript
- Mastering ASP.NET Web API
- H5匠人手冊:霸屏H5實戰(zhàn)解密
- HTML5 and CSS3:Building Responsive Websites
- 情境微課開發(fā)(第2版)