- Spring 5.0 By Example
- Claudio Eduardo de Oliveira
- 300字
- 2021-06-24 19:17:26
Spring Cloud Config
This exciting project provides an easy way to manage system configurations for distributed systems, and this is a critical issue in cloud environments because the file system is ephemeral. It also helps us to maintain different stages of the deployment pipeline. Spring profiles are fully integrated with this module.
We will need an application that will provide the configuration for other applications. We can understand its workings by thinking of the concepts of the server and the client, the server will provide some configurations through HTTP and the client will look up the configuration on the server. Also, it is possible to encrypt and decrypt property values.
There are some storage implementations to provide these property files, and the default implementation is Git. It enables us to store our property files in Git, or we can use the file system as well. The important thing here is that the source does not matter.
There is an interesting integration between Spring Cloud Bus and this module. If they are integrated, it is possible to broadcast the configuration changes on the cluster. This is an important feature if the application configuration changes with frequency. There are two annotations that tell Spring to apply changes at runtime: @RefreshScope and @ConfigurationProperties.
In Chapter 7, Airline Ticket System, we will implement an exciting service to provide external configurations for our microservices using this module. Server concepts will be explained in more detail. The client details will be presented as well.
- 計算機(jī)網(wǎng)絡(luò)
- Vue 3移動Web開發(fā)與性能調(diào)優(yōu)實(shí)戰(zhàn)
- The Complete Rust Programming Reference Guide
- 自然語言處理實(shí)戰(zhàn):預(yù)訓(xùn)練模型應(yīng)用及其產(chǎn)品化
- MySQL 8從入門到精通(視頻教學(xué)版)
- Developing Mobile Web ArcGIS Applications
- Learning Neo4j 3.x(Second Edition)
- 零基礎(chǔ)學(xué)Kotlin之Android項(xiàng)目開發(fā)實(shí)戰(zhàn)
- 深入淺出Go語言編程
- 代替VBA!用Python輕松實(shí)現(xiàn)Excel編程
- 微課學(xué)人工智能Python編程
- Java程序設(shè)計與項(xiàng)目案例教程
- C語言程序設(shè)計
- Spring Boot從入門到實(shí)戰(zhàn)
- Learning D3.js 5 Mapping(Second Edition)