image
Common Code for Microservices
Start course
Difficulty
Beginner
Duration
20m
Students
74
Ratings
4.6/5
starstarstarstarstar-half
Description

In this course, we will learn the concepts of microservice and Spring framework.  

Learning Objectives

In this course, you will gain an understanding of the following concepts, with regards to microservices:

  • Performance
  • Failure
  • Integrity
  • Service Version Management
  • Common Code for Microservices

Intended Audience

  • 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

Prerequisites

  • Basic Java knowledge
Transcript

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.

 

About the Author
Students
2692
Courses
64
Learning Paths
4

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.