kalix-javascript-sdk
kalix-javascript-sdk copied to clipboard
Convenience APIs for calling other components in the same service
Currently you have to do some hoops to call other components in the same service, especially if calling it from typescript.
If possible we'd want the same automatic enumeration of other components in the same deployed service like in the Java/Scala SDK: https://docs.akkaserverless.dev/java/actions-as-controller.html#_composing_calls
For the record on how this is implemented in the Java SDK the proxy informs the service of selfHostName upon discovery so that it knows where to talk to "itself" without a host name, for running locally/testing we manually set localhost and port 9000 so that it can reach the local proxy.
For the record this is an example of the TS hoops needed when doing this manually as currently needed:
