Composition vs Aggregation

Kitchen in House is Composition and Engine in Car is Aggregation Composition: If internal attributes can not exist without Outer Class, that goes to Composition. You can not take Bedroom, Kitchen or Balcony out of any Flat or House. i.e public class CompositionExample{   public static void main(String[] args) { House house = new House(); … More Composition vs Aggregation

Dynamic Programming

Remember your past. Yes this is all about Dynamic Programming. Jonathan Paulson explains Dynamic Programming in his amazing Quora answer here.Writes down “1+1+1+1+1+1+1+1 =” on a sheet of paper. “What’s that equal to?”Counting “Eight!”Writes down another “1+” on the left. “What about that?””Nine!” ” How’d you know it was nine so fast?””You just added one more!” “So you didn’t need … More Dynamic Programming

Hello Liquibase

You will never check-in your code without any version control tool. Be it GIT or SVN or anything. Then why would you make changes in your database without and versioning strategy. Would you? Liquibase is one of the database changes version control tool. It is an open source library for tracking, managing and applying database … More Hello Liquibase

Spring Boot Actuator

Actuators are nothing but Spring Boot provided production-ready features to our application. Spring Boot includes a number of additional features to help you monitor and manage your application when you push it to production. You can choose to manage and monitor your application by using HTTP endpoints. Monitoring of application, gathering metrics, understanding traffic becomes … More Spring Boot Actuator

RabbitMQ or Apache Kafka?

Apache Kafka and RabbitMQ are two popular open-source and commercially-supported pub/sub systems that have been around for almost a decade and have seen wide adoption. Given the popularity of these two systems and the fact that both are branded as pub/sub systems, two frequently asked questions in the relevant online forums are: how do they … More RabbitMQ or Apache Kafka?

Lambdas vs Anonymous Classes

So far in java we have seen interfaces and abstract classes, with a single abstract method, being used as function types. Their instances, known as function objects, represent functions or actions. Since JDK 1.1, the primary means of creating a function object was the anonymous class. Below is a code snippet to sort a list of strings in order … More Lambdas vs Anonymous Classes