In the services/network_config_manager/src/main/java/com/futurewei/alcor/netwconfigmanager/client/gRPC/GoalStateClientImpl.java, the GS gRPC client calls the ResourceStateCache service which further access Resource State Cache.
Ideally, we would like to have a gRPC client free of any database/cache access and handle only the Goal State communication.
The DB access should be moved to the upper level service layer, which packs DB information, calls gRPC client with the requested db information.
In the services/network_config_manager/src/main/java/com/futurewei/alcor/netwconfigmanager/client/gRPC/GoalStateClientImpl.java, the GS gRPC client calls the ResourceStateCache service which further access Resource State Cache.
Ideally, we would like to have a gRPC client free of any database/cache access and handle only the Goal State communication.
The DB access should be moved to the upper level service layer, which packs DB information, calls gRPC client with the requested db information.