Skip to content
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
@johanandren

Description

@johanandren

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions