openBackhaul / RegistryOffice

Apache License 2.0
2 stars 8 forks source link

Removing de-registered HttpClients and TcpClients #519

Closed openBackhaul closed 9 months ago

openBackhaul commented 9 months ago

see also ApplicationPattern Issue #686.

If some application is offering subscribing, it finds or creates HttpClient and TcpClient after receiving the subscription. HttpClient and TcpClient don't get deleted after receiving unsubscribe, and even receiving unsubscribe is not assured. That might lead to constantly increasing numbers of HttpClients and TcpClients in the applications that are offering subscribing.

Solution: RO shall communicate de-registrations as broadcast.

ApplicationPattern has already been complemented by /v1/dispose-remainders-of-deregistered-application service.

Making the de-registration being part of the ApplicationPattern might make some individual implementations obsolete

openBackhaul commented 9 months ago

Changed as proposed