Page 4
Stack in Java
A stack is a data structure with LIFO (Last In, First Out), meaning the element that joins last is retrieved first. In Java, Stack is a generic class that implements this stack data structure. In this tutorial, we’ll learn more about Stacks in Java! The… Read More
Java Stack Tutorial | Push(), Pop(), and Peek() Explained with Examples
Feign for Beginners: Build Java REST API Clients with Interface-Based Mapping
Partitioning with RabbitMQ using Spring Cloud Stream
Partitioning in message queues is a mechanism that divides topics or queues into multiple partitions. Each partition stores a portion of the data, and this data is processed in parallel. This makes receiving and processing messages faster and more efficient! Apache Kafka supports partitioning natively,… Read More
Unit testing with Spring Cloud Stream
Spring Cloud Stream provides the spring-cloud-stream-test-binder dependency, allowing us to easily write unit tests for applications using Spring Cloud Stream without having to call actual message brokers. You can declare and use this spring-cloud-stream-test-binder dependency as follows:
|
1 2 3 4 5 |
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-stream-test-binder</artifactId> <scope>test</scope> </dependency> |
I’ll use the example project from the… Read More
Spring Cloud Stream Unit Testing with Test Binder | InputDestination & OutputDestination Tutorial
Consumer routing with Spring Cloud Stream
Spring Cloud Stream supports consumer routing, allowing us to decide which consumer will consume messages sent by a particular producer. We can route messages using message headers, payload content, or header content with expressions. Let’s explore this in detail in this tutorial! First, we’ll create… Read More
RabbitMQ Partitioning with Spring Cloud Stream | Scale Consumers Like a Pro
Send messages using Spring Cloud Stream’s StreamBridge
In the previous tutorial, I introduced you to Spring Cloud Stream with a binding mechanism that easily allows us to send and receive messages to any message broker automatically. If you want to send messages to a message broker manually, you can use Spring Cloud… Read More