Spring Boot RabbitMQ RPC Example

Table of Contents Introduction Callback Queue Message Properties Correlation Id Prerequisites Project Setup Application Properties Configuration Server Client Main Class Output – Testing RPC Source Code Introduction In this tutorial, I am going to show you how to create Spring Boot RabbitMQ RPC Example. RPC is an acronym which stands for Remote Procedure Call, in which a function is executed…

How To Mock Super Class Method In Junit

Mock Super Method Here in this method’s mock example I am going to show you how to mock super class method in Junit test class. A class that extends another class is called a child class and a class that is extended by another class is called a super class. So, basically when a child class calls super class method…

Spring Boot RabbitMQ Message Pattern Example

Table of Contents Introduction Topic Exchange Prerequisites Project Setup Application Properties Sender Receiver Configuration Main Class Testing Message Pattern Source Code Introduction In this tutorial I am going to show you how to build Spring Boot RabbitMQ message pattern example with TopicExchange. FanoutExchange is only capable to broadcast messages to all receivers and it has limitations to send messages selectively. The DirectExchange can allow you…

Spring RabbitMQ Routing Example

Table of Contents Introduction Direct Exchange Prerequisites Project Setup Application Properties Configuration Sender Receiver Spring Boot Main Class Testing RabbitMQ Routing Application Source Code Introduction In this Spring RabbitMQ Routing example I am going to show you how to route messages to particular subscribers. Therefore, all receivers are not going to receive all messages, but a subset of messages. A…

Spring Boot RabbitMQ Publish Subscribe Example

Table of Contents Introduction Exchanges Prerequisites Project Setup Sender Receiver Exchange Name Configurations Spring Boot Main Class Testing Rabbitmq Publish Subscribe Source Code Introduction Here I am going to build an example about publish subscribe model using Spring Boot and RabbitMQ message broker. In publish subscribe model the messages will be delivered to multiple consumers. In this example I am…

Spring Boot RabbitMQ Work Queues Example

Table of Contents Introduction Prerequisites Application Properties Producer Consumer Configuration Spring Boot Main Class Testing Work Queues Task Queues Source Code Introduction Here in this example I am going to show you how to build work queues or task queues using Spring Boot framework and RabbitMQ broker. Work queues are used to distribute time-consuming tasks among multiple workers. The idea…

Include Non-Classpath Jars In Gradle Based Java Project

Table of Contents Introduction Prerequisites Include Non-classpath Jars In Gradle Script Introduction Here in this example I am going to tell you how to include non-classpath jars in gradle based Java project. You may need to include non-classpath jar files in order to make your application run. Non-classpath jars are those jar files which are not included in your classpath through dependency or dependencies in build.gradle script. So, these…

CodeIgniter 4 MongoDB CRUD Example

Table of Contents Introduction Prerequisites CRUD Application Using CodeIngiter 4 and MongoBD MongoDB Config MongoDB Library Model Class Controller Class Views List Records Style Create Record Update Record Route Config Testing CodeIgniter 4 MongoDB CRUD Example Source Code Introduction In this example I am going to build CodeIgniter 4 MongoDB CRUD example. CRUD is an acronym and stands for Create,…

How To Create A New Gradle Project In CLI

Table of Contents Introduction Why do you need to create Gradle project in CLI Prerequisites Create Gradle Project in CLI Introduction Here I am going to show you how to create a new Gradle in CLI (command line interface). Command line interface is basically a command prompt in Windows system and Shell terminal in Unix based systems. Like Maven, you…

How To Reduce Image Size Using Python

Table of Contents Introduction Why Need To Reduce Size Other Tools Prerequisites Project Directory Reduce Image Size Testing Image Quality After Reducing Image Size Original Images Scaled Images Optimized Images Source Code Introduction In this tutorial I will show you how to reduce image size using Python program. I am using Pillow package for reducing the size of the image….