Getting started with Kafka and Node.js - Setup with example

Let's build a pub/sub program using Kafka and Node.js, Kafka is a enterprise level tool for sending messages across the Microservices. Kafka is generally used for two broad classes of applications: Building real-time streaming data pipelines that reliably get data between systems or applicationsBuilding real-time streaming applications that…

AWS appsync example for Subscription using Node.js

Welcome folks, AWS AppSync is a service that allows developers to easily build apps with real-time and offline capabilities. Read the Basics and setup from /aws-appsync-setup-using-nodejs Schema: input CreatePostInput { author: String! id: String! url: String content: String title: String } input DeletePostInput { author: String! id: String! } type Mutation { createPost(input: CreatePostInput!…

AWS appsync example for mutation using Node.js

Welcome folks, AWS AppSync is a service that allows developers to easily build apps with real-time and offline capabilities. Read the Basics and setup from /aws-appsync-setup-using-nodejs Schema: input CreatePostInput { author: String! id: String! url: String content: String title: String } input DeletePostInput { author: String! id: String! } type Mutation { createPost(input: CreatePostInput!…

The magic inside javascript for-loops

Welcome JsDev's, Working with for loops are always complicated, mostly for-loops inside async blocks. so here are some examples where i felt OMG, what is happening, Example 1: for(var i=0; i<3; i++) { setTimeout(()=>console.log(i)); } Output: 3 3 3 How? Lexical scoping and closures:…

Getting started with RabbitMQ and Node.js with example

Read about microservices/ event-driven architecture first. [link to the read article] So let's make a pub/sub program using RabbitMQ and Node.js Before we started lets setup the project folder, Install RabbitMQ using https://www.rabbitmq.com/download.html Make a folder with name rbmq install amqplib using <…