Building a Scalable Real-Time Driver Tracking SystemBuilding a Real-Time Delivery Tracking System Using Socket, Redis, Redis streams adapter, Kafka I recently worked on an exciting project for a client—a delivery app similar to Zomato, where users can track their driver's location live on a map. The ...May 16, 2025·9 min read
Production Level Context with Next.js (Typescript) 🔥Connect 👋 Xam LinkedIn Setup First, let's create a file for defining the context (let's call it app-context.ts): import React from "react"; export interface ContextState { name: string; } export interface ContextDispatch { setName: React.D...Jun 21, 2024·2 min read
Building a Chat with PDF - RAG Application - NextJS and NestJSConnect 👋 Xam LinkedIn Repo 📚 DEMO Approach Introduction Ever wanted to chat with the content of a PDF, just like you do with ChatGPT? In this blog, I'll show you how I built a system that lets you do exactly that. We'll cover everything from ...Jun 2, 2024·5 min read
Scaling Real-Time Communication with Redis Pub/Sub and Socket.IOProblem Statement: In a scenario where multiple clients (users) need to communicate in real-time, a traditional approach of having a single server would not scale well. As the number of clients increases, the single server would become a bottleneck, ...May 8, 2024·12 min read
Open/Closed PrincipleLinks REPO Linkedin Github Info : Single-responsibility principle - WikipediaInfo : Open–closed principle - Wikipedia software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification";[1] that is, such a...Apr 28, 2024·2 min read
Single Responsibility PrincipleLinks REPO Linkedin Github Info : Single-responsibility principle - Wikipedia The Single Responsibility Principle (SRP) is one of the SOLID principles of object-oriented programming. It states that a class should have only one reason to change. In ot...Apr 27, 2024·3 min read
NestJS GraphQL: Code First ApproachIn the previous article, we learned about the Schema First Approach for setting up GraphQL with NestJS. Now, we will explore the Code First Approach. In the Code First Approach, we define our GraphQL types and resolvers directly in TypeScript code in...Mar 27, 2024·4 min read