Home » Author Archives: Biju Kunjummen (page 3)

Author Archives: Biju Kunjummen

Spring Cloud support for Hystrix

spring-interview-questions-answers

Spring Cloud project provides comprehensive support for Netflix OSS Hystrix library. I have previously written about how to use the raw Hystrix library to wrap remote calls. Here I will be going over how Hystrix can be used with Spring Cloud Basics There is actually nothing much to it, the concepts just carry over with certain Spring boot specific enhancements. ...

Read More »

Gentle Introduction to Hystrix – Wrapup

java-interview-questions-answers

This is a follow up to two other posts – Motivation for why something like Hystrix is needed in a distributed systems and a basic intro to Hystrix. This will be a wrap of my Hystrix journey with details of various properties that can be tweaked to change the behavior of Hystrix and will touch on a few advanced concepts ...

Read More »

Gentle Introduction to Hystrix – Hello World

java-interview-questions-answers

In a previous blog post I had covered the motivation for needing a library like Netflix Hystrix. Here I will jump into some of the very basic ways to start using Hystrix and follow it up with more complex use cases. Hello World A simple Hello World example of a “Hystrix Command” is the following: import com.netflix.hystrix.HystrixCommand; import com.netflix.hystrix.HystrixCommandGroupKey; import ...

Read More »

Scala extractors infix sample with Rational numbers

scala-logo

I keep coming back to the awesome introductory material on Scala put together by Daniel Westheide. One of the examples that he provides for extractors using an infix operation pattern is the Streams API – val xs = 58 #:: 43 #:: 93 #:: Stream.empty xs match {   case first #:: second #:: _ => first - second   ...

Read More »

Gentle Introduction to Hystrix

java-interview-questions-answers

In the last few days I have been exploring the Netflix Hystrix library and have come to appreciate the features provided by this excellent library. To quote from the Hystrix site: Hystrix is a latency and fault tolerance library designed to isolate points of access to remote systems, services and 3rd party libraries, stop cascading failure and enable resilience in ...

Read More »

Spring Cloud Sidecar – Initialization of Nodes

spring-interview-questions-answers

In the last blog post I had described how the Sidecar application can be used for registering the Cassandra nodes with Eureka and more generally can be used for registering any non-JVM application with Eureka. In this post I will cover how an application can go about querying the Sidecar registered nodes. Discovering Registered Nodes – Post Initialization If the ...

Read More »

Spring Cloud Sidecar

spring-interview-questions-answers

I have an application deployed to a NetflixOSS based cloud which has a structure along these lines: Essentially a service which persists information to a Cassandra cluster. All the applications are registered to Eureka – so in this instance the service as well as the Cassandra nodes are registered with Eureka, further the service connects to the Cassandra cluster by ...

Read More »

Rest client calls with Spring Cloud

spring-interview-questions-answers

There are a few interesting ways to make REST client calls with the Spring-Cloud project. Spring-Cloud rest support builds on top of the core Netflix OSS libraries, but abstracts them and in the process simplifies using the libraries. RestTemplate As a first step let us consider the traditional way to make Rest calls through Spring based applications, using RestTemplate: public ...

Read More »

Couchbase Java SDK with Rx-Java

couchbase-logo

A neat thing about CouchbaseJava SDK  is that it is built on top of the excellent Rx-Java library, this enables a reactive way to interact with a Couchbase server instance which is very intuitive once you get the hang of it. Consider a very simple json document that I intend to store in Couchbase: {"key":"1","value":"one"} and a Java class to hold ...

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