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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Example] Azure Container App Demonstration #316

Closed
XavierGeerinck opened this issue Dec 20, 2021 · 4 comments
Closed

[Example] Azure Container App Demonstration #316

XavierGeerinck opened this issue Dec 20, 2021 · 4 comments

Comments

@XavierGeerinck
Copy link
Contributor

Describe the proposal

I would love to see an Azure Container App example as I am unable to get it to work myself 馃槄as far as I got, Container Apps seems to only support HTTP? While Python only supports gRPC?

For Container Apps a server thus has to start on HTTP and Dapr will register requests to it then, but we require the gRPC protocol in Python? @wcs1only can you help?

Jeff Hollan already provided an example in HTTP but he uses a hardcoded gRPC server (https://github.com/jeffhollan/grpc-sample-python)

@wcs1only
Copy link
Contributor

wcs1only commented Jan 3, 2022

python-sdk to daprd requests are indeed gRPC, but that should work without issue. Are you referring to having a GRPC vs HTTP ingress in your app? The python-sdk supports both scenarios, and we have extensions for flask and fastapi to that end:
https://github.com/dapr/python-sdk/tree/master/ext

Can you provide a little more detail about where you got stuck?

@XavierGeerinck
Copy link
Contributor Author

Adding to this from the chat as well, I am trying to subscribe to a topic and receiving events from it. The code in the Runtime throwing the error is this:

image

@XavierGeerinck
Copy link
Contributor Author

Can be closed! Thanks a lot for the help!! https://github.com/dapr/python-sdk/blob/master/ext/dapr-ext-grpc/dapr/ext/grpc/app.py should sole it

@wcs1only
Copy link
Contributor

wcs1only commented Jan 3, 2022

Thanks, feel free to reach out on discord if you run into anything else, or open a new issue.

@wcs1only wcs1only closed this as completed Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants