Category: Microservices with Spring
-
Refresh configurations at runtime using refresh actuator path
1. Introduction In real world applications, most often the requirement is to change the configuration properties. New changes can be committed to the Git repository supporting the Config service. In our earlier tutorial, we discussed how to read configuration properties from GitHub. Whenever properties are changed in Git, Spring Cloud Config Server can read the…
-
Encryption and Decryption of Properties in Spring Cloud Config Server
1. Introduction In previous tutorials, we have kept properties in plain text. But this is not always desirable. If you have sensitive information, you should keep such information in encrypted format not as plain text.In this tutorial, we’ll see how to encrypt and decrypt properties in Spring Cloud Config Server. 2. Provide encryption key To…
-
Reading configurations from the Git in Spring Cloud Config Server
1. Introduction In this tutorial we’ll discuss reading configurations from the Git in Spring Cloud Config Server. This is the default implementation. Using Git makes it very convenient for managing upgrades and physical environments and auditing changes done over time. You can configure the location of the repository in your Config server configuration (for example…
-
Reading configurations from the filesystem location of Spring Cloud Config Server
1. Introduction In the previous tutorial, we discussed how to read properties from Spring Cloud Config Server using Spring Cloud Config Client. In that example, we kept configurations in the classpath. In this tutorial, we’ll discuss reading configurations from the filesystem of the server. Storing configurations in the filesystem is usually not used in production…
-
Read properties from Spring Cloud Config Server Using Spring Cloud Config Client
1. Introduction to Spring Boot Config Client In this tutorial, we’ll discuss the Spring Cloud Config Client and will explore how to read properties from Spring Cloud Config Server. In the previous tutorial, we created a Spring Cloud Config Server. Once the Spring Cloud Config Server is created, the Spring Boot application can access these…
-
Reading configurations from the class path location of Spring Cloud Config Server
1. Introduction In this tutorial, we’ll learn how to read configurations from the class path location of Spring Cloud Config Server. Spring Cloud Config Server provides an HTTP resource-based API for external configuration (name-value pairs or equivalent YAML content). The server is embeddable in a Spring Boot application, by using the @EnableConfigServer annotation. By default, the Config…
-
An Introduction to Spring Cloud Config
Spring Cloud Config provides server and client-side support for externalized configuration in a distributed system.
-
Cloud-native applications and 15-Factor methodology
1. Introduction You must have heard the term Cloud-native applications. In this article, we’ll discuss this term and 15-factor methodology. Cloud native technologies empower organizations to build and run scalable applications in modern, dynamic environments such as public, private, and hybrid clouds. Containers, service meshes, microservices, immutable infrastructure, and declarative APIs exemplify this approach. Cloud…
-
Generate and run Docker image of Spring Boot application
1. Introduction In this tutorial, we’ll create a Docker image of a Spring Boot application. We’ll then see how to run the generated Docker image. The Spring Boot application will be a simple “Hello World” application. We’ll create multiple containers from the image and will access the Spring Boot application from outside the container. 2.…
-
What are Microservices?
1. Introduction Microservices is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, built around business capabilities and independently deployable by fully automated deployment machinery. From an article by James Lewis and Martin Fowler Microservices enable you to break monolithic…