futurewei-cloud / alcor

Alcor: Cloud native SDN platform powered by Kubernetes and Istio
MIT License
32 stars 33 forks source link

Remove cache access from NCM gRPC client #735

Open xieus opened 2 years ago

xieus commented 2 years ago

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.