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

pub/sub running question #689

Open
bhljay opened this issue Feb 23, 2022 · 5 comments
Open

pub/sub running question #689

bhljay opened this issue Feb 23, 2022 · 5 comments
Labels
question Further information is requested

Comments

@bhljay
Copy link

bhljay commented Feb 23, 2022

can we run my subscribe application in local machine and at the same time sidecar is running on remote machine

publish application is working when use the following code,
System.setProperty("dapr.sidecar.ip","*****");
System.setProperty("dapr.http.port","3500");
System.setProperty("dapr.grpc.port","5001");
but i do not know how to run my subscribe application

@mthmulders
Copy link
Contributor

I think this is (also) covered in #688. My TL;DR: Dapr is not designed to have the sidecar running on a different machine than the application it serves.

@bhljay
Copy link
Author

bhljay commented Feb 23, 2022

thanks ,but If it cannot be implemented, everyone should deploy a dapr locally and have a docker environment locally for development, which depends on too many things; Then it is difficult to extend to the production environment

@artursouza
Copy link
Member

It is possible to run Dapr sidecar in a different host than the application. On the other hand, it is not possible to configure the sidecar to callback into another endpoint that is not localhost. You would need to setup some sort of reverse proxy next to the sidecar to redirect localhost: to the <app's ip>: - you can try with SSH tunnel to being with.

@artursouza artursouza added the question Further information is requested label Feb 23, 2022
@wmeints
Copy link

wmeints commented Feb 25, 2022

You can run dapr without docker. The default workflow is not made for this as docker makes things a lot easier. You'd have to deploy components manually on a server in your network. Then you'll have to configure the components in the dapr config. Finally, you can run dapr run as normal.

Just to be extra clear: You run the dapr sidecar on the same machine as your service. The messagebroker you can run anywhere you like. You just need to configure the address of it in your pubsub component yaml.

@salaboy
Copy link
Contributor

salaboy commented Dec 4, 2024

@artursouza can we close this, it was a question, I think that was answered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants