Structural Design Patterns
In this chapter, we will explore some of the most popular structural design patterns and discover how they apply to Node.js. Structural design patterns are focused on providing ways to realize relationships between entities.
In particular, in this chapter, we will examine the following patterns:
- Proxy: A pattern that allows us to control access to another object
- Decorator: A common pattern to augment the behavior of an existing object dynamically
- Adapter: A pattern that allows us to access the functionality of an object using a different interface
Throughout the chapter, we will also explore some interesting concepts such as reactive programming (RP), and we will also spend some time playing with LevelDB, a database technology that is commonly adopted in the Node.js ecosystem.
By the end of this chapter, you will be familiar with several scenarios in which structural design patterns can be useful and you will be able...