-
Notifications
You must be signed in to change notification settings - Fork 48
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
Comments
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. |
There are java samples here https://github.com/OpenFunction/java-samples/blob/main/src/main/java/dev/openfunction/samples/StateStore.java#L57 We'll add go samples later @wanjunlei @wrongerror |
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. |
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?
The text was updated successfully, but these errors were encountered: