At the starting of a project, we usually have the entire configurations in the "properties" file. As the project proceeds and more services are developed and deployed, adding them to the properties file becomes complex.
It can affect the already deployed services creating problems such as services going down or the location of some might change. Changing the properties manually can create more issues. Service registration and discovery are useful in such situations. The changes can be handled by service registration and discovery.
Read more: https://www.java67.com/2021/01/spring-cloud-interview-questions-with-answers-java.html#ixzz7tpo0eWRr