What is a Circuit Breaker pattern? The circuit breaker pattern is something that can prevent from repeatedly trying to call a service or a function that will likely fail and save CPU cycles. It is pretty common for a software service to call remote software service and the remote service can fail or not respond…… Continue reading Resilience4j Circuit Breaker With Spring boot
Arrays In Java With Example
The array is a data structure provided by Java which holds elements of the same data type with a fixed size.An array can hold elements/ values of the same data type, an example being we can create an array that can store 100 elements of type either int/String/char etc.. We can not have array hold…… Continue reading Arrays In Java With Example
Tracing With Spring Sleuth And Zipkin For Micro Services
As microservice architecture has become a standard for all the latest distributed systems, the tracing of the calls from one microservice to others has been a challenging thing for a while. To solve this Sprig Cloud introduced Spring Sleuth which borrows heavily from dapper. Spring sleuth adds traceID and spanID to the logs so it…… Continue reading Tracing With Spring Sleuth And Zipkin For Micro Services
Java ArrayList With Example
ArrayList is a resizable implementation of List interface, ArrayList can also be called as a dynamic Array. Like Array, ArrayList stores similar data type elements which can increase its size dynamically.ArrayList cannot store primitive data types like int and char, it can only store non-primitive data types like Integer, String, etc..The index of the ArrayList…… Continue reading Java ArrayList With Example
Netflix Eureka Server And Client Setup With Spring Boot
Overview We will set up a Eureka server (service registry used to register multiple services/microservices).We will set up multiple Eureka clients(REST services that register to Eureka Server).We will do client-side load balancing and service discovery through Eureka. Setting up Eureka Server The dependency required to set up a eureka server is “spring-cloud-starter-netflix-eureka-client” along with spring-boot-starter-parent.…… Continue reading Netflix Eureka Server And Client Setup With Spring Boot
Java Datatypes
What is a Datatype?A data type is an attribute of data that tells the compiler or interpreter how the programmer intends to use the data. Data types in Java programming language There are two different sets of data types in Java Primitive DatatypesNon Primitive Datatypes The below image depicts different data types in java Java…… Continue reading Java Datatypes
Difference between JDK, JRE, and JVM
In this post, we will see the major differences between JDK, JRE, and JVM. JDK (Java Development Kit): JDK is the one you need to build applications in Java, it contains everything that is required to build and run Java applications. When you download java from the oracle site to develop applications you actually download…… Continue reading Difference between JDK, JRE, and JVM
Google Firebase Tutorial Beginners.
In this tutorial will see how to connect to Firebase Firestore Database and persist data using rest web services. For this will start from the rest web service that we built using spring boot in the previous blog post Build Restful web service using Spring boot and Java. If you are a video guy here…… Continue reading Google Firebase Tutorial Beginners.
Build A RESTful Web Service Using Java And Spring Boot
In this following tutorial, we will build a simple REST web service using java with spring boot. What is a Web Service?Web Service is a standard or common way of communication between a client and a server. The above diagram shows the pictorial representation of a web service call, the clients a computer, or a…… Continue reading Build A RESTful Web Service Using Java And Spring Boot
CSS Linear Gradient Function
Linear Gradient function is introduced in CSS3 which helps to transform from one color to another seamlessly which would have been a herculean task to achieve, with linear-gradient() function you can achieve something like this. Linear Gradient function takes multiple parameters, you can give the rotation of the colors as deg, percent %, or direction,…… Continue reading CSS Linear Gradient Function