Home » Archives for Anirudh Bhatnagar

Author Archives: Anirudh Bhatnagar

Anirudh is a Java programmer with extensive experience in building Java/J2EE applications. He has always been fascinated by the new technologies and emerging trends in software development. He has been involved in propagating these changes and new technologies in his projects. He is an avid blogger and agile enthusiast who believes in writing clean and well tested code.

Spring Boot Microservices , Docker and Kubernetes workshop – part3

In the previous posts we build few micro services (Order Service, Product Service, Customer Service) for an order management system using Docker and Spring Boot. We used Netflix libraries to manage, discover and load balance the micro services. Managing these micro services and their multiple containers could get a bit tricky; especially in terms of Scalability, Observability, Security, Monitoring and ...

Read More »

Spring Boot Microservices , Docker and Kubernetes workshop – part2

In the previous post we created our first micro service “ProductService” using SpringBoot and Docker. In this part we will go into details of how to manage multiple microservices using Spring Cloud, netflix libraries, API gateways . For our order management system, let’s say,  a minimal relationship could be something like this : So, let’s build 2 more services called “orderService” ...

Read More »

Achieving Order Guarnetee in Kafka with Partitioning

java-interview-questions-answers

One of the most important features of Kafka is to do load balancing of messages and guarantee ordering in a distributed cluster, which otherwise would not be possible in a traditional queue. Lets first try and understand the problem statement Let us assume we have a topic where messages are sent and there is a consumer who is consuming these ...

Read More »

Deploy Spring Boot Application on Amazon Elastic Beanstalk

spring-interview-questions-answers

In this blog, we are going to see how to deploy a Spring boot application on Amazon ElasticBeanstalk. Amazon ElasticBeanstalk has a preconfigured Java environment, which could be used to deploy a Spring Boot JAR which has the servlet container inside it. For our example, we will use maven as the build tool here. Step 1 : The first step ...

Read More »

Build a new Web Application from scratch using Spring boot, Thymeleaf, AngularJS – Part 3

spring-interview-questions-answers

In the previous blogs we built the landing page using Thymeleaf, Bower and Bootstrap and deployed it to Heroku. In this blog we will introduce some functionality with AngularJS for front end and Spring Boot Webservices at backend. We will begin with Login/Logout section. Lets begin with installing AngularJS in our application using bower. Introducing AngularJS $ bower install angular --save ...

Read More »

Understanding strategy pattern by designing game of chess

Today we will try to understand Strategy Pattern with the help of an example. The example we will consider is The Game of Chess. The intention here is to explain strategy pattern and not to build a comprehensive Chess Game solution. Strategy Pattern : The Strategy pattern is known as a behavioural pattern – it’s used to manage algorithms, relationships ...

Read More »