Whenever we develop a web application there are basically two performance targets.
What we mean here by task completion is that the task is being done in a timely manner and throughput means requests per second.
While designing and actually coding we have to consider these two targets so that our system has the highest performance and lowest latency.
Let’s have a look into how we can optimize our Node.js application.
let’s see what we can do about speeding up our database queries
Indexes are special data structures that store a small portion of the collection’s…
Modern apps need to reply in less than 200ms end to end at any scale -> less than 100ms should be spent inside the data center
So now you get the point of this whole article. Yes right we would be talking about blazing fast REmote DIctionary Server
So what is Redis?
Redis is an open-source in-memory data structure store which can be used as a database, cache, and message broker.
Redis supports multiple data structures and can perform around 110,000 sets per second and about 81000 gets per second.
Redis can be considered as a mix of MongoDB and…
For those who have no idea what is an application state and component can first go through this article which will give you a basic understanding.
Let's talk about redux then
Redux works around three fundamental principles :
Authentication is one of the most important aspects of application development. It is important for an application developer to know who is the actual user of his application and how he can manage access to his application.
Why would one want to verify an identity in the first place?
We would be focusing on Facebook and Google authentication in…
just-in-time — code gets compiled when it is needed, not before runtime.
When a react app is built it is built using smaller components. These components are created (mounted on the DOM), grow by updating, and then die (unmounted on DOM). This is what we know as a component lifecycle.
For learning basic of React you can refer my post:
Every component in React goes through a lifecycle of events. Let us think of it as the cycle of human life.
Let’s see different methods present in different stages of the lifecycle. …
Let’s first understand what is messaging and why we need it?
When we design an application we break down the large application into separate components. Messaging is the way components of a large application connect to each other, or to user devices and data. Messaging is asynchronous, decoupling applications by separating sending and receiving data.
What is a message queue?
Message queues are typically brokers that facilitate message passing by providing a protocol or interface which other services can access. This interface connects producers which create messages and the consumers which then process them.
Message queue gives a greater insight…
The first question and the most important question is why ? Reactjs
Because it is efficient, declarative and flexible.