Pranav Shridhar

610 posts

Pranav Shridhar

Pranav Shridhar

@pranavmodx

Software Engineer | Backend, AI | Go, Node.js, Python

Cochin, India Katılım Ocak 2015
1.2K Takip Edilen326 Takipçiler
Pranav Shridhar
Pranav Shridhar@pranavmodx·
🚀 𝗗𝗮𝘁𝗮 𝗖𝗼𝗻𝘀𝗶𝘀𝘁𝗲𝗻𝗰𝘆. 𝗦𝗶𝗺𝗽𝗹𝗶𝗳𝗶𝗲𝗱. 🛠️ Distributed systems can suffer from "𝘀𝗶𝗹𝗲𝗻𝘁" 𝗱𝗮𝘁𝗮 𝗹𝗼𝘀𝘀 when the database and the message broker aren't perfectly in sync. If your business logic updates the DB but the event fails to fire (or vice versa), your system is left in an inconsistent state. I just wrapped up a project tackling this head-on by implementing a high-performance 𝗧𝗿𝗮𝗻𝘀𝗮𝗰𝘁𝗶𝗼𝗻𝗮𝗹 𝗢𝘂𝘁𝗯𝗼𝘅 𝗘𝘃𝗲𝗻𝘁 𝗥𝗲𝗹𝗮𝘆 using a dual-dispatch mechanism (𝗣𝗼𝗹𝗹𝗶𝗻𝗴 and 𝗖𝗗𝗖), it seamlessly supports both 𝗔𝗽𝗮𝗰𝗵𝗲 𝗞𝗮𝗳𝗸𝗮 and 𝗥𝗲𝗱𝗶𝘀 𝗦𝘁𝗿𝗲𝗮𝗺𝘀! 🚀 By using the 𝗢𝘂𝘁𝗯𝗼𝘅 𝗣𝗮𝘁𝘁𝗲𝗿𝗻, we ensure that events are captured 𝗮𝘁𝗼𝗺𝗶𝗰𝗮𝗹𝗹𝘆 within the same business transaction. Here is how I implemented two different ways to move that data from the outbox to the stream: 1️⃣ 𝗧𝗵𝗲 𝗥𝗲𝗹𝗮𝘆 𝗦𝗲𝗿𝘃𝗶𝗰𝗲 (𝗚𝗼 𝗣𝗼𝗹𝗹𝗶𝗻𝗴): A custom microservice that polls the outbox table. Simple, highly configurable, and great for legacy support where broker-specific CDC isn't an option. 2️⃣ 𝗧𝗵𝗲 𝗖𝗗𝗖 𝗘𝗻𝗴𝗶𝗻𝗲 (𝗗𝗲𝗯𝗲𝘇𝗶𝘂𝗺): By pairing with 𝗗𝗲𝗯𝗲𝘇𝗶𝘂𝗺, we eliminate polling-to-publish lag and ensure 𝘇𝗲𝗿𝗼-𝗱𝗮𝘁𝗮-𝗹𝗼𝘀𝘀 event streaming by reading directly from the database's 𝗪𝗿𝗶𝘁𝗲-𝗔𝗵𝗲𝗮𝗱 𝗟𝗼𝗴 (𝗪𝗔𝗟). ⚖️ 𝗧𝗛𝗘 𝗧𝗥𝗔𝗗𝗘-𝗢𝗙𝗙: • 𝗥𝗲𝗹𝗮𝘆 𝗣𝗼𝗹𝗹𝗶𝗻𝗴: Lower infrastructure overhead, but introduces polling latency. • 𝗗𝗲𝗯𝗲𝘇𝗶𝘂𝗺 𝗖𝗗𝗖: Near-instantaneous streaming and complex transformations, but requires more infrastructure management. 🔥 𝗧𝗘𝗖𝗛𝗡𝗜𝗖𝗔𝗟 𝗛𝗜𝗚𝗛𝗟𝗜𝗚𝗛𝗧𝗦: ✅ 𝗗𝘂𝗮𝗹-𝗕𝗿𝗼𝗸𝗲𝗿 𝗦𝘂𝗽𝗽𝗼𝗿𝘁: Switch between 𝗞𝗮𝗳𝗸𝗮 (Enterprise scale) and 𝗥𝗲𝗱𝗶𝘀 𝗦𝘁𝗿𝗲𝗮𝗺𝘀 (Low latency) with a single config flag. ✅ 𝗛𝘆𝗯𝗿𝗶𝗱 𝗗𝗶𝘀𝗽𝗮𝘁𝗰𝗵𝗶𝗻𝗴: Choose between a custom 𝗚𝗼 𝗥𝗲𝗹𝗮𝘆 (𝗣𝗼𝗹𝗹𝗶𝗻𝗴) or 𝗗𝗲𝗯𝗲𝘇𝗶𝘂𝗺 (𝗖𝗗𝗖) depending on your consistency needs. ✅ "𝗘𝘅𝗮𝗰𝘁𝗹𝘆-𝗢𝗻𝗰𝗲" 𝗚𝘂𝗮𝗿𝗮𝗻𝘁𝗲𝗲𝘀: I implemented the 𝗜𝗻𝗯𝗼𝘅 𝗣𝗮𝘁𝘁𝗲𝗿𝗻 on the consumer side for absolute deduplication. ✅ 𝗣𝘂𝗿𝗲 𝗖𝗗𝗖 𝗙𝗹𝗼𝘄: Zero-lag streaming directly from 𝗣𝗼𝘀𝘁𝗴𝗿𝗲𝗦𝗤𝗟 𝗪𝗔𝗟 (Write-Ahead Log) to Kafka or Redis. ✅ 𝗣𝗹𝘂𝗴𝗴𝗮𝗯𝗹𝗲 𝗔𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲: Infrastructure-agnostic design—easy to run locally or scale out is a snap. Link to Code: lnkd.in/gWhiDM8T #DistributedSystems #SystemDesign #Microservices #Golang #Kafka #Redis
Pranav Shridhar tweet media
English
0
0
0
14
Joyal A Johney
Joyal A Johney@joyalajohny·
Let's settle this for real Cursor or Claude Code?
Joyal A Johney tweet media
English
3
0
0
85
Pranav Shridhar retweetledi
Google Gemini
Google Gemini@GeminiApp·
Gemini 3.1 Pro is here: A smarter model for your most complex tasks. Building on the Gemini 3 series, 3.1 Pro is a step forward in reasoning. It's designed for tasks where a simple answer isn’t enough, taking advanced reasoning and making it useful for your hardest challenges.🧵
English
582
1.1K
9.1K
5.9M
Orchids
Orchids@orchidsapp·
Introducing Orchids 1.0 - the first AI app builder to build and deploy any app, any stack (web, mobile, chrome extension, slack bot, AI agent, anything). Use your ChatGPT, Claude Code, Github Copilot, Gemini subscription - or any API key to use models at cost. Comment below to get 100k free credits. Everything you need to build with AI in a single tool.
English
2.2K
198
2.2K
351.4K
Pranav Shridhar
Pranav Shridhar@pranavmodx·
Huge thanks to @calcsam and the team at @mastra for shipping me a paper copy of 2 incredible books on Al Agents. I started on the first one, "Principles of Building Al Agents', and can already feel the rare blend of fundamental principles and practical real-world application in it. #AI #AIAgents #Engineering
Pranav Shridhar tweet media
English
0
1
5
423
Pranav Shridhar
Pranav Shridhar@pranavmodx·
"Using too much Al can cause memory loss." - I don't remember where I read this. 😩
English
0
0
0
25
Hitesh Choudhary
Hitesh Choudhary@Hiteshdotcom·
If you could choose only one laptop, either any variant of a MacBook or any Windows laptop from any brand; and both were offered to you absolutely FREE, which one would you pick?
English
408
11
585
88.3K
Pranav Shridhar
Pranav Shridhar@pranavmodx·
How subtly @instagram removed and reordered the tabs to have reels first. 🙂
English
0
0
2
45
Pranav Shridhar
Pranav Shridhar@pranavmodx·
Crazy how @Google turned the tables completely with @GeminiApp. It's been a long time since I opened @ChatGPTapp and even their free Go subscription doesn't look that appealing.
English
0
0
0
30
Pranav Shridhar retweetledi
Sooraj Chandran
Sooraj Chandran@soorajchandran_·
If there’s something I want to do and I’m able to do it, I try to do it now. It’s not because I’m afraid I’ll die tomorrow. It’s because next year I might not be able to do it, or enjoy it in the same way. We don’t get unlimited time in the years when we’re energetic, mobile, and pain-free. In your 20s you feel invincible. In your 30s you start noticing small changes. In your 40s you work around them. After that, it becomes a negotiation. These shifts happen quietly. There’s no announcement. One day you simply notice something doesn’t work like it used to.
English
1
4
28
2.4K
Pranav Shridhar
Pranav Shridhar@pranavmodx·
Gemini 3.0 hype day by day ^^
English
0
0
0
191
Pranav Shridhar retweetledi
AshutoshShrivastava
AshutoshShrivastava@ai_for_success·
It's happening.
AshutoshShrivastava tweet media
English
180
309
7.9K
329.7K