The Connector currently has a lot of excess functionality required to support stateful Link protocols, such as BTP. For example, see DefaultLinkManager. That implementation is used to construct Link objects for use by the Connector per that contract. However, it also tracks connection state, and destroys the Links if they disconnect. This is unnecessary for stateless Link transports like ILP-over-HTTP.
If we decide to get rid of BTP, we should spend some time designing a BTP proxy service that looks something like this:
The Connector currently has a lot of excess functionality required to support stateful Link protocols, such as BTP. For example, see
DefaultLinkManager
. That implementation is used to constructLink
objects for use by the Connector per that contract. However, it also tracks connection state, and destroys the Links if they disconnect. This is unnecessary for stateless Link transports like ILP-over-HTTP.If we decide to get rid of BTP, we should spend some time designing a BTP proxy service that looks something like this: