dapr/dapr

Can we use request/streaming way to implement input binding or sub message

Open

#2531 aperta il 3 dic 2020

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Go (2064 fork)batch import
P2area/runtime/bindingsarea/runtime/pubsubhelp wantedsize/Mtriaged/resolved

Metriche repository

Star
 (25.672 star)
Metriche merge PR
 (Merge medio 2g 19h) (63 PR mergiate in 30 g)

Descrizione

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.

Guida contributor