AdarshSrii Profile Banner
Adarsh Srivastava Profile
Adarsh Srivastava

@AdarshSrii

Followers
76
Following
113
Media
84
Statuses
530

CEO and Founder of @SynchSoftHQ. Building fast, scalable apps. React Native • Node.js • PHP • MySQL • AWS I tweet engineering shortcuts, server fasting tricks

Lucknow, India
Joined September 2014
Don't wanna be here? Send us removal request.
@AdarshSrii
Adarsh Srivastava
3 hours
Stop blaming the LLM — your RAG fails from bad vectors. Fix in 10m: 1) Re-embed 1k with the retrieval embedder 2) Chunk 200–500t, 10% overlap 3) Quantize 8-bit / PCA → 3–5× cost pinecone.upsert([{'id':'d1','values':vec}]) #RAG #VectorDB #Pinecone ⚡️
0
0
0
@AdarshSrii
Adarsh Srivastava
7 hours
RAG degrading? Fix in 3 infra moves: 1) Hybrid search: sparse BM25 filter -> dense HNSW for recall 2) Re-rank top 50 with a cheap cross-encoder (distil) to kill hallucinations 3) Incremental re-embed changed docs + TTL for recency Ship it. 🚀 #VectorDB #RAG #AIinfra
0
0
0
@AdarshSrii
Adarsh Srivastava
11 hours
Manual DB migrations are a killer. Do this: 1) Squash migrations weekly 2) Run on a canary DB via CI 3) Warm Redis cache post-migrate One script, atomic swap, rollback tag = zero-surprise deploys. Prisma + Fastify + Redis — production-ready pattern. #webdev #nodejs 🚀
0
0
0
@AdarshSrii
Adarsh Srivastava
15 hours
Stop tuning for average metrics. Optimize tail latency. Quick checklist: 1) async I/O + backpressure 2) CPU pinning + cache-aware batching 3) reject/queue expensive paths early 4) offload filtering with eBPF/NIC Measure p99, p999 — not avg. ⚡️ #SRE #Perf #DevOps
0
0
0
@AdarshSrii
Adarsh Srivastava
19 hours
RAG wins are infra wins: - Precompute & store embeddings - Batch upserts, quantize int8/4 - Prefer metadata filters Pinecone: ``` pinecone.upsert(vectors) pinecone.query(top_k=5, filter=meta) ``` Tune HNSW ef_search. Ship. #RAG #VectorDB 🚀
0
0
0
@AdarshSrii
Adarsh Srivastava
23 hours
Fix 90% of Node/Fastify+Prisma latency: - Single pooled Prisma client (or Data Proxy) - don't instantiate per request - Warm Redis & write-behind counters - Compile Fastify schemas (AJV) & use undici for HTTP pooling Deploy. Measure p50. 🚀 #NodeJS #Prisma #Fastify
0
0
0
@AdarshSrii
Adarsh Srivastava
1 day
Cloud outage checklist every CTO should own: • Stop all deploys • Flip circuit breakers / degrade nonessential features • Fail fast: route to healthy regions • Single prioritized triage list + 5‑min exec updates Automate these steps now — they beat panic. 🚨⚙️ #CTO #SRE
0
0
0
@AdarshSrii
Adarsh Srivastava
1 day
RAG survival kit: stop embedding whole docs. Embed 300-token sliding windows; store {source,offset,chunk_id}; ANN → cross-encoder re-rank; TTL top-1 cache in Redis. ~30-60% fewer hallucinations, 10x cheaper queries. #RAG #Pinecone 🧠
0
0
2
@AdarshSrii
Adarsh Srivastava
1 day
GenAI inference wrecking your p99? Stop treating compute as disposable. Fix: - tiny warm pool (keep 1–3 instances) - micro-batch requests - colocate vector DB with GPUs - circuit-breakers + backpressure Apply these 4 and watch p99 & cost fall. 🚀 #SRE #AI #scaling
0
0
1
@AdarshSrii
Adarsh Srivastava
2 days
Bad quarter? High-performing CTOs in crisis act fast: 1) Kill projects not increasing revenue/retention. 2) Slash cloud waste: schedule, right-size, spot, reserved. 3) Obs + one SLO to cut MTTR. Do this in 7 days — prove leverage, not heroics. #CTO #SRE 🛠️🚀
0
0
0
@AdarshSrii
Adarsh Srivastava
2 days
2025: Cut P95 tails 3-10x with 5 infra moves: 1) Enable HTTP/3 + QUIC + keep-alive 2) Move hot code to Graviton/ARM 3) Edge cache + stale-while-revalidate 4) Circuit-break DB + local LRU 5) Alert on CPU steal / P99 Do one, measure P95. Repeat. ⚡️🔧 #SRE #Perf
0
0
0
@AdarshSrii
Adarsh Srivastava
2 days
Stop leaking DB connections in serverless Fastify stacks. 1) reuse clients across invocations 2) put Postgres behind PgBouncer 3) reuse Redis client Snippet: if(!global.prisma) global.prisma=new PrismaClient() const prisma=global.prisma #nodejs #prisma #redis #devops 🚀
0
0
0
@AdarshSrii
Adarsh Srivastava
2 days
DB-scaling ≠ solution. Pattern fix: 1) serve stale (stale-while-revalidate) 2) singleflight on misses 3) async write-behind + idempotent retries singleflight (Go): res, _ := https://t.co/wKZsq2h3yG(key, func() (interface{}, error) { return fetchAndCache(key) }) #SRE #infra
0
0
0
@AdarshSrii
Adarsh Srivastava
2 days
Stop blaming LLMs - if your RAG hallucinates, fix the vector layer. Quick fixes: 1) chunk -> sha256 -> dedupe 2) upsert metadata: timestamp + TTL 3) query topK -> rerank with tiny cross-encoder Pinecone tip: save chunk_hash in metadata to filter duplicates. #RAG #Pinecone
0
0
0
@AdarshSrii
Adarsh Srivastava
2 days
In 2025: ship 3x faster — cut dev loop 6m→90s with 3 infra moves across React Native/Flutter/iOS/Android. 1) Remote cache: Gradle/CocoaPods/Bazel 2) Prebuild native binaries (Hermes AOT, SPM) 3) Fast reload: inlineRequires + delta bundles #MobileDev 🚀
0
0
0
@AdarshSrii
Adarsh Srivastava
3 days
CTO in crisis: stop guessing — enact a 90-day triage. 1) Freeze nonessential spend 2) Move hot paths to cheaper infra 3) Ship 1 measurable experiment/week 4) Protect your top 3 engineers 5) Weekly CEO+CTO scorecard No meetings. Do this now. #CTO #SRE 🚀
0
0
0
@AdarshSrii
Adarsh Srivastava
3 days
Stop blaming frameworks. Fix DB connections. Fastify + Prisma: global.prisma = global.prisma || new PrismaClient() Use PgBouncer for pooling Cache reads in Redis (TTL 60s) Set min instances to avoid cold starts #nodejs #prisma #sre 🚀
0
0
0
@AdarshSrii
Adarsh Srivastava
3 days
Latency killing upgrades? 3 fixes: 1) Move heavy IO off hot path -> async workers + idempotent queue. 2) Protect p95: circuit + exp backoff + request coalescing. 3) Cache auth: signed short-lived tokens; no DB on request path. Result: 3-10x fewer timeouts. #SRE 🚀
0
0
0
@AdarshSrii
Adarsh Srivastava
3 days
Fastify+Prisma+Redis dropping connections under load? 3 fixes: 1) Reuse Prisma client globally: if(!global.prisma)global.prisma=new PrismaClient() prisma=global.prisma 2) Pool Redis 3) Use Prisma Data Proxy / PgBouncer #NodeJS #Prisma #SRE 🔥
0
0
0
@AdarshSrii
Adarsh Srivastava
3 days
When things break, top CTOs do 3 things: 1) Stop the bleeding: read error stream, throttle, roll back. 2) Communicate: one status, one channel, 1-min cadence. 3) Buy time: cut nonessential services, shed replicas, feature flags. Small wins > perfect fixes. #CTO #SRE 🚨
0
0
0