Hey, I am Tyagi

Software · Distributed Systems · System Design

I build software for machines and backends that have to keep working when things get busy. I am a Computer Science engineer from IIIT Sri City, and for around a year I have been at Morphle Labs, writing software for the Robotom robotics platform: computer vision for blade and tilt detection, gantry safety, sensor node integration, and the timing, quality and parallelism tuning that decides how long a run actually takes.

Before that I spent ten months as a Django backend engineer at OncoDisha, owning production healthcare services on GCP with Docker and Kubernetes: patient-tracking APIs, WebRTC consultation flows, and LLM/RAG pipelines. Two very different domains, one habit carried across both: when a system is slow or wrong, measure it before changing it.

That habit is most of what I do for fun too. My architecture lab and GitHub are full of small systems built to be broken on purpose: rate limiters that leak at the window boundary, caches that go stale against their database, sharding, distributed ID generation, CDN and cache-eviction benchmarks. Day to day I work in Python, C++, Java and JavaScript, with OpenCV, Node.js, React, Redis, MySQL and MongoDB.

Varun Tyagarayan G

* Don't mind this photo. The real me is darker and a little rounder. The camera was in a generous mood that day.

Detailes Matter ....Right?

Full lab →

Small, self-contained projects that each take one backend or system-design idea and make it visible.

Fixed window vs token bucket

Login API rate limiting, simulated in a terminal (Python, rich)

A live terminal demo of a login API under a password-guessing attack, defended by two different rate limiters.

The detail: a fixed window counter gives its whole allowance back at the minute boundary. Aim for that instant and a limit of 10 logins per minute lets 20 through in 2 seconds. A token bucket never resets all at once, so the same attack gets 10.

Limiter Attack Let through
Fixed window steady, one minute 10, holds
Fixed window boundary burst 20 in 2 s, 2× the limit
Token bucket boundary burst 10 in 2 s, holds
Counter per server 30 tries, 10 servers 30, 3× the limit
Shared Redis counter 30 tries, 10 servers 10, holds

Nothing on screen is faked: every 200 OK and 429 is the return value of the limiter code.

Terminal simulation, act 2: twenty logins allowed in two seconds against a limit of ten per minute
Act 2 of 4, the boundary trap: same limiter, smarter attacker.

Lease token

Keeping a cache in step with the database, simulated in a terminal (Python, rich)

A live terminal demo of an online store that keeps prices in a database and a fast copy in a cache, while one price changes from ₹100 to ₹200.

The detail: the rule is to update the database, then delete the cache key. A slow reader that fetched the old price before the update can write it back after the delete, and the cache stays wrong. A TTL only limits how long; a lease token makes the cache refuse the stale write.

Strategy Situation Wrong prices
Update, then delete one step at a time 0, holds
Update, then delete slow read + update 6, stale forever
+ TTL 60 s slow read + update 5, stale for 60 s
+ lease token slow read + update 0, holds

Every result on screen comes from the cache code: the key really is empty when the admin deletes, and the lease check really does refuse the write.

Terminal simulation, act 2: the cache holds a stale price of ₹100 while the database says ₹200
Act 2 of 4, the race: the old price is back in the cache.

Free trial abuse prevention

Stopping repeat free-trial signups, simulated in a terminal (Python, rich)

A live terminal demo of ten signups arriving at a service that gives one free trial per person. Five are honest people; one person comes back five times.

The detail: every defence is a guess about identity, and a guess can be wrong twice over: it can turn away an honest customer, or let a repeat back in. A stricter rule is not automatically a better one. Add up several weak signals into a risk score, and challenge the uncertain middle instead of denying it.

Policy Honest blocked Repeats let in
One trial per IP 3 2
One trial per device 1 3
Risk score, deny at 40 1 0
Risk score + challenge 0 0, holds both ways

Every decision on screen is the real return value of the policy's code, scored against who each signup really is.

Terminal simulation, act 3: the risk score denies every repeat signup and also denies Vikram, an honest first-time signup, at risk 55
Act 3 of 4, the risk score: every repeat stopped, and an honest signup denied at 55.

Experience

Morphle Labs

Software Development Engineer Intern (Backend / Robotics) (Dec 2025 – Present)

