-
Book Overview & Buying
-
Table Of Contents
Spring: Microservices with Spring Boot
By :
First of all, let's start with clearing out a few misconceptions about Spring Boot:
These questions still remain:
To answer these questions, let's build a quick example. Let's consider an example application that you want to quickly prototype.
Let's say we want to build a microservice with Spring MVC and use JPA (with Hibernate as the implementation) to connect to the database.
Let's consider the steps in setting up such an application:
At least a few of the steps mentioned have to be completed before we can start with building our business logic. And this might take a few weeks at the least.
When we build microservices, we would want to make a quick start. All the preceding steps will not make it easy to develop a microservice. And that's the problem Spring Boot aims to solve.
The following quote is an extract from the Spring Boot website (http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#boot-documentation):
Spring Boot makes it easy to create stand-alone, production-grade Spring based applications that you can "just run". We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration
Spring Boot enables developers to focus on the business logic behind their microservice. It aims to take care of all the nitty-gritty technical details involved in developing microservices.
The primary goals of Spring Boot are as follows:
A few of the nonfunctional features provided by Spring Boot are as follows:
Change the font size
Change margin width
Change background colour