II

Blog

Writing about engineering, architecture, and building things that last.

Apr 19, 20267 min read

Why Pre-AI Advice is Dead: Unlearning at YC SUS Bangalore 2025

I went to YC Startup School expecting to hear about genius day-one ideas. Instead, I learned why you should ignore current AI limitations, treat regulatory hell as a moat, and throw out pre-AI startup advice entirely.

startupsy-combinatoraiproduct-engineeringfounder-journey
Read post →
Mar 25, 202516 min read

Practical Dataloading with Strawberry GraphQL and Aioinject

This blog post tackles the N+1 query problem in GraphQL by introducing dataloaders for batching requests and reducing database calls. It walks through setting up Aioinject, an async dependency injection library, to manage dataloader lifecycle efficiently with FastAPI and Strawberry GraphQL. The post explores three iterations of dataloader implementation, showing how to eliminate global state, improve performance, and support advanced features like key transformations and reusable factories.

strawberry-graphqlfastapibackendpythongraphql
Read post →
Mar 11, 202514 min read

Secure Session Management with JWE/JWS in FastAPI and Next.js

This article explores secure session management using JWE and JWS in FastAPI and Next.js. Key considerations include balancing security, client-side accessibility, and performance. JWS is recommended for non-sensitive data needing frontend access, while JWE adds encryption for critical use cases. Both methods rely on standardized libraries and secure key management to ensure integrity and confidentiality in decoupled architectures.

reactnext.jsfastapibackendpythontypescriptfrontendauthentication
Read post →
Jan 1, 202518 min read

Using Relay with Next.js and React Server Components (RSC)

This blog post explores how to integrate Relay and Next.js with React Server Components (RSC), addressing a gap in existing resources. While Relay excels as a GraphQL client for Client-Side Rendering (CSR), this guide demonstrates its potential for RSC use cases, which is vital for applications prioritizing SEO and faster initial load times.

next.jsrelaygraphqltypescriptfrontend
Read post →
Nov 20, 20246 min read

My Tech Stack for building lean and mean HTTP APIs with Python

When it comes to building lightweight and efficient HTTP APIs, Python offers a fantastic ecosystem of tools that enable you to create robust, scalable, and maintainable backends. In this post, I'll walk you through my tech stack for building lean and mean APIs with Python. Each component has been chosen to maximize efficiency, readability, and modern best practices.

tech stackpythonhttpbackend
Read post →
Nov 5, 202411 min read

Persisted Queries with Relay, Strawberry GraphQL and FastAPI

In this tutorial, we’ll walk through how to integrate Strawberry GraphQL and FastAPI with Relay to enable persisted queries, which can significantly boost the performance of GraphQL applications. We’ll cover setting up a Relay environment on the client side, configuring a GraphQL server to handle persisted queries, and extending the Strawberry GraphQL schema to manage these queries.

pythonfastapigraphqlstrawberry graphqlrelayreactjavascriptfrontendbackend
Read post →