The course is part of this learning path
In this course, we will learn the concepts of microservice and Spring framework.
In this course, you will gain an understanding of the following concepts, with regards to microservices:
- Service Version Management
- Common Code for Microservices
- Beginner Java developers
- Java developers interested in learning how to Build and Deploy RESTful Web Services
- Java Developers who want to develop web applications using the Spring framework
- Java Developers who want to develop web applications with microservices
- Java Developers who wish to develop Spring Boot Microservices with Spring Cloud
- Basic Java knowledge
Common Code for Microservices. Hello, my friends. In this lesson, I want to talk about Common Code or in other words, shared libraries in Microservices. To get a good understanding, let's start with the monolith paradigm. When you create a monolithic application, you probably have some common policies in code libraries for some parts, such as logging, error handling, and monitoring. As a result, when clients use your application, they see the same notification at a specific workflow step or the same error message if they engage in a certain incorrect behavior.
Let's assume you've decided to migrate your application to a Microservices architecture. Microservice architecture, you see, requires us to atomize services. So, what are we going to do about the common parts of the application code? Should we use the same error codes for all services? If we did that, that means code duplication, which takes a significant amount of time and effort. So, instead, we can define some services for shared codes and other services can use those services to obtain Common Code specifications for required operations, such as logging, error handling and so on. All right. So, let's take a short break here my friends, and I'll see you in the next lesson.
OAK Academy is made up of tech experts who have been in the sector for years and years and are deeply rooted in the tech world. They specialize in critical areas like cybersecurity, coding, IT, game development, app monetization, and mobile development.