title
API Gateway | Microservice
description
Telusko Courses:
Java Simplified LiveCourse : https://bit.ly/java-pro-telusko
Advance Java with Spring Boot Live Course : https://bit.ly/adv-java-telusko
Complete java developer Course : https://bit.ly/complete-java
Coupon Code: TELUSKO10 (10% off)
For More Queries WhatsApp or Call on : +919008963671
website : https://courses.telusko.com/
Microservice Git Link : https://github.com/navinreddy20/MicroserviceTutorials
Instagram : https://www.instagram.com/navinreddyofficial/
Linkedin : https://in.linkedin.com/in/navinreddy20
TELUSKO Android App : https://bit.ly/TeluskoApp
Discord : https://discord.gg/D8hWe9BqfF
More Learning :
Java :- https://bit.ly/3x6rr0N
Python :- https://bit.ly/3GRc7JX
Django :- https://bit.ly/3MmoJK6
JavaScript :- https://bit.ly/3tiAlHo
Node JS :- https://bit.ly/3GT4liq
Rest Api :-https://bit.ly/3MjhZwt
Servlet :- https://bit.ly/3Q7eA7k
Spring Framework :- https://bit.ly/3xi7buh
Design Patterns in Java :- https://bit.ly/3MocXiq
Docker :- https://bit.ly/3xjWzLA
Blockchain Tutorial :- https://bit.ly/3NSbOkc
Corda Tutorial:- https://bit.ly/3thbUKa
Hyperledger Fabric :- https://bit.ly/38RZCRB
NoSQL Tutorial :- https://bit.ly/3aJpRuc
Mysql Tutorial :- https://bit.ly/3thpr4L
Data Structures using Java :- https://bit.ly/3MuJa7S
Git Tutorial :- https://bit.ly/3NXyCPu
Donation:
PayPal Id : navinreddy20
https://www.instamojo.com/@NavinReddy
detail
{'title': 'API Gateway | Microservice', 'heatmap': [], 'summary': 'Covers creating microservices, setting up eureka server and client, utilizing fing, and the role of api gateway in enhancing user interaction and authentication within a microservices architecture. it also explains configuring the api gateway for microservices, including setting up different port numbers and enabling service discovery, and provides an overview of a microservices architecture, focusing on key projects and the use of eureka client and eureka server for service discovery and load balancing.', 'chapters': [{'end': 162.523, 'segs': [{'end': 47.582, 'src': 'embed', 'start': 0.049, 'weight': 0, 'content': [{'end': 2.712, 'text': 'Now, till this point, we have done so many things in this project.', 'start': 0.049, 'duration': 2.663}, {'end': 7.997, 'text': 'Basically, we created two different microservices, and we have also gone through some concepts.', 'start': 2.752, 'duration': 5.245}, {'end': 12.402, 'text': 'Example if one microservice wants to call the second microservice, how will they discover?', 'start': 8.057, 'duration': 4.345}, {'end': 14.144, 'text': 'So for that we have installed.', 'start': 12.822, 'duration': 1.322}, {'end': 16.686, 'text': 'also we have worked with the Eureka server, Eureka Client.', 'start': 14.144, 'duration': 2.542}, {'end': 25.231, 'text': 'If you want to make sure that one instance is able to call the other one, or the one services want to call the other one, what is shortcut way?', 'start': 17.627, 'duration': 7.604}, {'end': 26.712, 'text': 'So we have used Fing as well.', 'start': 25.251, 'duration': 1.461}, {'end': 28.092, 'text': "Now there's one important concept.", 'start': 26.832, 'duration': 1.26}, {'end': 29.773, 'text': 'Of course, microservice is a huge concept.', 'start': 28.132, 'duration': 1.641}, {'end': 33.935, 'text': 'There are a lot of things, but then one thing which is very important is the API gateway.', 'start': 29.793, 'duration': 4.142}, {'end': 39.538, 'text': 'Now, why do we need API gateway? See, the thing is, if you talk about a user, now user is looking at your microservices.', 'start': 33.975, 'duration': 5.563}, {'end': 42.82, 'text': 'In fact, all your microservices combined as one application, right?', 'start': 39.578, 'duration': 3.242}, {'end': 45.041, 'text': 'Now, user has no interest to know.', 'start': 43.18, 'duration': 1.861}, {'end': 47.582, 'text': 'okay, you have quiz microservice, you have question microservice.', 'start': 45.041, 'duration': 2.541}], 'summary': 'Project includes creating two microservices, using eureka server and api gateway.', 'duration': 47.533, 'max_score': 0.049, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/KeZhT5pLn4c/pics/KeZhT5pLn4c49.jpg'}], 'start': 0.049, 'title': 'Microservices and api gateway', 'summary': 'Delves into creating microservices, setting up eureka server and client, utilizing fing, and the role of api gateway in enhancing user interaction and authentication within a microservices architecture.', 'chapters': [{'end': 162.523, 'start': 0.049, 'title': 'Microservices and api gateway', 'summary': 'Discusses the creation of microservices, installation of eureka server and client, usage of fing, and the importance of api gateway in simplifying user interaction and authentication within a microservices architecture.', 'duration': 162.474, 'highlights': ['The importance of API gateway in simplifying user interaction and authentication within a microservices architecture. The API gateway becomes the entry point or the interface for the user, providing a one URL interaction with all microservices, simplifying authentication, access control, and cross-cutting concerns.', 'Creation of two different microservices and installation of Eureka server and Eureka Client. Two different microservices were created and Eureka server and client were installed to facilitate the discovery and communication between the microservices.', 'Usage of Fing for ensuring one instance is able to call the other one. Fing was used to ensure that one microservice instance can call the other, providing a shortcut way for communication.']}], 'duration': 162.474, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/KeZhT5pLn4c/pics/KeZhT5pLn4c49.jpg', 'highlights': ['The importance of API gateway in simplifying user interaction and authentication within a microservices architecture.', 'Creation of two different microservices and installation of Eureka server and Eureka Client.', 'Usage of Fing for ensuring one instance is able to call the other one.']}, {'end': 572.401, 'segs': [{'end': 232.702, 'src': 'embed', 'start': 206.611, 'weight': 0, 'content': [{'end': 213.158, 'text': "And once you've got these two dependencies, of course you can add Actuator, you can add DevTools, which you can use in the other projects as well.", 'start': 206.611, 'duration': 6.547}, {'end': 218.264, 'text': "But just to keep it simple, I'm going for two, Gateway and Eureka's Discovery Client.", 'start': 213.739, 'duration': 4.525}, {'end': 219.686, 'text': 'with this.', 'start': 219.105, 'duration': 0.581}, {'end': 221.969, 'text': "let's download the project so you can see.", 'start': 219.686, 'duration': 2.283}, {'end': 224.051, 'text': 'we got api gateway in this machine.', 'start': 221.969, 'duration': 2.082}, {'end': 227.155, 'text': "i already had one zip file and that's why you can see in bracket it is one.", 'start': 224.051, 'duration': 3.104}, {'end': 228.056, 'text': 'so let me unzip it.', 'start': 227.155, 'duration': 0.901}, {'end': 228.777, 'text': 'so unzipping done.', 'start': 228.056, 'duration': 0.721}, {'end': 232.702, 'text': 'uh, let me open this in my intellij idea.', 'start': 228.777, 'duration': 3.925}], 'summary': "Setting up api gateway and eureka's discovery client in the project.", 'duration': 26.091, 'max_score': 206.611, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/KeZhT5pLn4c/pics/KeZhT5pLn4c206611.jpg'}, {'end': 311.143, 'src': 'embed', 'start': 283.351, 'weight': 1, 'content': [{'end': 285.712, 'text': 'so we have two question service instances running on 8080, 8081..', 'start': 283.351, 'duration': 2.361}, {'end': 287.413, 'text': 'We got a quiz service running on 8090.', 'start': 285.712, 'duration': 1.701}, {'end': 289.314, 'text': 'We got our Eureka server running on 8761.', 'start': 287.413, 'duration': 1.901}, {'end': 291.795, 'text': 'An API gateway we need to run on some other server.', 'start': 289.314, 'duration': 2.481}, {'end': 299.179, 'text': "So we'll set two things here.", 'start': 297.538, 'duration': 1.641}, {'end': 302.2, 'text': 'First is cloud.application.name.', 'start': 299.399, 'duration': 2.801}, {'end': 304.58, 'text': "So let's set this as API gateway.", 'start': 302.4, 'duration': 2.18}, {'end': 306.481, 'text': 'The next thing you have to mention is the server number.', 'start': 304.841, 'duration': 1.64}, {'end': 308.982, 'text': "Let's say 8765 port number.", 'start': 306.721, 'duration': 2.261}, {'end': 311.143, 'text': 'And we need one more thing.', 'start': 309.502, 'duration': 1.641}], 'summary': 'Two question service instances on 8080, 8081, quiz service on 8090, eureka server on 8761, and api gateway to run on 8765 port.', 'duration': 27.792, 'max_score': 283.351, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/KeZhT5pLn4c/pics/KeZhT5pLn4c283351.jpg'}, {'end': 449.302, 'src': 'embed', 'start': 419.858, 'weight': 2, 'content': [{'end': 424.9, 'text': 'So API Gateway will connect to the quiz service because of the Eureka client, and then it is able to communicate.', 'start': 419.858, 'duration': 5.042}, {'end': 429.982, 'text': 'See, ultimately, we are trying to connect with the quiz instance or the quiz service.', 'start': 425.3, 'duration': 4.682}, {'end': 433.864, 'text': 'If you run this code, or if you run this URL, still not working.', 'start': 430.322, 'duration': 3.542}, {'end': 436.054, 'text': 'Okay, we have to do one more thing.', 'start': 434.773, 'duration': 1.281}, {'end': 443.879, 'text': 'In the code of application.properties, basically here, of API Gateway, we need to set one more thing, which is the locator.', 'start': 436.454, 'duration': 7.425}, {'end': 449.302, 'text': 'So we have to mention spring.cloud.gateway.discovery.locator.', 'start': 444.079, 'duration': 5.223}], 'summary': 'Api gateway connects to quiz service via eureka client for communication.', 'duration': 29.444, 'max_score': 419.858, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/KeZhT5pLn4c/pics/KeZhT5pLn4c419858.jpg'}], 'start': 162.763, 'title': 'Setting up api gateway and configuring for microservices', 'summary': 'Covers creating an api gateway project using spring initializr, specifying dependencies, and opening the project in intellij idea. it also explains configuring the api gateway for microservices, including setting up different port numbers and enabling service discovery.', 'chapters': [{'end': 262.829, 'start': 162.763, 'title': 'Creating api gateway using spring initializr', 'summary': 'Outlines the process of creating an api gateway project using spring initializr, specifying the necessary dependencies, and opening the project in intellij idea, with emphasis on using gateway and eureka client dependencies for registration to the eureka server.', 'duration': 100.066, 'highlights': ['The chapter emphasizes the process of creating an API gateway project using Spring Initializr and the importance of specifying the necessary dependencies, with a focus on using Gateway and Eureka client dependencies for registration to the Eureka server.', 'The speaker mentions the updated version 3.1.2 of the project, replacing the earlier version 3.1.1, and the utilization of Java 17 in the project, with the artifact ID as api gateway and group ID as com.telisco.', 'The chapter highlights the significance of including the Gateway and Eureka client dependencies in the project, with a mention of the potential addition of Actuator and DevTools for future use, simplifying the project by opting for only two dependencies, and the subsequent download and extraction of the API gateway project.']}, {'end': 572.401, 'start': 263.069, 'title': 'Configuring api gateway for microservices', 'summary': 'Explains the configuration of an api gateway for microservices, including setting up different port numbers for various services and enabling service discovery, leading to successful communication between the api gateway and microservices.', 'duration': 309.332, 'highlights': ['Setting up different port numbers for various services The chapter discusses setting up different port numbers for multiple services, such as having two question service instances running on 8080, 8081, a quiz service running on 8090, Eureka server on 8761, and an API gateway on a different server.', 'Enabling service discovery for API gateway The process of enabling service discovery for the API gateway is explained, where the API gateway is allowed to search and locate services using the Eureka client, leading to successful communication with the quiz service.', "Configuring lowercase service id for API gateway The chapter outlines the configuration of the API gateway to convert service ids into lowercase for successful communication, demonstrating the usage of 'spring.cloud.gateway.discovery.locator.lowercaseServiceId' property to achieve this."]}], 'duration': 409.638, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/KeZhT5pLn4c/pics/KeZhT5pLn4c162763.jpg', 'highlights': ['The chapter emphasizes creating an API gateway project using Spring Initializr and specifying necessary dependencies, focusing on Gateway and Eureka client dependencies.', 'Setting up different port numbers for multiple services, such as two question service instances running on 8080, 8081, a quiz service running on 8090, Eureka server on 8761, and an API gateway on a different server.', 'Enabling service discovery for the API gateway using the Eureka client, leading to successful communication with the quiz service.']}, {'end': 706.1, 'segs': [{'end': 690.386, 'src': 'embed', 'start': 609.589, 'weight': 0, 'content': [{'end': 613.656, 'text': 'The quiz service, the question service, the service registry, API gateway.', 'start': 609.589, 'duration': 4.067}, {'end': 617.102, 'text': 'Just to give you a brief.', 'start': 614.197, 'duration': 2.905}, {'end': 621.923, 'text': 'when a user wants to play the quiz first, we need to create the quiz right.', 'start': 617.102, 'duration': 4.821}, {'end': 624.865, 'text': 'but when you say create quiz, where are the questions now?', 'start': 621.923, 'duration': 2.942}, {'end': 626.285, 'text': 'question belongs to the question service.', 'start': 624.865, 'duration': 1.42}, {'end': 629.067, 'text': 'right in the question service we can add questions.', 'start': 626.285, 'duration': 2.782}, {'end': 629.948, 'text': 'we can remove questions.', 'start': 629.067, 'duration': 0.881}, {'end': 631.148, 'text': 'we can search for a particular question.', 'start': 629.948, 'duration': 1.2}, {'end': 634.21, 'text': 'we can generate questions for quiz.', 'start': 631.148, 'duration': 3.062}, {'end': 638.995, 'text': 'we can get questions for a particular ID or list of IDs.', 'start': 634.21, 'duration': 4.785}, {'end': 643.24, 'text': 'We can also calculate this code and everything we have done in the question service.', 'start': 639.716, 'duration': 3.524}, {'end': 647.105, 'text': 'In the quiz service, basically, we were asking the user what you want to do.', 'start': 643.681, 'duration': 3.424}, {'end': 648.928, 'text': 'You want to create a quiz? OK, I will do it for you.', 'start': 647.145, 'duration': 1.783}, {'end': 651.01, 'text': 'But actually, quiz service is doing nothing.', 'start': 649.448, 'duration': 1.562}, {'end': 653.854, 'text': 'It just says, hey, question, generate a quiz for me.', 'start': 651.15, 'duration': 2.704}, {'end': 655.115, 'text': 'Smart Right.', 'start': 654.094, 'duration': 1.021}, {'end': 661.861, 'text': 'So the thing is, we have two microservices and then we were also able to do load balancing because of Eureka Client and Faying.', 'start': 655.496, 'duration': 6.365}, {'end': 668.767, 'text': "But then we don't want to directly interact with each individual services and that's why we have used API Gateway.", 'start': 662.121, 'duration': 6.646}, {'end': 671.45, 'text': 'So as a user, I will interact with the API Gateway.', 'start': 669.168, 'duration': 2.282}, {'end': 674.172, 'text': 'API Gateway will interact with the other services.', 'start': 671.59, 'duration': 2.582}, {'end': 679.897, 'text': "And how do you search between different services? And that's why we have Eureka Client and Eureka Server.", 'start': 674.672, 'duration': 5.225}, {'end': 681.378, 'text': 'And we have seen that as well.', 'start': 680.518, 'duration': 0.86}, {'end': 683.941, 'text': 'i know when you are doing this project.', 'start': 682.219, 'duration': 1.722}, {'end': 685.962, 'text': 'there will be a lot of issues, so let us know.', 'start': 683.941, 'duration': 2.021}, {'end': 690.386, 'text': 'in the comment section, and also you can join the discord channel, you will find the link in description.', 'start': 685.962, 'duration': 4.424}], 'summary': 'Microservices architecture includes quiz and question services, api gateway, and eureka for service communication and load balancing.', 'duration': 80.797, 'max_score': 609.589, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/KeZhT5pLn4c/pics/KeZhT5pLn4c609589.jpg'}], 'start': 572.401, 'title': 'Microservices architecture overview', 'summary': 'Provides an overview of a microservices architecture, focusing on four key projects: quiz service, question service, service registry, and api gateway, and the use of eureka client and eureka server for service discovery and load balancing.', 'chapters': [{'end': 706.1, 'start': 572.401, 'title': 'Microservices architecture overview', 'summary': 'Provides an overview of a microservices architecture, highlighting the creation and functionality of four key projects: quiz service, question service, service registry, and api gateway, along with the utilization of eureka client and eureka server for service discovery and load balancing.', 'duration': 133.699, 'highlights': ['The chapter outlines the functionality of four key projects: quiz service, question service, service registry, and API gateway, demonstrating the creation of quizzes, management of questions, and the utilization of Eureka Client and Eureka Server for service discovery and load balancing.', 'It emphasizes the role of the question service in managing questions, including addition, removal, search, generation for quizzes, and retrieval by ID, showcasing the comprehensive functionality of the service.', 'It explains the minimal functionality of the quiz service, which primarily interacts with the question service to generate quizzes, underscoring the interconnected nature of microservices within the architecture.', 'The use of API Gateway to facilitate user interaction with multiple services and the employment of Eureka Client and Eureka Server for efficient service discovery and load balancing are highlighted as key architectural components.']}], 'duration': 133.699, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/KeZhT5pLn4c/pics/KeZhT5pLn4c572401.jpg', 'highlights': ['The chapter outlines the functionality of four key projects: quiz service, question service, service registry, and API gateway, demonstrating the creation of quizzes, management of questions, and the utilization of Eureka Client and Eureka Server for service discovery and load balancing.', 'It emphasizes the role of the question service in managing questions, including addition, removal, search, generation for quizzes, and retrieval by ID, showcasing the comprehensive functionality of the service.', 'The use of API Gateway to facilitate user interaction with multiple services and the employment of Eureka Client and Eureka Server for efficient service discovery and load balancing are highlighted as key architectural components.', 'It explains the minimal functionality of the quiz service, which primarily interacts with the question service to generate quizzes, underscoring the interconnected nature of microservices within the architecture.']}], 'highlights': ['The importance of API gateway in simplifying user interaction and authentication within a microservices architecture.', 'Creation of two different microservices and installation of Eureka server and Eureka Client.', 'Usage of Fing for ensuring one instance is able to call the other one.', 'Setting up different port numbers for multiple services, such as two question service instances running on 8080, 8081, a quiz service running on 8090, Eureka server on 8761, and an API gateway on a different server.', 'Enabling service discovery for the API gateway using the Eureka client, leading to successful communication with the quiz service.', 'The chapter outlines the functionality of four key projects: quiz service, question service, service registry, and API gateway, demonstrating the creation of quizzes, management of questions, and the utilization of Eureka Client and Eureka Server for service discovery and load balancing.', 'It emphasizes the role of the question service in managing questions, including addition, removal, search, generation for quizzes, and retrieval by ID, showcasing the comprehensive functionality of the service.', 'The use of API Gateway to facilitate user interaction with multiple services and the employment of Eureka Client and Eureka Server for efficient service discovery and load balancing are highlighted as key architectural components.', 'It explains the minimal functionality of the quiz service, which primarily interacts with the question service to generate quizzes, underscoring the interconnected nature of microservices within the architecture.']}