Singleton Design pattern is widely used in different Java frameworks and libraries. Nonetheless, not many of us really know how to implement one. In this post, I will share with you different techniques of creating Java Singleton.
Continue reading “Singleton Design Pattern(Java implementation)”
Hello there!! Recently Google introduced open sourced plugin called Jib. A plugin helps easily build and push Java Docker images to a repo. It does not require you to write a Dockerfile or have docker installed. Plugin available for Maven and Gradle.
Continue reading “Google Jib”
Deleting Kafka topic can be a painful task, as of now the only way to do it, is to ssh into one of the Kafka brokers and execute CLI command. Like this:
Continue reading “Draining Apache Kafka topic”
Hi there! Recently Spring Cloud Stream 2.0 introduced a new feature – polled consumers(PollableMessageSource), where the application can control the reading rate from a source (Kafka, RabbitMQ), basically you can pause your stream. It is especially helpful in the case of Kafka. Before the new feature, you will just read continuously payload from the topic as much as it has, non-stop. What if you need to pause your stream? Say we are getting messages from Kafka topic and then we are sending data to some external service and at some point, external service becomes unavailable.
For this use case, I created an application, that deals with such an issue.
Continue reading “Spring Cloud Stream + Apache Kafka(PollableMessageSource)”
Purpose of this post is to give a reader a quick info about different components of Spring Cloud Microservices and how they work together.
Continue reading “Spring Cloud Microservices(Quick guide)”