Tuesday, July 2, 2024

Spring Cloud

What is spring cloud configuration server?

We do not have to keep any configuration file in any of the micro services. All services fetch data from the centralised GitHub repository.

How can we modify an existing spring boot application to convert into a server-less architecture?
  • Break down the spring boot monolithic application into the smaller and self-contained services and containerise using docker.
  • Refactor the code of each of the services To work as independent server less function. Removing unnecessary dependencies.
  • Configure event triggers for these function functions Like defining runtime parameter and deploy them to chosen server less platform.
  • Set up API gateway, if needed.
  • Handle data storage with server less database and ensure proper testing, monitoring and security policies and optimising of cost.
  • Example

No comments:

Post a Comment

Spring Boot

What is circular/cyclic dependency in spring boot? When two services are interdependent on each other, that is to start one service, we requ...