Ritik MehraPlease hold
Ritik Mehra
Backend Engineer & Cloud-Native Developer
I am currently accepting new opportunities. Let's build something great together.

Backend Engineer & Cloud-Native Developer

Ritik
Mehra

Hey there! I started coding in 2021 and haven't stopped since.Want to see how it all went down?

Scroll
2021
Chapter 1

Where It All Began

ItwasDecember2021.
FirstinternshipinEdTech.
ZeroideawhatIwasdoing,
andalltheexcitementintheworld.
Turnsout,that'sthebestplacetostart.
SpeEdLabsIntern

Dec 2021 - Jun 2022 Hyderabad (Hybrid)

EdTech platform for online courses and assessments. I handled payments, certificate generation, and video delivery — the infrastructure that kept the classroom running.

Payment Gateway Integration

Problem: EdTech platform needed secure, real-time payment processing for course fee management with live notifications to students and admins.

Solution: Integrated Cashfree payment gateway with webhook handlers for real-time payment status updates, idempotent processing to prevent duplicate charges, and signature verification for webhook security. Built stored procedures in MS-SQL for fee management with live notifications tied to payment events.

Cashfree APIWebhook security100% success rate

PDF Rendering Engine

Problem: Server-side PDF generation for certificates and progress reports was blocking the Node.js event loop under concurrent load, with no access control on generated documents.

Solution: Enhanced Puppeteer-based rendering with JWT token authorization — users only access their own documents. Implemented a queue-based generation system to handle concurrent requests without blocking the event loop, ensuring reliable certificate and report delivery.

JWT authorizedQueue-basedNon-blocking

Vimeo + Azure Blob Storage

Problem: Local file storage didn't scale horizontally for growing video content, and there was no access control for sensitive educational materials.

Solution: Integrated Vimeo Upload API with domain whitelisting for secure video hosting and playback. Migrated file storage to Azure Blob with SAS tokens for time-limited, secure access. Stored video metadata in MS-SQL with proper indexing for fast retrieval across courses.

Azure BlobSAS tokensDomain whitelist

What I Learned

Webhooks, queues, async processing, secure document delivery — production engineering across the full stack in six months.

CashfreePuppeteerAzure BlobVimeo APIMS-SQLNode.js
The Beginning • 2021 • EdTech • Remote • Internship • Payments • APIs • The Beginning • 2021 •The Beginning • 2021 • EdTech • Remote • Internship • Payments • APIs • The Beginning • 2021 •The Beginning • 2021 • EdTech • Remote • Internship • Payments • APIs • The Beginning • 2021 •The Beginning • 2021 • EdTech • Remote • Internship • Payments • APIs • The Beginning • 2021 •
2022
Chapter 2

Finding My Feet

Firstfull-timerole.Consulting.
Buildingthingsthatrealpeopleuseatscale.
Iwashooked.
Antino LabsSoftware Developer

Aug 2022 - Nov 2023 Gurgaon (Hybrid)

Tech consultancy solving problems for global clients. I built backend systems across multiple projects — improved performance by 40% through better caching, database optimization, and cleaner architecture.

Backend Performance Engineering

Problem: Single-threaded Node.js wasn't utilizing all CPU cores. Connection overhead was high. Callback hell made error handling unreliable.

Solution: Used the Cluster module to utilize all CPU cores. Implemented connection pooling — reusing persistent connections reduced overhead by ~60%. Replaced callbacks with async/await throughout. Added request validation middleware at the API gateway — bad requests rejected before business logic.

40% faster60% less overheadAsync/await

Database Optimization

Problem: Slow queries, full table scans, N+1 query problems, and inefficient data models were bottlenecks.

Solution: Designed normalized schemas with FK constraints. Created composite indexes — queries dropped from 200ms to 15ms. Implemented cursor-based pagination for scale. For MongoDB: denormalized schemas for reads, built aggregation pipelines for reporting, added TTL indexes for auto-cleanup.

200ms → 15ms35% efficientTTL indexes

Code Quality & Architecture

Problem: Monolithic route handlers, duplicated logic, inconsistent patterns. Onboarding took 2 weeks.

Solution: Refactored into layered architecture: Controllers → Services → Repositories. Extracted shared middleware for logging, error handling, rate limiting. Applied OOP: inheritance for base models, composition for shared behaviors, strategy pattern for pluggable payment processors.

