This repository was archived by the owner on Jun 6, 2025. It is now read-only.
This repository was archived by the owner on Jun 6, 2025. It is now read-only.
Provide service clients through context #366
Open
Description
Since #355 clients for other services, in the same Kalix service or between services, needs auth information from discovery, that was done through breaking change with a preStart
callback on the components initializing the clients.
Since clients is a field on the component itself it gives the feeling that the clients should be available at any time after (or maybe even in) the constructor has been called. As this is no longer the case it would be better to move clients to the contexts so that it is not possible to accidentally try to access them in a place where they will not yet be initialized.