- Define interface for the Dapr's Client - wrapper on top of the auto-generated code.
- Implement Adapter for GRPC.
- Implement Adapter for HTTP.
Detail below:
Interface DaprClient { // customer will use this interface.
// methods defined as part of this work.
// actor APIs re defined here too.
}
Class GrpcDapClient implements DaprClient { // customers don’t talk to this one directly
DaprGrpc grpcClient;
// implements methods from interface
// throws exceptions for all actor APIs since actors are http only for now.
}
Class HttpDaprClient implements DaprClient { // customers don’t talk to this directly.
DaprHttpClient httpClient;
// implements methods from interface
// implements actors APIs as well
}
Detail below:
Interface DaprClient { // customer will use this interface.
// methods defined as part of this work.
// actor APIs re defined here too.
}
Class GrpcDapClient implements DaprClient { // customers don’t talk to this one directly
DaprGrpc grpcClient;
// implements methods from interface
// throws exceptions for all actor APIs since actors are http only for now.
}
Class HttpDaprClient implements DaprClient { // customers don’t talk to this directly.
DaprHttpClient httpClient;
// implements methods from interface
// implements actors APIs as well
}