40% less code2-day onboardingLayered arch

What I Learned

Cluster modules, connection pooling, layered architecture, composite indexes — backend engineering from the database up.

Node.jsPostgreSQLMongoDBRedisExpress.jsSystem Architecture
The Rise • 2022 • Consulting • Node.js • Architecture • Scalability • Performance • The Rise • 2022 •The Rise • 2022 • Consulting • Node.js • Architecture • Scalability • Performance • The Rise • 2022 •The Rise • 2022 • Consulting • Node.js • Architecture • Scalability • Performance • The Rise • 2022 •The Rise • 2022 • Consulting • Node.js • Architecture • Scalability • Performance • The Rise • 2022 •
2023
Chapter 3

Going Global

Torontocalled.
Remoteworkopeneduptheworld.
IgottobuildSaaSatscale,addAItothings,
andwatchengagementnumbersclimb.
ApollofySoftware Developer

Nov 2023 - Mar 2025 Toronto (Remote)

SaaS platform helping creators and small businesses grow through community tools. I built and scaled the core products — MembersPod and SME GrowthHub — handling real-time engagement and AI features.

Real-Time Engagement Engine

Problem: Users needed real-time interactions across multiple Spaces without broadcast noise overwhelming the system.

Solution: Built room-based Socket.io — users only receive events for their spaces (80% noise reduction). Real-time push for online users, Redis queue + cron fallback for offline. Feed systems via pub/sub — events to Redis channels, consumed by feed service. Connection management: reconnection, heartbeat, WebSocket-to-long-polling fallback.

45% engagement80% less noiseSocket.io rooms

API Performance Optimization

Problem: Feed APIs triggered 50+ DB queries per request (N+1). No caching. Uncompressed payloads.

Solution: Multi-layer caching: Redis for hot data, CDN for static, in-memory for config. Event-driven cache invalidation. Fixed N+1 with eager loading — 50 queries → 3. Added composite indexes, EXPLAIN ANALYZE for slow queries. Cursor-based pagination. gzip/brotli compression reducing payloads 60-70%.

60% faster50 → 3 queries60-70% smaller

AI Integration & Analytics

Problem: Needed personalized content, automated reporting, and admin tools to reduce manual work.

Solution: OpenAI API for behavior-based content scoring and recommendations. Rate limiting with batching and 24-hour caching. Gamification: points system (10/post, 5/comment, 50/event), Redis sorted sets for O(log N) leaderboards. Admin panel with AI-powered reports. Jira-like task management with sprints, backlog, burndown charts.

30% retention50% productivityOpenAI AI

What I Learned

Socket.io rooms, Redis pub/sub, eager loading, OpenAI scoring — real-time SaaS engineering at global scale.

Socket.ioRedisPostgreSQLOpenAI APITypeScriptNode.js
Going Global • 2023 • SaaS • AI • Toronto • Real-time • Socket.io • Redis • Going Global • 2023 •Going Global • 2023 • SaaS • AI • Toronto • Real-time • Socket.io • Redis • Going Global • 2023 •Going Global • 2023 • SaaS • AI • Toronto • Real-time • Socket.io • Redis • Going Global • 2023 •Going Global • 2023 • SaaS • AI • Toronto • Real-time • Socket.io • Redis • Going Global • 2023 •
2025
Chapter 4

Leveling Up

Seniordevelopernow.
Buildingreal-timetradingsystemswithAI.
Stilllearningeveryday.
Stillgettingexcitedaboutit.
VuetraSenior DeveloperCurrent

Jun 2025 - Present Netherlands (Remote)

Trading platform with real-time analytics, on-chart execution, and AI-powered insights. I built the microservice architecture — data feeds and indicator services processing in milliseconds.

Microservices Architecture

Problem: Trading platform needed separate, scalable services for data ingestion, indicator computation, and AI charting.

Solution: Built microservices with single responsibilities: Datafeed Service ingests real-time market data from multiple sources (crypto, forex, equities) and normalizes it. Indicator Service computes technical indicators (RSI, MACD, Bollinger Bands) on streaming data. AI Charting Service does pattern recognition — support/resistance, trend lines, candlestick patterns.

3 servicesIndependent scalingClean boundaries

QuestDB Time-Series Database

Problem: PostgreSQL/MongoDB could not handle millions of market data points per second with sub-millisecond query performance.

