The Resource Management Design Patterns
As with other Systems, every Reactive System has a set of components to serve its services to the end clients. These components need a set of resources to help them or alleviate their functionality. Here, resources can be anything, such as an external system, external REST API, database, socket, and so on.
In order to utilize those resources efficiently and effectively by our Reactive System components, we should consider a set of Reactive Design patterns in the design and development of our systems.
In this section, we will discuss the following two important Resource Management Reactive Design Patterns:
- Resource Loan Pattern
- Resource Pool Pattern
The Reactive Resource Loan pattern
The Resource Loan Pattern is not new to Java or Scala developers. We have already used it in many applications to develop our non-Reactive System components, such as creating a database connection, creating a socket connection, creating a file, and so on.
In Reactive Systems,...