- 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.
- AngularJS入門與進階
- TypeScript Essentials
- 單片機C語言程序設(shè)計實訓(xùn)100例:基于STC8051+Proteus仿真與實戰(zhàn)
- 跟老齊學(xué)Python:輕松入門
- Learning Python Design Patterns(Second Edition)
- Learning Apache Mahout Classification
- 硅谷Python工程師面試指南:數(shù)據(jù)結(jié)構(gòu)、算法與系統(tǒng)設(shè)計
- Microsoft Azure Storage Essentials
- Linux Shell核心編程指南
- JavaScript腳本特效編程給力起飛
- 新印象:解構(gòu)UI界面設(shè)計
- Android應(yīng)用開發(fā)實戰(zhàn)
- Everyday Data Structures
- HTML+CSS+JavaScript網(wǎng)頁制作:從入門到精通(第4版)
- Beginning PHP