-
Book Overview & Buying
-
Table Of Contents
Software Architecture with Kotlin
By :
The Connect pattern was first introduced by David Denton in his technical article, Smash your Adapter Monolith with the Connect pattern, on the internet in 2011.
This pattern, however, has a different focus from the three architectural patterns previously discussed. It is specifically targeted at remote system integration. It aims to provide a testable and extensible approach to encapsulate remote API interactions.
The concept of the Connect pattern is illustrated in Figure 7.6:
Figure 7.6 – The Connect pattern
An integration operation is abstracted as an Action. It understands how to generate a request and how to transform a response into an internal object. However, it does not know the connection details to the external system.
An adapter, on the other hand, is crafted to adapt to a specific system. It can establish a connection with an external system while delegating the actual request-response exchange to an Action...