The delay of getConfig method for the first time through nacosconfigservice is more than 1s. #12943
Labels
area/Client
Related to Nacos Client SDK
kind/question
Category issues related to questions or problems
Describe the bug
当使用nacosconfigservice的getConfig方法时,才会执行RpcClient的初始化和start,导致第一次调用getConfig延时在1s以上。可不可以在创建nacosconfigservice的时候就提前异步初始化一个RpcClient。我们项目启动时会去获取配置,所以1s的延时会增加我们的启动时间,希望可以优化下这个点,或者提供配置参数选择是否提前启动rpcclient。
Expected behavior
nacosclient version:2.1.2
Actually behavior
nothing
How to Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: