Can we use request/streaming way to implement input binding or sub message
#2,531 opened on 2020年12月3日
Repository metrics
- Stars
- (25,672 stars)
- PR merge metrics
- (平均マージ 2d 19h) (30d で 63 merged PRs)
説明
Now if we want to implement the input binding or sub message, we should : 1.start http or grpc server in app 2.the dapr start to input binding or sub message. 3.If some message comes, the dapr should invoke the app by appchannel of grpc/http
In this way we should know the app ip or just use local ip, refer https://github.com/dapr/dapr/pull/2330 .
Maybe it can work in this way: 1.app and dapr start . 2.app invoke the dapr by inputbinding or sub method. The app will tell dapr which input binding it is interested. These two method will create Server streaming RPCs 3.dapr start to get some input binding message or sub some message. 4.once dapr receive some messages, then it will send the message to app with streaming.
refer to https://grpc.io/docs/languages/go/basics/
It work well in grpc, but in http api we should introduce technology of pushing message.