---
title: "Yash Bafna (@ybafna) | Hashnode"
description: "Senior Software Engineer. Building Routiq - a local-first LLM gateway with semantic caching and complexity routing."
url: "https://hashnode.com/@ybafna"
---

@ybafna

# Yash Bafna

@ybafna · India · Joined May 2021

Senior Software Engineer. Building Routiq - a local-first LLM gateway with semantic caching and complexity routing.

### [Building Routiq: a local-first LLM gateway that proves its savings](https://yashbafna.hashnode.dev/building-routiq-local-first-llm-gateway?utm_source=hashnode&utm_medium=feed)

Architecture, algorithm choices, and the 22 security holes I shipped over

13 min read · [yashbafna.hashnode.dev](https://yashbafna.hashnode.dev/building-routiq-local-first-llm-gateway?utm_source=hashnode&utm_medium=feed)

[May 23](https://hashnode.com/posts/building-routiq-local-first-llm-gateway/6a11b33c1a3cf7bffc27adf7)

### [Design Principles -Contd.](https://yashbafna.hashnode.dev/design-principles-contd?utm_source=hashnode&utm_medium=feed)

Prefer interface over concrete class To make design flexible, always try to program interface over concrete classes. This helps to extend code later very easily. Favor composition over inheritance Inheritance is the easiest way to reuse the code. Jus...

2 min read · [yashbafna.hashnode.dev](https://yashbafna.hashnode.dev/design-principles-contd?utm_source=hashnode&utm_medium=feed)

[May 30, 2021](https://hashnode.com/posts/design-principles-contd/60b3b6c1fb51fd32a4dc32b9)

### [Introduction to Design Pattern](https://yashbafna.hashnode.dev/introduction-to-design-pattern?utm_source=hashnode&utm_medium=feed)

In this article, we will see what we mean by design patterns.

2 min read · [yashbafna.hashnode.dev](https://yashbafna.hashnode.dev/introduction-to-design-pattern?utm_source=hashnode&utm_medium=feed)

[May 30, 2021](https://hashnode.com/posts/introduction-to-design-pattern/60b3b42b9b1e2e1dccbd123a)
