Structural Design Patterns In Java Design Core Java java by devs5003 - June 18, 2021July 7, 20251 In continuation of the first part of Design Patterns in Java, we will discuss about Structural Design Patterns In Java in this article. We have already covered Creational Design Patterns in Java in the first part as mentioned. The Structural Design Patterns deal with different ways to create a class structure. Moreover, they use Inheritance and Composition techniques to create larger objects from small objects. We will discuss seven design patterns in total in this article that come under the category of Structural Design Pattern. Let's start discussing our topic 'Structural Design Patterns In Java'. What are Structural Design Patterns in Java? Structural patterns provide different ways to create a class structure, for example, using inheritance and composition to create a large
Creational Design Patterns In Java Design Core Java java by devs5003 - June 13, 2021October 28, 20254 As the first part of Design Patterns in Java, we will discuss about Creational Design Patterns in Java in this article. We have already covered the Introduction of Design Patterns in Java in a separate article. In the introductory part, we have already discussed about What, Why & advantages of Design Patterns. We will discuss five design patterns in total in this article that come under the category of Creational Design Patterns. Creational design patterns deal with providing solutions to instantiate an object in the best possible way for specific situations. Let's start with our topic 'Creational Design Patterns in Java' and other concepts related to it. What are Creational Design Patterns in Java? Creational design patterns provide solution to instantiate an object
Functional Interface In Java Examples Java 8 Core Java java by devs5003 - April 26, 2021March 1, 20244 Functional Interface in Java has become available for us since the introduction of new features in Java 8. Needless to say, how important functional Interfaces are in Java. If we start learning the most popular feature of Java 8: 'The Lambda Expression', we should at least know the basics of Functional Interfaces. However, you will get more than basics from this article. Moreover, they also promote functional programming in Java. Without functional Interface in Java, you can't imagine to write a code of Lambda Expression and Method References. In fact, introduction of default & static methods inside an interface in Java 8 itself has completely changed the definition of Interfaces in Java. Let's discuss our topic 'Functional Interface in Java' and
How to Implement Distributed Tracing Logging using Sleuth Zipkin Microservices java Sleuth & Zipkin Spring Cloud by devs5003 - April 21, 2021April 27, 20251 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
Lambda Expression In Java java Core Java Java 8 by devs5003 - April 19, 2021November 6, 20250 Lambda Calculus is a big change in mathematical world which has been introduced in 1930. Because of benefits of Lambda Calculus slowly this concept started being used in the programming world. “LISP” is the first programming which used Lambda Expression. Simultaneously, some other languages are already using lambda expressions such as : C, C++, C# .Net, C Objective, Python, Ruby and obviously Java as well. However, our topic of discussion is 'Lambda Expression in Java'. Lambda Expression in Java is one of the crucial feature within the new features introduced in Java 8. Let's start discussing 'Lambda Expression in Java' and related concepts step by step. Why we use Lambda Expression in Java? The primary Objective of introducing Lambda Expression is to promote
How to Implement Hystrix Circuit Breaker in Microservices Application? Hystrix Circuit Breaker java Microservices Spring Cloud by devs5003 - April 9, 2021November 14, 20254 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
How to add JDK 16 support in Eclipse 2021-03 ? eclipse java jdk16 by devs5003 - March 16, 2021June 1, 20221 Oracle has released JDK 16 in March, 2021 and it's general availability date is 2021/03/16. Every Java Professional should be curious to know what is new in Java 16. But, how will we test the new features of Java 16 practically? However, we have a good news for Eclipse users. In this article, we will learn 'How to add JDK 16 support in Eclipse 2021-03 ?' Thanks to Eclipse community as they provide solution for developers before every new release of JDK version. In this article, we will learn two ways of configuring JDK 16 in our eclipse. Each way will have step by step instructions to do it easily. Let's start our topic 'How to add JDK 16 support in
Microservices Architecture in Java Microservices java Spring Cloud by devs5003 - March 10, 2021November 14, 202517 microservices architecture in java The term Microservices was first introduced by Martin Fowler and used at a software architects’ workshop in 2011 for the first time. It is making a tremendous popularity among the development organizations' day by day. Likewise, the demand of Microservices developers is increasing exponentially, particularly using microservices architecture in java. But have you ever thought that why it is becoming so popular? If you are not aware of Microservices Architecture, you just need to spend some minutes with me. You will observe that maximum number of your doubts are already clear, and the remaining you will be able to clear yourself while developing a project using this concept. However, theoretically taking on microservices is easy, but practically it
Spring Boot Errors and AOP Annotations With Examples Spring Boot Docker java Spring by devs5003 - February 20, 2021May 7, 20251 In this article we will discuss on 'Spring Boot Errors and AOP Annotations with Examples'. Needless to say, these annotations play a crucial role in creating Spring Boot Applications. If you want to learn all annotations which are generally used in a Spring Boot Project, kindly visit our article 'Spring Boot Annotations with Examples'. Let's discuss about 'Spring Boot Errors and AOP Annotations with Examples' here only. Spring Boot Errors and AOP Annotations With Examples Let's discuss the most commonly used annotations on Spring/Spring Boot Errors/Exceptions and AOP one by one. Annotations on Spring Errors & Exceptions Spring Boot proves that Exception handling is a crosscutting concern by offering some annotations such as @Exception Handler, @ContollerAdvice, @ResponseStatus. In order to learn about Spring Boot
How To Secure Spring Boot Application By Google reCAPTCHA? Spring Boot Google reCAPTCHA Validation java Spring by devs5003 - January 28, 2021November 27, 20244 In continuation to previous article on Securing Spring Boot Application by Simple CAPTCHA, here in this article we will discuss about Google reCAPTCHA. Needless to say, reCAPTCHA protects your application or website from fraud and misuse. It uses an advanced risk analysis engine and flexible challenges to keep malicious software out from entering into offensive activities on your website. Meanwhile, allowed users will be able to login, view pages, or create accounts. On the other hand, fraud users will be blocked. We have already discussed the fundamentals of captcha including it's definition & types in our previous article. In short, reCAPCHA is a type of captcha security. We will talk all about it in our article 'How To Secure Spring Boot