Hypermedia Driven Rest APIs – HATEOAS

What is HATEOAS ? (Hate-OAS, Hateous or any other pronunciation) Hypermedia as the Engine of Application State It basically means that your application state should be Hypermedia driven. Hypermedia ?  - Basically hyperlinks to other resources. Which also means that, once a client access a resource, it can use the hypermedia to navigate your resources. … Continue reading Hypermedia Driven Rest APIs – HATEOAS

Change Elastic Search Mapping

Remapping elastic search index For every change in the mapping or settings of the elastic search index, we have to create a new index as there is no way to edit an existing index. So here are the basic requests that you have to fire to achieve it, but first thing first, lets create an … Continue reading Change Elastic Search Mapping

Optimistic Boolean Functions

Every developer encounters situations on a day to day basis where he has to write a code that flows based on some condition, and every condition eventually resolves to a Boolean. When conditions become complex enough to be part of flow control constructs like ifs..whiles..whens we tend to extract them into a method with meaningful … Continue reading Optimistic Boolean Functions

Test Driven Bug Fixing – Guidelines

XTreme programming advocates that developers should do things in a certain way, to be able to function smoothly and eventually have a shorter time to market. It is opinionated and strict about developer practices. One of those practices is doing Test Driven Development.

Circuit Breakers : Break, before it breaks you!

In general it is a very simple pattern. You just wrap your function/method/behaviour with another function which keeps track of the failures/success of the that function (service/DB calls) and opens or closes the circuit for you. Sounds simple enough. It is simple.