You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "liubao (JIRA)" <ji...@apache.org> on 2018/04/27 07:05:00 UTC
[jira] [Commented] (SCB-526) When creating dynamic configuration,
we need to fetch once for the configuration when startup
[ https://issues.apache.org/jira/browse/SCB-526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16456026#comment-16456026 ]
liubao commented on SCB-526:
----------------------------
Test case:
I use demos in [https://github.com/huawei-microservice-demo/SpringCloudIntegration/tree/master/gs-rest-service] to test this feature and test cases are:
# configure spring.cloud.inject.fault in dynamic server. and @Value, DynamicProperty will fetch the correct value.
# do not configure pring.cloud.inject.fault in dynamic server. and @Value use default values as null/some random string will give correct values.
> When creating dynamic configuration, we need to fetch once for the configuration when startup
> ---------------------------------------------------------------------------------------------
>
> Key: SCB-526
> URL: https://issues.apache.org/jira/browse/SCB-526
> Project: Apache ServiceComb
> Issue Type: Improvement
> Reporter: liubao
> Assignee: liubao
> Priority: Major
>
> Currently, dynamic config is fetched asynchronously, and when users use dynamic configuration for following scenario will fail:
> # make some environment, e.g. credentials
> # spring @Value mechanism
> and so on.
>
> When users put these configurations to some dynamic configuration server, they can assume server is running OK, and if try to fetch will give the correct response.
>
> So it's very useful to fetch configurations once when boot up.
>
>
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)