Writing
11 posts
2026
- Rebuilding my personal site on Astro and Cloudflare WorkersThe first post on the new site, on why I picked this stack and how the site is meant to grow.
- Three things every AI agent engineer should know: agent architecture, prompt engineering, and MCPA platform-agnostic guide: the agentic loop and multi-agent orchestration, context passing and error propagation, few-shot and structured output, controlling false positives, and the structure, message format and a minimal server implementation of the Model Context Protocol.
- Real-time updates from NestJS to Next.js with Server-Sent EventsA step-by-step tutorial: expose an SSE endpoint from NestJS with an RxJS Subject, consume it in Next.js with a small useSse hook, and push events from any service in your backend. Simpler than WebSockets when the data only flows one way.
2024
- How to Design a PDF Text-to-Speech Service Like SpeechifyText-to-speech (TTS) services have become a popular tool for making content more accessible, providing convenience for users who prefer listening to their text rather than reading it. One of the most well-known TTS platforms is Speechify, which converts digital text, including PDFs, into high-quality audio. When I embarked on building a PDF text-to-speech service similar to Speechify, I faced several challenges and opportunities. In this article, I’ll take you through the steps of how I system-designed this service, from understanding user needs to choosing the right technology stack and scaling the solution.
- How I Passed AWS Certified Developer Associate ExamI recently passed the AWS Certified Developer Associate exam. Here are some tips and resources that helped me prepare for the exam.
- What story does Black Myth: Wukong tell?Black Myth: Wukong is a video game developed by Chinese indie developer Game Science. The game is based on the classic Chinese novel Journey to the West and tells the story of Sun Wukong, the Monkey King. In this article, we will explore the story of Black Myth: Wukong and how it relates to the original novel.
- How I prepare for the final-round interviewIn North America the last round is usually with the hiring manager: short, unpredictable, and decisive. My method is to write out every likely question and its answer in advance. Here are the questions I prepared, the frameworks I used, and a few real stories.
- How to Design Uber Eats: A System Design Mock InterviewThis blog post summarizes a mock interview discussion on designing a system like Uber Eats. It explores the technical considerations involved in building a large-scale food delivery platform.
- How to design Amazon Prime Video: A System Design Mock InterviewThis blog post summarizes a mock interview discussion on designing a minimalist version (MVP) of Amazon Prime Video. It explores the core functionalities and considerations for building a large-scale video streaming platform.
- How to Design a Shopping Cart Page: A System Design Mock InterviewA shopping cart page is a crucial component of any e-commerce website, allowing users to review and modify their selections before making a purchase. Designing an effective shopping cart page requires careful consideration of both functional and non-functional requirements. This blog post summarizes a mock interview discussion on designing a shopping cart page, exploring the core functionalities and considerations for building a scalable e-commerce platform.
- How to Deploy Ollama Server on Amazon EC2 with GPU in 10 MinutesThis guide is ideal for individuals or small teams building their own open source local large language model (LLM) AI capabilities in the cloud, ensuring data privacy, customizability, regulatory compliance, and cost-effective AI solutions.