Photo by Michael Dziedzic on Unsplash

Good day readers! We often tend to create POJOs for many use cases in our applications. Some of these use cases are always like create once and utilize continuously based on our business logic. For example, REST request body/parameters, MQ message objects, response of some REST API call and some cases. If we strictly follow OOPs, then we might definitely make all the attributes in our POJO final. But there is a challenge in doing that.

The challenge:
Generally, the object mapper class of our choice is being utilized by Spring to convert the application/json message/request/response to our defined POJO. If…


Spring Retry — Overview:

Spring Retry provides an ability to automatically re-invoke a failed operation. This is helpful to overcome transient errors (like a network glitch or a momentary issue with external system). It provides customizable, declarative control of the retry process and policy based behavior which is easy to extend. This works with the help of Spring’s AOP.

Implementation:

Implementation is pretty straight forward and it won’t require a lot of effort. Follow the steps for understanding.

  1. Add the following dependencies in your pom.xml/build.gradle file.

Maven (pom.xml):

<dependency>
<groupId>org.springframework.retry</groupId>
<artifactId>spring-retry</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
<version>2.3.1.RELEASE</version>
</dependency>

Gradle (build.gradle):

compile…


Photo by Maxim Melnikov on Unsplash

Alright! We all have developed applications with scheduler methods mainly for handling some background tasks that have nothing to do with user/other services interaction. In this article, we will be looking at the problem that kicks in when you start to horizontally scale your application with schedulers. Horizontal scaling is also otherwise known as X-Axis Scaling. This is to ensure the high availability of our application in case a node goes down for some unknown reasons.


Singleton pattern is a creation design pattern. Are you amused by the word “Creational” here? If you wanna understand what it is, then spend some 3 minutes here to understand it.

I followed one of the courses from Coursera to understand this and I’m leaving the course details below in reference section for you.

As mentioned before, Singleton is a creational pattern, which describes a way to create an object. It it powerful technique, but also one of the simplest examples of a design pattern.

Singleton pattern advises to use one object per class and re-use the same wherever required…


Factory method pattern is a creational design pattern. Are you amused by the word “Creational” here? If you wanna understand what it is, then spend some 3 minutes here to understand it.

I followed one of the courses from Coursera to understand this and I’m leaving the course details below in reference section for you.

To understand factory method pattern, you must first understand what a factory object is!

Factory Object — A factory object is similar to real world factory but instead of real world items, this one creates software objects. Let us consider a car manufacturing company which…


If you’re an SDE and if you’re primarily working on an object oriented programming language then you would’ve definitely come across the term Design Patterns. You might even know some of these patterns without you even noticing that you‘ve used it in your code. It is always a better choice to know the depths of these patterns and how it helps world wide developers to write scalable/extensible code. This article is just a basic introduction on what it is and how it is categorized.

What it is?

TL;DR — A collection of practical proven solutions to recurring design problems.
So, as I mentioned above…


As we all know that Python usage has increased lately and it has reached a point in time where we use Python scripting to fulfill every small automation need. Python is very simple language to learn and anyone can start scripting in it within a day of learning. I personally would not recommend Python as a primary programming language to start with for any of the starters out there, but if your requirement is to finish something so quick, then you can go ahead and implement using Python.

So when we write these Python scripts there are ways to improve…

Udayabharathi Thiagarajan

Sr Software Engineer at Tata Communications Limited https://www.linkedin.com/in/udayabharathi-t/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store