Hey, I'm Mahendra.
Thirteen years building software, most of it around live video. Now I build agents, and the walls that keep them safe.
Where I work
Xsolla
Senior software engineer
I work on Lightstream Studio, a live broadcasting studio. Four years ago I was hired to build the product. Now I've ended up in the infrastructure too, and I'm not complaining.
- Kubernetes at scale: managing clusters across multiple regions and the infrastructure around them
- Resilience for a platform that's always live: capacity, failover and recovery
- Observability, and the automation built on top of it
- Agents that work alongside our operations, from investigation to response
- Product, end to end, from the feature down to the platform it runs on
What I'm building
Bayley
In development
My own agent, on WhatsApp and the web, working inside your Gmail, Drive, Docs and Sheets. Every conversation runs in its own gVisor sandbox, your keys never enter it, every tool call is checked at each hop, and its character is versioned and tested like code.
How I think about engineering
- 01
Provision for scale. Don't build for it.
Check the indexes and the vacuum settings before you add a second region.
Navigating the Scaling Myth → - 02
AI solves the node, not the network
Generated code works and still doesn't belong. The job is knowing what to write, what not to, and why.
No Silver Bullet → - 03
Model the data around its questions
Dynamo is for everyone, but not everyone is for Dynamo. Know how the data will be read before deciding how it's stored.
Data Modeling in DynamoDB → - 04
Every log line has a price
An unhandled exception doesn't just hide a bug. It turns one error into twenty billed lines. Handle it, and log on purpose.
The World of Effective Logging → - 05
A hard test is a design review
If a test needs a private member or a special condition to get in, the dependency isn't isolated enough.
Unit Testing for Redis Service → - 06
Assume the agent will be tricked
Keep the keys out of it and fence its tools from the outside, at every hop. Nothing that matters lives in the prompt.
The Agent Will Be Tricked →
Past projects
No longer maintained.
- CovidTweet2021
We built this tool to filter recent verified tweets from twitter and extract important information with call to action.
- AudioViz2021
Programmatically create a video from your audio
- Sock-stream2021
Go server that routes incoming livestream data from websockets to an external RTMP endpoint.
- Transcode2021
Convert your video to different streams like HLS or Dash
- NotionEdge2020
Notion API hosted on LambdaEdge
- Superauth2020
React hooks for firebase authentication
- Zoop2020
A friendly tool that host your website on serverless platform free of cost