Home » Author Archives: Biju Kunjummen

Author Archives: Biju Kunjummen

Using Kafka with Junit

junit-logo

One of the neat features that the excellent Spring Kafka project provides, apart from a easier to use abstraction over raw Kafka Producer and Consumer, is a way to use Kafka in tests. It does this by providing an embedded version of Kafka that can be set-up and torn down very easily. All that a project needs to include this support is ...

Read More »

Recipe for getting started with Spring Boot and Angular 2

angularjs-logo

I am primarily a service developer who has to create some passable UI’s once in a while. I was adept at basic AngularJS1 based UI’s and could get stuff done by using an approach that I have outlined before. With the advent of Angular 2 I had to unfortunately throw my previous approach out of the window and now have an approach ...

Read More »

Spring Kafka Producer/Consumer sample

spring-interview-questions-answers

My objective here is to show how Spring Kafka provides an abstraction to raw Kafka Producer and Consumer API’s that is easy to use and is familiar to someone with a Spring background. Sample scenario The sample scenario is a simple one, I have a system which produces a message and another which processes it         Implementation using ...

Read More »

RabbitMQ retries using Spring Integration

rabbitmq-logo

I recently read about an approach to retry with RabbitMQ here and wanted to try a similar approach with Spring Integration, which provides an awesome set of integration abstractions. TL;DR the problem being solved is to retry a message(in case of failures in processing) a few times with a large delay between retries(say 10 mins +). The approach makes use of ...

Read More »

Integrating with RabbitMQ using Spring Cloud Stream

spring-interview-questions-answers

In my previous post I wrote about a very simple integration scenario between two systems – one generating a work unit and another processing that work unit and how Spring Integration makes such integration very easy. Here I will demonstrate how this integration scenario can be simplified even further using Spring Cloud Stream I have the sample code available here – the right maven ...

Read More »

No downtime deployment using “Yet another” Cloud Foundry Gradle plugin

gradle-logo

I have been trying my hand at writing a gradle plugin for deploying applications to Cloud Foundry and wrote about this plugin in my previous post. I have now enhanced this plugin with support for no-downtime deploys into Cloud Foundry using two approaches – an Autopilot style deployment and a more commonly used Blue-Green style deployment. To jump into the meat of the plugin, once ...

Read More »

Introducing “Yet another” Cloud foundry Gradle plugin

gradle-logo

In the process of working on an automated Jenkins pipeline for deploying a Cloud Foundry application with two of my colleagues(Thanks Mark Alston, Dave Malone !) I decided to try my hand on writing a Gradle plugin to perform some of the tasks that are typically done using a command line Cloud Foundry Client. Introducing the totally unimaginatively named “ya-cf-app-gradle-plugin” with a set of gradle ...

Read More »

Spring Cloud Zuul – Writing a Filter

spring-interview-questions-answers

Netflix OSS project Zuul serves as a gateway to backend services and provides support for adding in edge features like security, routing. In the Zuul world specific edge features are provided by components called the Zuul Filter and writing such a filter for a Spring Cloud based project is very simple. A good reference to adding a filter is here. Here I ...

Read More »

Spring Cloud Zuul Support – Configuring Timeouts

spring-interview-questions-answers

Spring Cloud provides support for Netflix Zuul – a toolkit for creating edge services with routing and filtering capabilities. Zuul Proxy support is very comprehensively documented at the Spring Cloud site. My objective here is to focus on a small set of attributes relating to handling timeouts when dealing with the proxied services. Target Service and Gateway To study timeouts better I have ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns