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

no samples about state management, such as redis, postgres. #125

Open
uestczz opened this issue Jul 19, 2023 · 4 comments
Open

no samples about state management, such as redis, postgres. #125

uestczz opened this issue Jul 19, 2023 · 4 comments

Comments

@uestczz
Copy link

uestczz commented Jul 19, 2023

no samples about state management, such as redis, postgres. so should I just refer to the docs of dapr? and I just use the dapr.NewClient() to do so.
In the sample of output and input with kafka, I find the code _, err := ctx.Send("target", greeting).
so can I use the inovation of this style in redis, postgres crud?

@tpiperatgod
Copy link
Member

Currently, the Go functions do not support this feat. You can try the Java function to use the state management feat via dapr client directly.

@uestczz
Copy link
Author

uestczz commented Jul 19, 2023

Currently, the Go functions do not support this feat. You can try the Java function to use the state management feat via dapr client directly.

it may be disappointing and surprising information, because dapr already support go client of state management. withou state management feat, the function may be trivial for me. in my senarios, only go, nodejs and python is available, and I intend to use redis, mongo, postgres and pulsar in function. so does only java support state management, and are all the resources i referred to supported in openfunction? maybe we should write these informations in our docs.

@benjaminhuo
Copy link
Member

benjaminhuo commented Jul 19, 2023

@tpiperatgod
Copy link
Member

python function can also support state management but now the release of the python function builder is still in processing... these's an issue that needs to be solved

node function has already merged the feat pr: OpenFunction/functions-framework-nodejs#189

for the go function, the way to use dapr client is to provide a method like GetDaprClient() to get the https://github.com/OpenFunction/functions-framework-go/blob/main/context/context.go#L270 property.

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

3 participants