Microservices Tutorial for Beginners | Microservices Architecture | Microservices Training | Edureka

edureka! · Beginner ·🏗️ Systems Design & Architecture ·2y ago

Key Takeaways

Explains Microservices Architecture and its Implementation using Spring Boot

Full Transcript

hi everyone first thing first we are going to talk about what exactly microservices are and then we will be taking it further in terms of our discussion on how we can work on those microservice deployments and how what is the main difference between microservice and the monolithic architecture that we have and how we can get started with those so that is what we are going to discuss so microservice is what microservice is basically dividing a monolithic architecture into smaller parts for example if you talk about the main application so it may be having for example let's suppose we have a client one for which we want to deploy the app we may have client fund for which we want to deploy the app so what we can do is we can go ahead and deploy all the components as a single entity for example here we can deploy let's say here we have the card system for this e-commerce application we have the payment system we have the catalog system we have the user management system we have a notification system and they all need to be up and running as a part of keeping the application up so if you want we can design all these Solutions we can deploy them all as a part of a single application package like we do in normal Docker so for example we can have a single Docker file created and that is going to run all of these components in a single container setup even if they are deployed in a cluster so again at the end each and every container is going to contain all the packages that means it is going to contain the shopping cart the payment system the catalog system everything all packaged inside a single container only that means if we have to update any of the existing packages then that is going to be not an easy task if we if any of the packages that means if suppose the payment system is not working then the entire application is going to go down because of f of one component since they are tightly coupled with each other so the application is go down it was going to go down and plus later on if we want to let's say update any one of the services then we have to always redeploy the entire package because here they are all packaged together so even a small change will require the entire app to be deploy again and again and if we are going to deploy the entire app again there is always a good possibility of making errors and those errors can make the entire application go down which is not going to be feasible for any company be it's for small to medium small medum or even for large scale Enterprises they are not going to be feasible these kind of frequent failes is so now this kind of setup where everything is packaged inside a given we can say application or a Contin so this kind of setup is what we refer as a part of Monolithic architecture so we can have a messaging system in place but again even though it is not going to work because here the entire setup is like a single package Al together so what we can do is now this is what we refer as a part of Monolithic architecture so we can conver conver this moric architecture into the micros service setup by com by splitting each and every part into smaller parts for example we have the catalog system so what we can do is we can Define for the catalog system as in we can Define catalog and we can Define catalog as a separate container we have a system for payment Gateway so payment can be deployed as a separate container separate package we have the shopping card so we have shopping card defined as a separate package separate card data so now instead of packaging everything inside single app we are Distributing them under different packages and if you want we can run multiple containers running the same service for example we can have three containers each for the payment systems for the shopping C for the user catalog system and so on so that even if one container is down still the load can be easily deploy handled by the containers deployed as a cluster we can do that second Advantage here is if we want to update a single package for example we looking to update only payment Gateway as suppose we have partnered with a new payment provider and now we are going to add that payment provider into our application so we don't have to touch the codes for shopping cart we don't have to touch the code for the user management the catalog system and everything we only have to touch the code for the pavment Gateway that's it and when we are going to update the pavment Gateway because it is being deployed as a part of multicluster setup so the load can be easy we can say handled by the other containers and once we have thly tested the entire vment then the load can be easily transferred from the main component to this as for the requirement so this is what we Define this is what we do by using a micros Service setup and microservices are and again they have been gaining popularity since 2015 only so majority of the applications now they are all divided into smaller components and that reduces the overall maintenance cost deployment cost for the companies so that the entire work can be minimized plus the avability of the application is also going to be increased because of the entire application now divided into separate core components so this is what we refer as as a part of microservice setup first of all clear out the concept of microservice before we see how they communicate to each other by using the messaging platform so that's how these all things are divided and there are multiple ways of creating the micros Service setup so first of all we have to make sure again the entire application should be working as an automated service so that we have list dependency of one component over the other the entire application should be highly scalable that means whenever you want to scale up or scale down the resources for any app we should be able to easily do that and then it should be completely decentralized so that we can work on managing the application at any point of time and again we can do that easily and then it should be resilient that means a fail failure of one node should not affect the availability of the application it should be easily replace with with whatever other noes we have so this is what is these are the core principles for any microservices and we have to make sure in case we have multiple container set up done then the entire load should be well distributed among different containers here so these all things should be well defined and that is what we do by using the multicontainer setup available here so these all components they also have to communicate to each other and they communicate via the messaging platform like we have we can make use of cavka we can make use of the online based messaging platform like for a we have sqs for the Su platform we can make use of the pubsub and the event Hub service and so on so these all are defined as a part of different platforms that we can use for managing the micros service application because at the end when we are going to refer to these they all have to communicate to each other so for example let's say if you take a simple example for MVC architecture the model is the one that gets the update model is the one that gets the that is going to be used for getting the database so view is what the users are going to see at the front end and then we have controller which simply adds like an intermediary between the database and the view so the users they are going to if they need a data they are going to send the request to controller the controller is then going to send the request to model to fetch the data and then model simply sends the data back to the controller and the controller is the one that gets the data and simply send this back to the view so that users they can get the new data set so here we are using an application server but again the main problem here is let's say if this particular we can say this backround server or this backend server is not available and still if the users they are continuously entering the fields for example they are continuously entering the form and again we there have 50 form submissions in every in a minute and suppose if there's no backend Ser server available for 5 minutes that means we will be processing we'll be losing those 150 form submission those 250 250 form submissions in 5 minutes that could be big loss for the company so we do need to have a messaging system put in place in between that can handle all the messages so whatever form fence or whatever messages are being generated by content they can be stored in this messaging platform like we have C we have inur we have the V have servers and then we can allow the other components to subscribe so whenever they are going to subscribe to the messages even though the front end is not available they can still read the data from from this topic and even though if the let's say if the backend not available they can still read the data from the topic here so again these things are all defined as a part of this set and this is where we are going to make use of the messaging platform in order to allow us to communicate these microservices components to each other so even they are going to send data and that both at a synchronous and asynchronous Manner and this is what we Define by using messaging platform here so let's talk about how these messaging platforms they all are going to be defined so there are multiple vendors out there who are giving us the access to this kind of messaging platform here so and if you talk about a then we do have a service called as event Hub and this microservice is widely used because there are multiple advantages for using this microservice we can say setup we we do get to make sure that the entire application can work independently and they are all going to communicate to each other by using the different apis so this is what we Define by using micros server let's see how we can set it up on top of the SEO platform so here we do have a service named as storage cues so we do have a storage account service in here we can in case we don't have a storage account available yet then we are going to create the storage account in case it is already available then we can go ahead and create the cues here so if you want we can start by creating a queue or we can make use of the service per setup so first of all once we have the queue created it is going to work just the way we have the sqs service offered by AWS which allows us to create a queue and that queue can be used for the used by the producers of the messages to generate the messages and going to save it there and then we can create multiple subscribers who are going to read those messages from the queue here let me check the access for the queue here just a minute everyone in the lab taking a bit of time everyone so no worries we'll be continuing on the same part in our subsequent session so again a big thank you to you all for being a part of the session everyone thank you for joining and have a great day head take care

