InterviewSolution
| 1. |
How will you develop microservices using Java? |
|
Answer» Spring Boot along with Spring CLOUD is a very good option to start building microservices using Java LANGUAGE. There are a lot of modules available in Spring Cloud that can provide boiler plate code for different design patterns of microservices, so Spring Cloud can really speed up the development process. Also, Spring boot provides out of the box support to embed a servlet container (tomcat/jetty/undertow) INSIDE an executable jar (uber jar), so that these jars can be run directly from the command line, eliminating the need of deploying war files into a servlet container. You can also use Docker container to ship and DEPLOY the entire executable package onto a cloud environment. Docker can also help eliminate "works on my machine" problem by providing LOGICAL separation for the runtime environment during the development phase. That way you can gain portability across on-premises and cloud environment. |
|