Introduction to WebSocket with Spring Boot

Let’s take a look at how to add WebSocket support to a spring boot application. We will try to create a simple chat application. Note that this implementation does not use STOMP. What is WebSocket? The WebSocket protocol helps in establishing a full-duplex two-way communication between client and server over a single TCP connection. This…

Drools Rule Engine

Overview Drools Rule Engine is a Business Rules Management System (BRMS) solution. Some people also consider drool as a Business Logic integration Platform (BLiP). It provides the following features. Core Business Rules Engine (BRE), Drools Workbench (A rule authoring web application) Support for Decision Model and Notation (DMN)  Eclipse IDE plugin for core development. Drools has…

Troubleshoot Auto-Configurations in Spring Boot Applications

In this post, we will take a look at how to troubleshoot auto-configurations in Spring Boot applications. What are Auto-Configurations? Spring boot autoconfiguration is where the magic happens. The auto-configuration tries to automatically configure your application based on what’s in the classpath. For example, the h2 database jar in classpath will result in spring boot…

What is spring boot? – Introduction

Spring Boot is an opinionated view of the spring ecosystem and third-party libraries. It helps you to create stand-alone, production-grade Spring-based Applications that you can just run. Spring Boot lets you create Java applications that can run by using java -jar or traditional war deployments. It also provides a command-line tool that runs “spring scripts” with minimum…

Spring Boot Annotations | Beginners guide

Let’s take a look at a list of important spring boot annotations and when to use them with an example. What are annotations? Annotations are a form of hints that a developer can give about their program to the compiler and runtime. Based on these hints, the compilers and runtimes can process these programs differently….

Facade Design Pattern

The facade design pattern is a structural design pattern used commonly in object oriented languages like Java. A facade is an object that serves as a front-facing interface masking more complex underlying or structural code. the facade design pattern can: improve the readability and usability by masking interaction with more complex components behind a simplified API. provide a context-specific…

Decorator Design Pattern

Decorator Design pattern allows us to add behaviour to an object without affecting the other objects of the same class. When to use the decorator pattern If you want an object to gain (or lose) functionality at runtime, then you should use the decorator pattern. This approach lets us add features to a class without…

Composite Design Pattern

The composite design pattern is a partitioning design pattern. It lets you treat a group of objects the same way you would treat a single object of that kind. In this post, we will try to explore this with an example in Java. For example, A large arithmetic expression is a composite of smaller expressions….

Bridge Design Pattern

The Bridge design pattern is a structural pattern that deals with decoupling abstraction and its implementation. It lets you split a set of related classes into two separate abstraction and implementation hierarchies. As these are now separated, you can develop them independently of each other. Let’s understand this design pattern with an example in Java….

Adapter Design Pattern

Let’s learn about Adapter Design Pattern with an example in Java. What is Adapter Design Pattern? the adapter pattern bridges the gap between two incompatible classes or interface. It is one of the structural design patterns described in the Book of Gang of Four. For example, take a look at the analogy of android and…