Original Description

( Microservices Architecture Training: https://www.edureka.co/microservices-architecture-training ) This Edureka's video will help you understand what are microservices and their practical implementation using Spring Boot. In this video, you will learn the following: 1. Monolithic Architecture 2. Challenges Of Monolithic Architecture 3. What are Microservices 4. Microservice Architecture Components 5. Hands-On Using Spring Boot #Microservices #MicroserviceArchitectureTutorial #MicroservicesForBeginners #MicroservicesOnlineTraining #MicroservicesUsingSpringBoot --------------------------------------------------------------------------------- About Microservices Architecture Training Edureka’s Microservices Architecture training introduces you to the concept of Microservices that are small, lightweight, process-driven components. So, Microservices are the next important thing in designing scalable, easy-to-maintain applications. This not only makes application development easier but also offers great flexibility and lets you utilize various resources optimally. If you want to build an enterprise-ready implementation of the Microservices architecture, then this course is the first step for you. In this Microservices Architecture training, we will start by giving you a deep understanding of the core Microservices concepts and principle with insight in how they have evolved. We will walk you through the complete life cycle - from design to development to testing; including cross-layer concepts such as how to secure Microservices. ------------------------------------------------------------------------ What are the Objectives of our Microservices Architecture Training? After completing, Edureka's Microservice training, you will be able to: 1.Understand and differentiate between various Microservices Architectural styles 2.Apply Microservices Architecture principles 3.Know how to make the appropriate Microservice Architecture decision 4.Develop and test a Micros
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from edureka! · edureka! · 0 of 60

← Previous Next →
1 ChatGPT Not Working - 4 Fixes | How To Fix ChatGPT Not Working | Why Is ChatGPT Not Working |Edureka
ChatGPT Not Working - 4 Fixes | How To Fix ChatGPT Not Working | Why Is ChatGPT Not Working |Edureka
edureka!
2 Advanced Java script Tutorial | JavaScript Training | JavaScript Programming | Edureka Rewind
Advanced Java script Tutorial | JavaScript Training | JavaScript Programming | Edureka Rewind
edureka!
3 Java script interview question and answers | Java script training | Edureka Rewind
Java script interview question and answers | Java script training | Edureka Rewind
edureka!
4 OpenAI API Tutorial using Python | How to use OpenAI GPT-3 API - Ada Babbage Curie Davinci | Edureka
OpenAI API Tutorial using Python | How to use OpenAI GPT-3 API - Ada Babbage Curie Davinci | Edureka
edureka!
5 What is Unsupervised Learning ? | Unsupervised Learning Algorithms| Machine Learning | Edureka
What is Unsupervised Learning ? | Unsupervised Learning Algorithms| Machine Learning | Edureka
edureka!
6 Top 10 Applications of Machine Learning in 2023 | Machine Learning  Training | Edureka Rewind - 7
Top 10 Applications of Machine Learning in 2023 | Machine Learning Training | Edureka Rewind - 7
edureka!
7 Machine Learning Engineer Career Path in 2023  | Machine Learning Tutorial | Edureka Rewind - 6
Machine Learning Engineer Career Path in 2023 | Machine Learning Tutorial | Edureka Rewind - 6
edureka!
8 10 Must Have Machine Learning Engineer Skills That Will Get You Hired   | Edureka Rewind - 7
10 Must Have Machine Learning Engineer Skills That Will Get You Hired | Edureka Rewind - 7
edureka!
9 Data Structures in Python | Data Structures and Algorithms in Python | Edureka | Python Live - 5
Data Structures in Python | Data Structures and Algorithms in Python | Edureka | Python Live - 5
edureka!
10 Python Lists | List in Python | Python Training  | Edureka  Rewind
Python Lists | List in Python | Python Training | Edureka Rewind
edureka!
11 Predictive Analysis Using Python | Learn to Build Predictive Models | Python Training | Edureka
Predictive Analysis Using Python | Learn to Build Predictive Models | Python Training | Edureka
edureka!
12 Machine Learning Tutorial | Machine Learning Algorithm | Machine Learning Engineer Program | Edureka
Machine Learning Tutorial | Machine Learning Algorithm | Machine Learning Engineer Program | Edureka
edureka!
13 How to use Pandas in Python | Python Pandas Tutorial  | Python Tutorial  |  Edureka  Rewind
How to use Pandas in Python | Python Pandas Tutorial | Python Tutorial | Edureka Rewind
edureka!
14 Parameters in Tableau | Tableau Parameters Examples | Tableau Tutorial  | Edureka Rewind
Parameters in Tableau | Tableau Parameters Examples | Tableau Tutorial | Edureka Rewind
edureka!
15 Top 10 Reasons to Learn Tableau in 2023  | Tableau Certification | Tableau | Edureka Rewind
Top 10 Reasons to Learn Tableau in 2023 | Tableau Certification | Tableau | Edureka Rewind
edureka!
16 Tableau Developer Roles & Responsibilities | Become A Tableau Developer | Tableau | Edureka Rewind
Tableau Developer Roles & Responsibilities | Become A Tableau Developer | Tableau | Edureka Rewind
edureka!
17 Deep Learning With Python | Deep Learning Tutorial For Beginners | Edureka  Rewind
Deep Learning With Python | Deep Learning Tutorial For Beginners | Edureka Rewind
edureka!
18 Realtime Object Detection  | Object Detection with TensorFlow | Edureka | Deep Learning Rewind - 2
Realtime Object Detection | Object Detection with TensorFlow | Edureka | Deep Learning Rewind - 2
edureka!
19 Top 20 Tableau Tips and Tricks in 20 Minutes | Tableau Tutorial | Tableau Training  | Edureka Rewind
Top 20 Tableau Tips and Tricks in 20 Minutes | Tableau Tutorial | Tableau Training | Edureka Rewind
edureka!
20 Climate Change Prediction using Time Series | Python Projects | Edureka | DS Rewind -  5
Climate Change Prediction using Time Series | Python Projects | Edureka | DS Rewind - 5
edureka!
21 ReactJS Installation Tutorial | ReactJS Installation On Windows | ReactJS Tutorial | Edureka Rewind
ReactJS Installation Tutorial | ReactJS Installation On Windows | ReactJS Tutorial | Edureka Rewind
edureka!
22 Phases in Cybersecurity  | Cybersecurity Training | Edureka | Cybersecurity Rewind - 2
Phases in Cybersecurity | Cybersecurity Training | Edureka | Cybersecurity Rewind - 2
edureka!
23 What Is React | ReactJS Tutorial for Beginners | ReactJS Training | Edureka Rewind
What Is React | ReactJS Tutorial for Beginners | ReactJS Training | Edureka Rewind
edureka!
24 Cybersecurity Frameworks Tutorial | Cybersecurity Training | Edureka | Cybersecurity Rewind- 2
Cybersecurity Frameworks Tutorial | Cybersecurity Training | Edureka | Cybersecurity Rewind- 2
edureka!
25 React vs Angular 4  | Angular 2 vs React | React & Angular | ReactJS Training | Edureka Rewind - 5
React vs Angular 4 | Angular 2 vs React | React & Angular | ReactJS Training | Edureka Rewind - 5
edureka!
26 ReactJS Components Life-Cycle Tutorial  | React Tutorial for Beginners  | Edureka Rewind
ReactJS Components Life-Cycle Tutorial | React Tutorial for Beginners | Edureka Rewind
edureka!
27 Ethical Hacking using Kali Linux | Ethical Hacking Tutorial | Edureka | Cybersecurity Rewind - 3
Ethical Hacking using Kali Linux | Ethical Hacking Tutorial | Edureka | Cybersecurity Rewind - 3
edureka!
28 Types Of Artificial Intelligence | Artificial Intelligence Explained | What is AI? | Edureka
Types Of Artificial Intelligence | Artificial Intelligence Explained | What is AI? | Edureka
edureka!
29 Top 10 Applications Of Artificial Intelligence in 2023 | Artificial Intelligence| Edureka Rewind
Top 10 Applications Of Artificial Intelligence in 2023 | Artificial Intelligence| Edureka Rewind
edureka!
30 The Future of AI | How will Artificial Intelligence Change the World in 2023? | Edureka Rewind
The Future of AI | How will Artificial Intelligence Change the World in 2023? | Edureka Rewind
edureka!
31 What is Artificial Intelligence | Artificial Intelligence Tutorial For Beginners | Edureka Rewind
What is Artificial Intelligence | Artificial Intelligence Tutorial For Beginners | Edureka Rewind
edureka!
32 Google Cloud IAM | Identity & Access Management on GCP  | Edureka | GCP Rewind - 5
Google Cloud IAM | Identity & Access Management on GCP | Edureka | GCP Rewind - 5
edureka!
33 Google Cloud AI Platform Tutorial | Google Cloud AI Platform   | GCP Training | Edureka Rewind
Google Cloud AI Platform Tutorial | Google Cloud AI Platform | GCP Training | Edureka Rewind
edureka!
34 Projects in Google Cloud Platform  | GCP Project Structure  | GCP Training | Edureka Rewind
Projects in Google Cloud Platform | GCP Project Structure | GCP Training | Edureka Rewind
edureka!
35 How to Become a Data Scientist | Data Scientist Skills | Data Science Training  | Edureka Rewind - 3
How to Become a Data Scientist | Data Scientist Skills | Data Science Training | Edureka Rewind - 3
edureka!
36 Agglomerative and Divisive Hierarchical Clustering Explained | Data Science Training | Edureka Live
Agglomerative and Divisive Hierarchical Clustering Explained | Data Science Training | Edureka Live
edureka!
37 Climate Change Prediction using Time Series | Python Projects | Edureka | DS Rewind -  5
Climate Change Prediction using Time Series | Python Projects | Edureka | DS Rewind - 5
edureka!
38 Data Science Project - Covid-19 Data Analysis | Python Training | Edureka | DS Rewind - 6
Data Science Project - Covid-19 Data Analysis | Python Training | Edureka | DS Rewind - 6
edureka!
39 What is Honeycode? | Introduction to Honeycode | Edureka
What is Honeycode? | Introduction to Honeycode | Edureka
edureka!
40 Difference between Amazon AWS and Google Cloud | GCP Training Google Cloud | Edureka Live
Difference between Amazon AWS and Google Cloud | GCP Training Google Cloud | Edureka Live
edureka!
41 DevOps Lifecycle | Introduction To DevOps | DevOps Tools | What is DevOps? | Edureka Rewind
DevOps Lifecycle | Introduction To DevOps | DevOps Tools | What is DevOps? | Edureka Rewind
edureka!
42 Introduction to DevOps | DevOps Tutorial for Beginners | DevOps Tools | DevOps | Edureka Rewind
Introduction to DevOps | DevOps Tutorial for Beginners | DevOps Tools | DevOps | Edureka Rewind
edureka!
43 How to Create Login System using Python | Python Programming Tutorial | Edureka Rewind
How to Create Login System using Python | Python Programming Tutorial | Edureka Rewind
edureka!
44 Python Developer | How to become Python Developer | Python Tutorial  | Edureka Rewind
Python Developer | How to become Python Developer | Python Tutorial | Edureka Rewind
edureka!
45 How to become a Data Engineer | Complete Roadmap to become a Data Engineer| Data Engineer |  Edureka
How to become a Data Engineer | Complete Roadmap to become a Data Engineer| Data Engineer | Edureka
edureka!
46 Azure Data Engineer Certification [DP 203] | How to Become Azure Data Engineer [2023] | Edureka
Azure Data Engineer Certification [DP 203] | How to Become Azure Data Engineer [2023] | Edureka
edureka!
47 Data Analyst vs Data Engineer vs Data Scientist | Data Analytics Masters Program  | Edureka Rewind
Data Analyst vs Data Engineer vs Data Scientist | Data Analytics Masters Program | Edureka Rewind
edureka!
48 DevOps Engineer day-to-day Activities | DevOps Engineer Responsibilities | Edureka Rewind
DevOps Engineer day-to-day Activities | DevOps Engineer Responsibilities | Edureka Rewind
edureka!
49 How to Become a DevOps Engineer?  | DevOps Engineer Roadmap | Edureka | DevOps Rewind
How to Become a DevOps Engineer? | DevOps Engineer Roadmap | Edureka | DevOps Rewind
edureka!
50 How to Become a Data Engineer? | Data Engineering Training | Edureka
How to Become a Data Engineer? | Data Engineering Training | Edureka
edureka!
51 How To Become A Big Data Engineer? | Big Data Engineer Roadmap | Edureka Rewind
How To Become A Big Data Engineer? | Big Data Engineer Roadmap | Edureka Rewind
edureka!
52 Python Integration for Power BI and Predictive Analytics | Power BI Training | Edureka
Python Integration for Power BI and Predictive Analytics | Power BI Training | Edureka
edureka!
53 Power BI KPI Indicators Tutorial | Custom Visuals In Power BI | Power BI Training  | Edureka Rewind
Power BI KPI Indicators Tutorial | Custom Visuals In Power BI | Power BI Training | Edureka Rewind
edureka!
54 Apache HBase Tutorial For Beginners | What is Apache HBase? | Big Data Training | Edureka Rewind
Apache HBase Tutorial For Beginners | What is Apache HBase? | Big Data Training | Edureka Rewind
edureka!
55 Big Data Hadoop Tutorial For Beginners  | Hadoop Training | Big Data Tutorial  | Edureka  Rewind
Big Data Hadoop Tutorial For Beginners | Hadoop Training | Big Data Tutorial | Edureka Rewind
edureka!
56 Big Data Analytics  | Big Data Analytics Use-Cases | Big Data Tutorial | Edureka Rewind
Big Data Analytics | Big Data Analytics Use-Cases | Big Data Tutorial | Edureka Rewind
edureka!
57 What Is Power BI? | Introduction To Microsoft Power BI | Power BI Training  | Edureka  Rewind
What Is Power BI? | Introduction To Microsoft Power BI | Power BI Training | Edureka Rewind
edureka!
58 Triggers in Salesforce | Salesforce Apex Triggers | Salesforce  Tutorial  | Edureka Rewind
Triggers in Salesforce | Salesforce Apex Triggers | Salesforce Tutorial | Edureka Rewind
edureka!
59 How To Become A Salesforce Developer | Salesforce For Beginners| Salesforce Training  Edureka Rewind
How To Become A Salesforce Developer | Salesforce For Beginners| Salesforce Training Edureka Rewind
edureka!
60 Java ArrayList Tutorial | Java ArrayList Examples | Java Tutorial | Edureka Rewind
Java ArrayList Tutorial | Java ArrayList Examples | Java Tutorial | Edureka Rewind
edureka!

Related Reads

📰
Fat Controllers No More: Architecting Clean Laravel Apps with Services and Repositories
Learn to architect clean Laravel apps using services and repositories to avoid fat controllers
Medium · Programming
📰
I Finally Read Designing Data-Intensive Applications (2nd Edition) - Here's Why Every Backend Engineer Should
Learn why every backend engineer should read Designing Data-Intensive Applications to improve their system design skills
Dev.to · Stack Overflowed
📰
From Node Graphs back to Code
Learn how node graphs can improve coding by providing an intuitive and visual approach to programming
Medium · Programming
📰
7 Angular Pipe Techniques Only Senior Developers Know
Learn 7 advanced Angular pipe techniques for efficient data transformation and display in your applications
Medium · Programming
Up next
CachyOS June 2026 Released! 🚀 Hyprland Noctalia, Faster Performance, Safer Pacman & More
Linux Tech AI
Watch →