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
Microservices
Spring Cloud Essentials
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 Become a Good Java Developer?
There are numerous programming languages that programmers and developers can use today from C language, C++ to Python etc. Java may be a language that is considered versatile due to its ability to be utilized in designing customized apps that are fast and lightweight. Programming languages are designed to shape out a developer's future, they are used to make different apps, wonderful websites, and several software products you see around you. Consider the big giants like Amazon, Google, and the rest other major industry players are using Java in a mature manner. Becoming expert Java developers puts individuals in the front line within the industry. Moreover, many companies are trying to find developers proficient in Java. Let's talk about some popularity
Microservices Interview Questions
If we talk about a job interview in Java technology, knowledge of Microservices is expected from a java developer now-a-days. Even if you donโt mention it in your resume, you will be asked a question 'Did you get any chance to work in Microservices?'. It happens because Microservices is gaining the importance day by day in developing a Java based Application. Apart from that, microservices is a trending architecture in the industry. Hence, sometime it becomes a โMust Knowโ skill for a Java developer. Therefore, our topic for discussion is โMicroservices Interview Questions & Answersโ. Microservices Interview Questions In this article, we will talk about the most important interview questions on Microservices. If you are looking for detailed tutorials on Microservices, kindly
Spring Cloud Annotations With Examples
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 Spring Cloud Config Server In Microservices
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 easier. Therefore, How can we make a central repository
How To Implement Spring Cloud Gateway In Microservices
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 reasons to learn 'How To Implement Spring Cloud Gateway 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 nothing
How to implement Fault Tolerance in Microservices using Resilience4j?
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
How to monitor Spring Boot Microservices using ELK Stack?
While developing an application, we always incorporate a feature in our code that can direct us what went wrong if the application fails to run normally. This feature is nothing but logging. The more work you do with logging, the less work you have to do with fixing the application issue. Typically, we keep all logging information in a text format file, called a log file. This file captures all the details such as startup of a server, activities of all users, names of classes, methods, timestamp, occurred exceptions with stack trace etc. Moreover, it depends on us what all information we require in the log file. Sometimes, these log files become larger in size and finding the exact issue manually
How to Implement Distributed Logging Tracing using Sleuth Zipkin
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 Logging Tracing using Sleuth Zipkin' 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 timings or