## Consistent Hashing and Distributed Caches

February 26, 2021Consistent hashing is a special type of hashing such that hash table is resized. To understand the problem consistent hashing solves lets…

Written by **Ganesh Iyer** A software engineer building tools for AI in healthcare. Follow me on twitter

## Consistent Hashing and Distributed Caches

February 26, 2021Consistent hashing is a special type of hashing such that hash table is resized. To understand the problem consistent hashing solves lets…

## BinarySearch.io Longest Sublist with K Distinct Numbers

February 24, 2021Problem: Given an integer k and a list of integers nums, return the length of the longest sublist that contains at most k distinct integers…

## BinarySearch.io Direct Closure

January 14, 2021Problem Statement Given a two-dimensional list of integers graph representing an undirected graph as an adjacency list, return a two…

## Binarysearch.io Collecting Coins Solution

January 03, 2021Solving binarysearch.io's collecting coin problem by formulating the recursive solution and then memoizing it and also implementing the top down dynamic programming solution.

## Leetcode 1028 Recover a Tree From Preorder Traversal

January 02, 2021We run a preorder depth-first search (DFS) on the root of a binary tree. At each node in this traversal, we output D dashes (where D is the depth of this node), then we output the value of this node.

## Editorial for Binarysearch.io New Friends Solution

January 01, 2021You are given n people represented as an integer from `0` to `n - 1`, and a list of friends tuples, where person `friends[i][0]` and person `friends[i][1]` are friends.

## Binary Search Template for Coding Interviews

October 20, 2020Binary search is something we all learn in CS101 classes. It is a very simple concept however implementing it in 15-20 minutes in a high…

## Moving from Wordpress to Gatsby

October 17, 2020After 10+ years of relying on wordpress I'm finally moving to a JAM stack approach using Gatsby

## Pythonic Dependency Injection with Google's Pinject

September 30, 2020Dependency Injection(DI) is a set of software design principles that enable engineers to develop loosely coupled code.

## Container Patterns for Microservices with Nomad

August 31, 2020Brendan Burns in his paper "Design Patterns for Container-Based Distributed Systems" lays out 3 single node patterns that are used in micro-services architecture. There is some documentation available with examples for implementing these patterns with Kubernetes. However, I couldn’t find a lot of examples with HashiCorp’s Nomad. My goal is to work through them with examples using Nomad as our job schedular.

## Circuit breaker in microservices

June 12, 2020The circuit breaker is a design pattern, used extensively in distributed systems to prevent cascading failures. In this post, we’ll go through the problem of cascading failures and go over how the circuit breaker pattern is used to prevent it.