You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SDK should parse these in a consistent way, so operators have a consistent environment variable to set for Dapr apps. Right now, each SDK has their own way of configuring the endpoint for Dapr's sidecar.
If SDK allows gRPC communication from SDK to sidecar, then DAPR_GRPC_ENDPOINT must be supported.
If SDK allows HTTP communication from SDK to sidecar, then DAPR_HTTP_ENDPOINT must be supported.
DAPR_HTTP_ENDPOINT and DAPR_GRPC_ENDPOINT and not exclusive, meaning it is acceptable to support both, like in the Java SDK, if the SDK supports both protocols.
Also, companies might decide to offer different endpoints per protocol, so there is not an unique environment variable for both.
The text was updated successfully, but these errors were encountered:
FYI the JavaScript SDK already has this configuration embedded into the API. For instance, one could do
constdaprHost="127.0.0.1";// Dapr Sidecar Host, could also be https://example.comconstdaprPort="3500";// Dapr Sidecar Port of this Example Server// HTTP Exampleconstclient=newDaprClient({ daprHost, daprPort });
Having extra environment variables is not required, but it can be there and the API options can take precedence over env var.
These new environment variables can exist in JS-SDK, and daprHost/daprPort will take precedence.
Describe the proposal
Allow consistent way to configure endpoint for Dapr's sidecar, while enabling remote sidecar configuration.
Child of dapr/dapr#6035
SDK should parse these in a consistent way, so operators have a consistent environment variable to set for Dapr apps. Right now, each SDK has their own way of configuring the endpoint for Dapr's sidecar.
If SDK allows gRPC communication from SDK to sidecar, then
DAPR_GRPC_ENDPOINT
must be supported.If SDK allows HTTP communication from SDK to sidecar, then
DAPR_HTTP_ENDPOINT
must be supported.DAPR_HTTP_ENDPOINT and DAPR_GRPC_ENDPOINT and not exclusive, meaning it is acceptable to support both, like in the Java SDK, if the SDK supports both protocols.
Also, companies might decide to offer different endpoints per protocol, so there is not an unique environment variable for both.
The text was updated successfully, but these errors were encountered: