Getting started with Kafka

Kafka is a fast, scalable, durable, and fault-tolerant publish-subscribe messaging system. Kafka Fundamentals: Topic is a stream of records Records have a key , value and timestamp. Producer API to produce a stream of records.  Consumer API to consume a stream of records. Topic is like a feedname /shopping-cart. /user-signup which producers write to and […]

Starting with React

React is a JavaScript library for building user interfaces. React has a few different kinds of components, that are part of React.Component subclasses. Install npm and then run following commands on terminal to start with react. npm install -g create-react-app create-react-app my-app cd my-app npm start It will take you to browser on URL localhost:3000. First call is in […]

Web Frameworks

“Web frameworks” are the de facto way to build web-enabled applications. So basically how the web “works”.  A web browser initiates a request to webserver and then webserver sends the content in response. HTTP Browsers download websites from web servers (or “application servers”) using the HTTP protocol (a protocol, in the realm of programming, is […]

Elastic Search Terminology

Elastic Search terminology : Cluster Node Shards Replicas Index Type Documnent Field Cluster A cluster is a collection of one or more nodes (servers) that together holds your entire data and provides federated indexing and search capabilities across all nodes. Node A node is a single server that is part of your cluster, stores your […]

Async.each in Node.JS

As NodeJS works with single thread, so most of processing is in async mode. But sometimes we face situation where we need to iterate through items in sync manner. For example. ForEach in JS works in async . So using npm module async we can handle things and make code to wait until we have […]

RESTful API and Web Service

What is REST API : A REST API defines a set of functions which developers can perform requests and receive responses via HTTP protocol such as GET and POST. An API can be considered “RESTful” if it has the following features (not a complete list just the main ones): Client–server – The client handles the […]