In previous version, TaskWorker and Coordinator use gRPC client ugly. We refactor the way to call TaskWorkerApi and CoordinatorApi to make it easier and painless
Add SafeTaskWorkerRpcGateway which wrap TaskWorkerApiClient and control the client-side concurrency request;
Add SafeCoordinatorRpcGateway which wrap `CoordinatorApiClient and control the client-side concurrency request;
Use SafeTaskWorkerRpcGateway to replace TaskWorkerApiClient in worker;
Impact Scope
coordinator call worker's rpc
Test Suggestions
SafeTaskWorkerRpcGateway will successfully call TaskWorkerApiClient
Description
In previous version, TaskWorker and Coordinator use gRPC client ugly. We refactor the way to call TaskWorkerApi and CoordinatorApi to make it easier and painless
SafeTaskWorkerRpcGateway
which wrapTaskWorkerApiClient
and control the client-side concurrency request;SafeCoordinatorRpcGateway
which wrap`CoordinatorApiClient
and control the client-side concurrency request;SafeTaskWorkerRpcGateway
to replaceTaskWorkerApiClient
in worker;Impact Scope
Test Suggestions
SafeTaskWorkerRpcGateway
will successfully callTaskWorkerApiClient