Solution: Implemented QuestDB — columnar storage optimized for write-heavy append-only time-series. Sub-millisecond range queries. Built-in ASOF JOIN for cross-source timestamp alignment. Data pipeline: Exchange API → Message Queue → Datafeed → QuestDB → Indicator Service → WebSocket. Backpressure handling with queue buffering.

Sub-ms queriesMillions pts/secASOF JOIN

Low-Latency System Optimization

Problem: Traders need real-time data with minimal latency — every millisecond matters for trading decisions.

Solution: Binary protocols instead of JSON for internal communication. Zero-copy data passing where possible. Batch processing for indicator computations. Incremental computation — update on new data, don't recalculate. High-throughput WebSocket endpoints handling thousands of concurrent connections with multiplexing. Rate limiting at API gateway.

Binary protocolsZero-copyK connections

What I Learned

QuestDB, microservices, zero-copy, binary protocols — low-latency trading systems from data feed to chart.

QuestDBMicroservicesWebSocketNode.jsTypeScriptLow-Latency
The Present • 2025 • Trading • AI • Microservices • Real-time • QuestDB • Low-latency • The Present • 2025 •The Present • 2025 • Trading • AI • Microservices • Real-time • QuestDB • Low-latency • The Present • 2025 •The Present • 2025 • Trading • AI • Microservices • Real-time • QuestDB • Low-latency • The Present • 2025 •The Present • 2025 • Trading • AI • Microservices • Real-time • QuestDB • Low-latency • The Present • 2025 •
Chapter 5

Beyond the Code

WhenI'mnotshippingcode,
I'mgaming,grindingproblems,lifting,
orreadingaboutwhatI'llbreaknext.

Gaming

Leveling up IRL too. FPS, RPGs, strategy — if it has a skill tree, I'm there.

Coding Problems

Sharpening the blade daily. LeetCode, competitive programming, system design challenges.

Technical Reading

Always curious. Blogs, articles, RFCs, architecture deep-dives — you name it.

Gym & Fitness

Iron never lies. Strength training, calisthenics, and staying active — healthy body, healthy code.

Chapter 6

The Arsenal

Here'swhatI'vebeenbuildingwith.
5years,countlessprojects,
oneevolvingtoolkit.
JavaScript
JavaScript
TypeScript
TypeScript
Node.js
Node.js
Python
Python
Go
Go
Git
Git
Chapter 8

What's Your Story?

I'malwaysupforagoodconversation.
Aboutcode,gaming,orwhatever.
Sayhi!

Your message has been delivered successfully.

I will respond promptly.

Chapter 9

What I've Learned

Backend engineering and cloud-native development. I design and build scalable APIs, microservices architectures, and robust distributed systems. My core stack is Node.js, TypeScript, PostgreSQL, Docker, and Kubernetes — but I pick up whatever tools the job demands. I care about performance, observability, and building systems that don't wake you up at 3 AM.

5+ years working with companies across the globe — Vuetra in the Netherlands (AI-powered trading platform), Apollofy in Toronto (SaaS with real-time engagement), Antino Labs in India (tech consulting), and more. I've been fully remote for most of my career, so I know how to collaborate across time zones, write clear documentation, and ship independently.

Yes! I'm actively looking for my next role. I thrive in remote environments and love working with teams that value clean architecture, performance, and developer experience. If you're building something interesting — especially in backend, cloud infrastructure, or real-time systems — let's talk.

Start simple, then scale intentionally. I focus on clean architecture first — proper separation of concerns, well-defined API contracts, and testable business logic. For databases, I match the tool to the access pattern (relational for structured data, document for flexible schemas, time-series for streaming data). I always think about caching strategies, rate limiting, observability, and graceful degradation from day one. Performance isn't an afterthought — it's a design constraint.

I'm a gamer at heart — FPS, RPGs, strategy games, you name it. I also spend time solving coding problems on LeetCode and reading technical blogs, architecture deep-dives, and RFCs. I genuinely enjoy this stuff, so the line between work and hobby is pretty blurry.

Thanks for watching • Let's connect • Thanks for watching • Let's connect •Thanks for watching • Let's connect • Thanks for watching • Let's connect •Thanks for watching • Let's connect • Thanks for watching • Let's connect •Thanks for watching • Let's connect • Thanks for watching • Let's connect •

Ready for the next chapter?

© 2026 All rights reserved