Database

Building a URL Shortener with Node.Js and Redis

A URL shortener is a pretty popular application on the Web. URL shortener saves spaces so that one can send it in emails, tweet it on Twitter while still redirecting to the original URL. For example, consider this URL: https://www.amazon.in/Apple-iPhone-XR-64GB-White/dp/B07JGXM9WN/ If we generate the short URL of this, it will be: sleepy-dawn-98666.herokuapp.com/bvVDmIUq It’s simple, compact …

Building a URL Shortener with Node.Js and Redis Read More »

Migrating WordPress Content to MongoDB

WordPress uses MySQL as a primary database to store its content that includes posts, categories, tags, users, media and other meta details. WordPress also has a pretty awesome import/export feature that generates a generic XML file containing the content information. This article is a part of Codeforgeek redesign series. When we chose to decouple WordPress …

Migrating WordPress Content to MongoDB Read More »

MongoDB and ElasticSearch Synchronization

MongoDB and ElasticSearch is an amazing pair to develop a NoSQL application with a powerful search. To develop a polyglot database application, we need to perform the data synchronization. In this article, we will learn how to synchronize the data from MongoDB to ElasticSearch on an on-going basis. Polyglot persistence is the concept of using …

MongoDB and ElasticSearch Synchronization Read More »

MongoDB Basics Tutorial

MongoDB is an open-source and leading NoSQL database. In this tutorial, we will learn MongoDB basic commands. Introduction MongoDB is very popular NoSQL database. MongoDB stores information in a JSON format but not limited to JSON, you can also store other data formats. Terminologies Here is the common MongoDB terminolgies. Database – Stores collections Collections …

MongoDB Basics Tutorial Read More »

Session Management in Nodejs Using Redis as Session Store

We have covered session management in ExpressJs using a global variable technique which of course will not work in the case of shared server or concurrent execution of HTTP requests which is the most familiar production scenario. Codeforgeek readers requested to provide a solution for this issue and the optimal one is to use external …

Session Management in Nodejs Using Redis as Session Store Read More »