java

Basic Hystrix Circuit Breaker Implementation

Circuit Breakers are one of the best tools in our toolbox to use while creating a backend structure with dependent modules. In this post, I will try to set up a basic Hystrix Circuit Breaker example and demonstrate some different configurations.

For demonstrating this concept I’ve created two Spring Boot applications called producer and consumer. The producer returns an integer counter and increases the value after each request but when the counter is between 5 and 20 it will wait for 5000 ms before returning the counter.

Read More »Basic Hystrix Circuit Breaker Implementation

Regular Expressions In Java

Regular Expressions are a key element in programming. There are times that you can save a lot of time with a simple Regex. As a lot of my teachers said while I was studying, it is an important thing that you should be familiar with. Regular Expressions are designed to help you define a pattern to search for in a String. You can use it to check whether a parameter is valid or to find a specific pattern of text in a large file. In Java, you’ll be using java.util.regex package to implement Regex logics to your project.

Read More »Regular Expressions In Java