Pradyum Singh

80 posts

Pradyum Singh banner
Pradyum Singh

Pradyum Singh

@Pradyum_Codes

pradyum.node | ForkedAgain at @NodeOpsHQ @BuildOnNodeOps

India Katılım Ağustos 2023
44 Takip Edilen84 Takipçiler
Pradyum Singh
Pradyum Singh@Pradyum_Codes·
Building a web-based multi-terminal manager for @BuildOnNodeOps , xterm.js over WebSocket, sortable grid , adaptive layouts (auto-scales 1→9+ panes), live resource telemetry in the status bar. Full VPS lifecycle management without ever leaving the browser.
Pradyum Singh tweet media
English
0
0
1
27
Pradyum Singh
Pradyum Singh@Pradyum_Codes·
In my opinion heavy ternary usage in React/Next.js tsx is a code smell. A dedicated render function with if blocks is almost always more readable, debuggable, and maintainable.
English
0
0
0
20
Pradyum Singh
Pradyum Singh@Pradyum_Codes·
A queue gives you: ✅ Persistence ✅ Auto-retry — failed jobs retry automatically ✅ Backpressure — control how many jobs run at once ✅ Decoupling — main server doesn't care if email service is slow Async functions forget. Queues remember. Tools to try: BullMQ + Redis 🔧
English
0
0
0
16
Pradyum Singh
Pradyum Singh@Pradyum_Codes·
Here's how a queue changes the flow: User places order → Save to DB ✅ (fast, must happen) → Respond "Order placed!" instantly ✅ → Push jobs to queue (microseconds) → Worker sends email (background) → Worker updates stock (background) User is never waiting for bg
English
1
0
0
19
Pradyum Singh
Pradyum Singh@Pradyum_Codes·
Why do backend engineers use queues instead of just calling async functions after an order is placed? Short answer: async ≠ reliable. Let me explain 🧵
English
1
0
0
23
Pradyum Singh
Pradyum Singh@Pradyum_Codes·
One day everything will be fine , but with new problems :))))))))))
English
0
0
1
14
Pradyum Singh
Pradyum Singh@Pradyum_Codes·
Neon DB's Postgres free tier used to be great for side projects, but I've been hitting the suspension limits way too often lately. Thinking of spinning up a self-hosted Postgres instance on an EC2 machine instead.
English
0
0
1
26
Pradyum Singh
Pradyum Singh@Pradyum_Codes·
If you want more breakdowns like this — Do hit follow. And drop a reply if you've used tRPC — curious what you think of it
English
0
0
0
19
Pradyum Singh
Pradyum Singh@Pradyum_Codes·
Quick start: npm install @trpc/server @trpc/client @trpc/react-query zod Define router → export its type → import in client → call like a function. Works great with Next.js. Pairs perfectly with Zod for input validation.
English
1
0
0
23
Pradyum Singh
Pradyum Singh@Pradyum_Codes·
A few weeks ago I had no idea what tRPC was. Now I can't imagine building a fullstack app without it. Here's everything I learned — explained simply 🧵
English
1
0
1
23
Pradyum Singh
Pradyum Singh@Pradyum_Codes·
Your "Sign in with Google" button might be leaking tokens. Here's exactly how — and the fix 👇
Pradyum Singh tweet media
English
1
0
2
32