Reputation: 9819
I am trying to understand the motivation of using a 'framework'
for microservices, through any reference literature or paper.
Assume that we have defined/designed the segregation of responsibilities well into independent java processes with their own data stores.
Each of these processes can publish and consume from an event bus, and are capable of being orchestrated/choreographed through well-defined events.
Why would I then need a spring boot or any other framework - instead of simply spawning multiple instances of these standalone java processes.
Appreciate the help.
Upvotes: 0
Views: 399
Reputation: 1
SpringBoot provides production ready web applications. Springboot comes up with AutoConfiguration and embedded servers. It reduces lots of boiler plate . Lots of services of spring like spring jpa , spring security, spring cloud, spring aop as well non spring services like hibernate, mongo-db, kafka, oracle/mysql, oauth2, etc can be integrated easily. Microservices architecture eureka client, api-gateway, zipkin,zuul,config-server,service-discovery can be configured in springboot.
Upvotes: -1
Reputation: 116
Using an established framework such as Springboot or .NET Core etc., enables any dev teams to deliver, better, faster, and better.
Spring Boot is an efficient framework for creating a Spring-based application. Using a well-established framework leads toward a small learning curve, yet it can be used to create robust production-grade applications. Spring Boot provides many built-in tools and frameworks that make developing a cloud-based microservice rather easy.
Also, when it comes to picking a technology, I would always recommend the one which has great community support and has proven credibility in the industry.
Hence, if you decide yo go raw and begin your journey, there is no doubt that you will be successful, and I agree there might be a lot of learnings on the way, but I am not sure if ROI will be of that worth. Technology is to make us move faster, and take some pain away from daily development, which then allows devs and architects to stay focused on the design-n-architecture of the application.
Upvotes: 0
Reputation: 3077
A framework is to make the development process easier and quicker. You can of course go and write your standalone microservices without using any framework while using an event bus/queue to communicate across microservices. But this might be time taking as you may need to write lots of thing from scratch. Frameworks like spring boot(Java) or Expressjs(node.js) provide a minimal configuration interface and set of APIs that can be used to develop microservices rather quickly than without using a framework.
Upvotes: 2