Distributed Hash Table (DHT)

Blog  A DHT gives you a dictionary-like interface, but the nodes are distributed across the network. The trick with DHTs is that the node that gets to store a particular key is found by hashing that key, so in effect your hash-table buckets are now independent nodes in a network. This gives a lot of… Continue reading Distributed Hash Table (DHT)

Zookeeper vs Redis

Also Read: How to do distributed locking. Link , Link SO By default, Zookeeper replicates all your data to every node and lets clients watch the data for changes. Changes are sent very quickly (within a bounded amount of time) to clients. You can also create "ephemeral nodes", which are deleted within a specified time if a… Continue reading Zookeeper vs Redis

SOA, Microservices & RESTFul

In short, the microservice architectural style is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API. These services are built around business capabilities and independently deployable by fully automated deployment machinery. There is a bare… Continue reading SOA, Microservices & RESTFul

Design a highly consistent and is network partition tolerant DB

Link to original IntervieBit article Q: What is the amount of data that we need to store?  Anwer: Let's assume a few 100 TB. Q: Do we need to support updates?  A: Yes. Q: Can the size of the value for a key increase with updates?  A: Yes. In other words, its possible a sequence of keys could co-exist on one server previously,… Continue reading Design a highly consistent and is network partition tolerant DB

CTCI: Given an input file with four billion integers, provide an algorithm to generate an integer which is not contained in the file.

Given an input file with four billion integers, provide an algorithm to generate an integer which is not contained in the file. Assume you have 1 GB of memory FOLLOW UP What if you have only 10 MB of memory? Solution There are a total of 2^32, or 4 billion, distinct integers possible. We have… Continue reading CTCI: Given an input file with four billion integers, provide an algorithm to generate an integer which is not contained in the file.