Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convenience APIs for calling other components in the same service #242

Open
johanandren opened this issue Feb 17, 2022 · 2 comments
Open
Labels
javascript-sdk kalix-runtime Runtime and SDKs sub-team

Comments

@johanandren
Copy link
Contributor

johanandren commented Feb 17, 2022

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

@johanandren johanandren added the kalix-runtime Runtime and SDKs sub-team label Feb 17, 2022
@johanandren
Copy link
Contributor Author

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.

@johanandren
Copy link
Contributor Author

For the record this is an example of the TS hoops needed when doing this manually as currently needed:

image

@ennru ennru changed the title Convenience APIs for calling other components in the same Akka Serverless service Convenience APIs for calling other components in the same service Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript-sdk kalix-runtime Runtime and SDKs sub-team
Projects
None yet
Development

No branches or pull requests

2 participants