How to register Microservices in Eureka Server java Eureka Microservices Spring Cloud by devs5003 - March 4, 2024March 11, 20247 In the series of Microservices Tutorial, we have already discussed on Microservices Architecture and Microservices in Java in a theoretical way. Now in this article, we will create an example by using Netflix Eureka in the context of Microservices. We will use Netflix Eureka to register & discover Microservices. In order to make intra-communication happen between multiple micro services, it is mandatory to register & discover them in the application. It is possible by using Netflix Eureka Server. Hence, we will talk about 'How to register Microservices in Eureka Server?' in this article. In order to make communication happen among all microservices in an application, there should be a common medium. Subsequently, that common medium should have details of all microservices
How to implement Fault Tolerance in Microservices using Resilience4j? Resilience4j java Microservices Spring Boot Spring Cloud by devs5003 - February 24, 2024February 27, 20246 When we develop an application, especially a Microservices-based applications, there are high chances that we experience some deviations while running it in real time. Sometimes, it could be slow response, network failures, REST call failures, failures due to the high number of requests and much more. In order to tolerate these kinds of suspected faults, we need to incorporate Fault Tolerance mechanism in our application. To achieve it, we will make use of Resilience4j library. Resilience4j is a lightweight, easy-to-use fault tolerance library inspired by Netflix Hystrix, but designed for Java 8 and functional programming. So, our focus in this article will be on 'How to implement Fault Tolerance in Microservices using Resilience4j?' After implementing the Fault Tolerance in Microservices using Resilience4j,
Spring Cloud Annotations With Examples java Microservices Spring Boot Spring Cloud by devs5003 - October 22, 2023December 26, 20230 Introduction of new Annotations reduces the development efforts day by day. Needless to say, as a developer, we can't think of the development of an enterprise level application without using annotations, especially in applications that use Spring or related frameworks. Furthermore, we come across the Spring Cloud framework when we develop a Microservices based application. Now-a-days, there is a high demand of Microservices based applications in the industry. Therefore, it becomes very crucial to know the annotations used in Spring Cloud. Hence, in this article, we are going to discuss 'Spring Cloud Annotations With Examples'. We can't deny from the fact that the cloud is the future and, in the upcoming days, we will be seeing a lot of Java based
How to Implement Feign Client in Spring Boot Microservices? Feign Client java Microservices Spring Boot Spring Cloud by devs5003 - August 29, 2023March 10, 20249 When two web applications communicate with each other for data exchange, they work on Producer-Consumer technique. An application who produces data is known as a Producer/Provider application. Similarly the one who consumes data is known as Consumer application. As a Java developer, we might be very familiar with REST API for Producer application whereas RestTemplate for Consumer application. With Microservices based application also, two Microservices communicate with each other and follow the Producer-Consumer model. Here, in consumer side, we use a concept 'Feign Client' as a better option instead of RestTemplate in order to minimize our effort of coding. Therefore, our topic of discussion is 'How to Implement Feign Client in Spring Boot Microservices?'. Apart from consuming REST services in an
Spring Cloud Essentials java Microservices Spring Boot Spring Cloud by devs5003 - July 27, 2023December 26, 20230 Whether you are a beginner or an experienced or trying to become a developer in the near future, you must have at least heard about the term Microservices. Undoubtedly, if you are working on it, you must have already had a good experience with it. Moreover, you must also have observed that the term 'Spring Cloud' comes in between while talking about Microservices. Do you know, why so? If you know it's good. If not, let's spare some time going through this article thoroughly. In this article, apart from knowing what is Spring Cloud, you will also get to know what are the features, capabilities and other fundamental concepts of Spring Cloud that are expected from a Microservices developer. Let's start
How To Deploy Spring Boot Application To Heroku Heroku java Spring Spring Boot Spring Cloud by devs5003 - September 28, 2022November 12, 20232 The development of a software application goes through multiple stages like: requirement analysis, designing, coding, testing. Once testing is completed successfully, we need to deploy the application somewhere in a server so that users can access it from anywhere. Generally, we deploy the application in the Cloud environment. Heroku is the cloud environment that provides us deployable infrastructure. So, we are going to discuss 'How To Deploy Spring Boot Application to Heroku'? in this article. Spring Boot’s flexible packaging options provide a great deal of choice when it comes to deploying your application. We can deploy Spring Boot applications to a variety of cloud platforms, to virtual/real machines, or make them fully executable for Unix systems. Here in this article we
How To Implement Spring Cloud Config Server In Microservices java Microservices Spring Cloud Spring Cloud Config Server by devs5003 - April 21, 2022February 29, 20243 In a Microservices architecture based Java application, we have multiple microservices in the form of multiple Spring Boot applications. Each Spring Boot application will have its separate configuration file, where we specify the values in the form of key - value pairs. If you used maven in your application, you must have guessed that we are talking about nothing but application.properties file. You might have noticed that some of the entries in each application's application.properties file are common, such as registering with Eureka server, Email, Security, JPA configurations etc. If we can keep these common entries in one central place and make them accessible by each application, it will make our development process easier. Therefore, How can we make a central
How To Implement API Gateway Spring Boot In Microservices API Gateway java Microservices Spring Boot Spring Cloud by devs5003 - April 8, 2022February 29, 20244 Microservices architecture offers us to deploy multiple services in different servers(hosts) in a private network. When a client request comes to microservices, it should get authenticated before the processing of request. Suppose we have 100 different services in a microservices based application. If client wants to interact with all of them, it will have to pass authentication 100 times. Reducing these many number of calls is one of the motivations to learn 'How To Implement API Gateway Spring Boot In Microservices'. If we have one service which takes care of authentication and also forward the request to concerned service, clients can get the response faster. Yes! We have such type of service which is responsible to do the same. It is
How to Implement Distributed Tracing Logging using Sleuth Zipkin Microservices java Sleuth & Zipkin Spring Cloud by devs5003 - April 21, 2021March 10, 20241 In Microservices Architecture based Applications, there are multiple services which interact with each other. In order to serve a client request, one request may involve multiple microservices call to get the response. If any exception occurs or any latency issue appears during such calls, then how will we identify the root cause of the issue? Of course, we will make use of Spring Cloud Sleuth & Zipkin to support distributed logging & Tracing. Therefore, we are going to learn about 'How to implement Distributed Tracing Logging using Sleuth Zipkin Spring Boot' and related concepts accordingly. If we are working on a Standard application, we can implement logging by adding one log file to identify any exception or other issues like response
How to Implement Hystrix Circuit Breaker in Microservices Application? Hystrix Circuit Breaker java Microservices Spring Cloud by devs5003 - April 9, 2021November 25, 20233 Microservices based applications feature a huge amount of distributed components. These components interact with each other during the request processing. As the number of interactions over the network increases, the possibility of an abnormal behavior of a service may also increase. In that case, we need to have some handy techniques that can prevent or minimize this abnormal behavior. Here, we are talking about none other than a fault-tolerance mechanism. The circuit breaker is fault-tolerance technique that monitors and detects when a service is behaving abnormally. It temporarily rejects those calls until the service becomes healthy again. Netflix Hystrix is an open source library which provides this solution. Hence, we are going to learn 'How to implement Hystrix Circuit Breaker in