I joined Morphle Labs in December 2025, where software directly influences physical system behavior. A wrong threshold or a late message shows up as a damaged part or a machine standing still. I started on the robot's distributed vision infrastructure, a set of Raspberry Pi camera nodes handling live video and frame capture, and moved from there into the computer vision, safety and throughput of the Robotom platform itself.

Most of my work sits where vision, motion and timing meet. A detection that is 100 ms late is a different bug from a detection that is wrong, and telling those apart across a distributed machine is the skill I have spent this year building.

  • Blade & Tilt Detection: Built the blade detection pipeline, and detection for tilted objects in the input tray. A tilted block costs roughly a full day of downtime, so the run now stops before it is ever picked up.
  • Gantry Safety: Worked on the safety logic for the machine's gantries, the checks that decide when an axis is allowed to move while a run is in progress.
  • Visual CV Tuning: Vision parameters used to be tuned by editing values and re-running. I built an interactive interface that shows the effect of each parameter as it changes, so tuning is now something anyone on the team can do in minutes.
  • Run Time per Block: Tuned the timing and output quality of Robotom and reworked independent tasks to run in parallel instead of in sequence, cutting the run time per block, the number that decides the machine's throughput.
  • Finding the Real Bottleneck: When cameras, motion, control and I/O all overlap, the slow part is rarely the obvious one. I write targeted tests that isolate each stage, then pick the fix to match what that stage actually needs rather than optimising everywhere at once.
  • Node Integration: Integrated new sensing nodes into the distributed platform (thermal cameras with their own CV detection, humidity sensors), fitting each into the existing messaging and control architecture as the hardware moved to its next generation.

OncoDisha

Django Backend Engineer Intern (Feb 2025 – Nov 2025)

My time at OncoDisha was defined by ownership, trust, and real-world impact. Every day began with a 10:00 PM team call (six of us, including two founders and four interns) discussing what we built, what broke, and what we wanted to improve. Problems were shared openly, solutions came collaboratively, and learning was constant.

OncoDisha is a fast-moving healthcare startup that treats interns like engineers. From day one, I was given full responsibility (access to premium tools, generative AI, and Google Cloud Platform) to design, deploy, and operate production systems that directly supported palliative care workflows.

What stood out most was the culture. We revisited every feature with intent: questioning design decisions, performance trade-offs, and real patient impact. The environment was friendly, ego-free, and deeply curious. By the time I moved on, I had not only strengthened my backend and cloud engineering skills, but also learned how strong engineering teams communicate, iterate, and build meaningful products together.

  • Backend Systems & APIs: Built and maintained Django-based APIs powering patient tracking, financial planning, and care coordination across multiple internal applications.
  • Real-Time Communication: Engineered WebRTC-based communication flows with RESTful APIs, enabling seamless doctor–patient interactions with sub-100 ms latency.
  • Cloud & Production Deployment: Deployed and managed services on Google Cloud Platform using Docker and Kubernetes, gaining hands-on experience with real production infrastructure and reliability concerns.
  • AI & Generative Systems: Integrated and optimized Hugging Face–based LLM pipelines, working with prompt engineering, retrieval-augmented generation (RAG), and evaluation workflows tailored for healthcare use cases.

Projects

Full archive →

Things I have created recently.

B.Tech Project under Dr. Bheemappa Halavar

We are currently developing a Federated Learning framework using MPI, specifically tailored for Medical Image Analysis (MIA). This is part of an 8-credit, two-semester project conducted under the supervision of a faculty advisor.

Worklog

Notes on system design, backend engineering, and practical learning from projects.

System Design

Understanding the CAP Theorem in Distributed Systems

A practical CAP theorem guide covering consistency, availability, partition tolerance, and how to choose between CP and AP under failures.

Read more →

What Does System Availability Really Mean?

A beginner-friendly explanation of availability, uptime vs downtime, the formula, number of nines, and what downtime feels like in real systems.

Read more →

Understanding Consistency in Distributed Systems

A clear walkthrough of strong, weak, and eventual consistency, why they matter, and how to choose the right model based on system requirements.

Read more →

Daily Learnings

What Is Mapping in Robotic Arms?

An introductory guide to how mapping works in robotics, with simple explanations of plane setup, pose definition, and Position 0 on EC cobots.

Read more →