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
Spring Data MongoDB Tutorial java MongoDB Spring Spring Boot by devs5003 - February 27, 2024February 28, 20240 In today's data-motivated world, it becomes very crucial to manage and query huge volumes of data efficiently for businesses to stay competitive. MongoDB, a popular NoSQL database, offers flexibility and scalability. On the other hand, Spring Data provides a powerful framework for simplifying data management in Java applications. The term 'Spring Data MongoDB' is nothing, but it is a combination of both 'Spring Data' and 'MongoDB'. In simple words, Spring Data MongoDB is a small readymade project provided by Spring community, that simplifies the process of how a Spring based application interacts with MongoDB, a NoSQL database. In this article, we will explore the world of Spring Data MongoDB, investigating its features, benefits, and practical examples to help you utilize its
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 Boot Cassandra CRUD Examples Cassandra java Spring Boot by devs5003 - February 23, 2024March 1, 20240 In continuation to Cassandra DB installation, now it's time to discuss about the most important CRUD operations using Cassandra DB. If we are in Software development world, we should at least know ‘How to write CRUD operation on the database front’. Needless to say, how much importance these operations have in an application development. If you are developing any web application in any programming language, you can’t escape from these operations. CRUD is nothing but an abbreviation to Create, Read, Update and Delete. Moreover, development of CRUD operations is expected from all developers. We will learn ‘Spring Boot Cassandra CRUD Examples’ in this article. Software/Technologies Used in the Examples Sometimes a specific version conflicts with another version. In order to avoid such
Singleton Class In Java With Examples: A Comprehensive Guide Core Java java by devs5003 - February 13, 2024February 16, 20240 In this article, we will explore the concept of Singleton class in Java, with different implementation techniques, their advantages and disadvantages, and provide various code examples to demonstrate their utilization. In Java programming, the concept of Singleton class comes from the Singleton design pattern which is one of the most commonly used design patterns in Java. It comes under the category of creational design patterns and is used to ensure that a class has only one instance and provides a global point of access to that instance. What is a Singleton class in Java? A class that can have only one instance (object) at any given time during the runtime of an application. It provides a global point of access to this instance,
Static Keyword In Java With Examples Core Java java by devs5003 - February 8, 2024March 11, 20242 The understanding of static keyword in java is so important that we as a java programmer cannot imagine a single runnable program without a static keyword. If we want to run a small program, we must use either main() method (which is static) or a static variable/block till JDK 1.6. Even we don't have the static variable/block option to run the program starting JDK 1.7 onward. Therefore, we should know all about the static keyword and keep in mind the significance of 'Static in Java'. We as a Java developer can't leave the static keyword untouched. Hence, we should have a clear understanding of static in java mandatorily. Additionally, the static keyword in java is an important topic in the interview
Spring Batch Example CSV to MySQL: JPA Batch Insert java Spring Spring Batch Spring Boot by devs5003 - February 4, 2024February 15, 20241 Sometimes in real time projects, we need to transfer data from one location to another. If the volume of data is small, we can achieve this by applying any traditional approach. On the other hand, if there is a huge amount of data, we can make use of the Spring Batch API to make the transfer of data faster and performant. In this article 'Spring Batch Example CSV to MySQL Using JPA', we are going to transfer the data from CSV file to MySQL database using Spring Boot Batch. We have already discussed theoretical concepts of Spring Batch in a separate article 'Spring Batch Tutorial'. Now, its time to implement our example 'Spring Batch Example CSV to MySQL Using JPA'. What will
JavaFX Tutorial: How To Create Rich Desktop Applications In Java? java javaFX by devs5003 - February 2, 2024February 14, 20240 JavaFX Tutorial: How To Create Rich Desktop Applications In Java Using JavaFX Are you facing difficulties while trying to create rich, stunning desktop applications? If yes, don’t think you are alone in the queue. A lot of developers get confused while they try to handle JavaFX, a software platform for developing and delivering desktop applications. JavaFX provides a rich set of graphics and media APIs enabling you to develop visually attractive attractive applications easily. JavaFX is a Java library that allows developers to produce rich client applications with visually demanding user interfaces. It offers a detailed set of UI controls, layout containers, and multimedia integration capabilities. JavaFX lets developers create cross-platform applications that can run on various operating systems such as, Windows, macOS,
Features Of Spring Boot java Spring Boot by devs5003 - February 1, 2024February 29, 20240 After knowing about 'What is Spring Boot?' in detail in a separate article, it's time to talk about the features of Spring Boot. Needless to say, Spring Boot is full of features, that's why it is being used in the majority of Java projects now-a-days. In this article, we are going to discuss features of Spring Boot in detail. If you are attending any interview of Java/Spring Boot, there are high chances that you may be asked to tell about some important features of Spring Boot. Spring-Boot comes with a lot of handy features that make the developer's life easier. Below are some of the important features of Spring Boot. Features of Spring Boot Spring Boot offers a variety of features that simplify
Singleton Design Pattern in Java with all Scenarios java Core Java Design by devs5003 - February 1, 2024February 16, 20249 In this article, we will go through all the scenarios of the Singleton pattern to make it crystal clear. From the definition, it seems to be a very simple design pattern but when it comes to implementation, it creates a lot of implementation concerns. Also, the implementation of Java Singleton pattern has always been a controversial topic among developers. Here, we will learn about Singleton Design Pattern in Java with all Scenarios, different ways to implement Singleton design pattern and some of the best practices for its usage. Sometimes, we get the requirement for some classes to have exactly one instance. There are many occasions when we need only one instance of the Object and if we instantiate more than one,