Skip to main content

Node.js program that publish and subscribe to messages using Apache Kafka

 

This program creates a Kafka producer and a Kafka consumer and subscribes the consumer to a topic. The producer then publishes a message on the topic, and the consumer receives and prints the message. The program also handles disconnections and reconnections to Kafka.

Comments

Popular posts from this blog

Building a Clockify Agent MCP Tool with Claude AI

  🚀 From Problem to Solution: Building a Clockify MCP Tool with AI The Problem That Started It All 🤔 As someone who tracks time for multiple projects, I was constantly switching between Claude (for work assistance) and Clockify (for time tracking). The manual back-and-forth was eating into my productivity. I thought: "What if Claude could directly manage my time entries?" What is MCP? (Model Context Protocol) 🔌 Think of MCP as a "universal translator" that lets AI assistants like Claude connect to your favorite tools. Instead of copy-pasting data between apps, Claude can now directly: Fill out your timesheets Create projects Generate reports Start/stop timers It's like giving your AI assistant hands to work with your tools! The Journey: Coding WITH Claude 💻 Here's where it gets interesting - I used Claude itself to build this integration! Using "vibe coding" (collaborative coding with AI), I: Researched together : Claude helped analyze Clockify...

5 tips : How to search in Google effectively ?

 MASTER GOOGLE SEARCH Google is a fully automated search engine that uses software known as "web crawlers" that explore the web on a regular basis to find sites to add to our index. To master Google search and to find the right answer you need to ask the right question. Here are the 5 tips to write an effective search query in Google 1) Use the keyword " related: " to find a similar website to a website that you like. 2) Use the keyword "site:" if you want to search for something inside a website. 3) Use the keyword " - " (hyphen) to search by excluding a word. 4) Use the keyword " * " to replace a word you have forgotten or missed 5) Use the keyword "" to search and to find the exact phrase. Happy Searching :)
        Automated script - Upload front end artifacts to nexus Hello Pal Scenario : A FE developer working in an Angular project. He is building angular using angular build command and zip the output and upload to nexus and deploy using Jenkins or any tools. I created some file which help a developer to do all this until upload to nexus with a single command. This command programmatically upload angular atifacts to nexus using node Repo : https://github.com/ratheeshspiral09/angularbuidtonexus Steps to do that 1. Install dev dependencies   "web-nexus-deployer": "^1.0.2",   "archiver": "^5.3.0"    2. Make sure the version key in package.json matches your release    verison eg: "version": "5.7.0" 3. Set NEXUS_USERNAME and NEXUS_PASSWORD as env variables in the    terminal like below or add it in .bashrc file. `export NEXUS_USERNAME=username  export NEXUS_PASSWORD=password`   4.Run npm run deploy-to-nexus in termi...