Application Logical Isolation
Application logical isolation is used in scenarios where different development environments share public CSE resources to reduce cost. Logical isolation is also used to manage the relationships between microservices. With proper isolation policies, the accessibility and permissions between microservices can be better controlled.
Service Discovery
Microservices in different service domains are isolated by applications.
Different service domains use different application names. Services in the same service domain can discover each other and access each other in point-to-point mode. Services in different service domains cannot discover each other. They need to access each other through Spring Cloud Gateway in the service domain where the microservice to be accessed is located.
Dynamic Configuration
Dynamic configuration is managed at the public, application, and service layers.
spring: cloud: servicecomb: config: kie: customLabel: public # The default value is public. customLabelValue: default # The default value is a null string.
If a configuration item has the public label and the label value is default, the configuration item takes effect for the microservice. The configuration center can be described as follows:
- The configuration center is considered as the table tbl_configurations of the database. The key is the primary key, and each label is an attribute.
- The client queries the configuration based on the following search criteria:
- Custom configuration
select * from tbl_configurations where custome_label=custome_label_value & withStrict=false
- Application-level configuration
select * from tbl_configurations where app=demo_app & environment=demo_environment & withStrict=true
- Service-level configuration
select * from tbl_configurations where app=demo_app & environment=demo_environment & service=demo_service & withStrict=true
When withStrict is set to true, only the attributes specified in the condition are available. When withStrict is set to false, all attributes except those in the condition are allowed.
You can also specify multiple applications for label app or services for label service. In this way, the configuration item takes effect for multiple services and applications.
- Custom configuration
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot