PinnedTalha Khalid·Mar 2Rate Limiting Your Rails API with Rack::Attack gemRate limiting is a fundamental aspect of API security and stability. Without it, endpoints are vulnerable to brute force attacks…
PinnedTalha Khalid·Oct 22, 2022Upload large files to Amazon S3 bucket using RubyThis tutorial is a complete guide about uploading large files (files larger than 500MB) on AWS S3 bucket using plain Ruby (not Ruby on…
Talha Khalid·Aug 74 Steps to Create a Simple RAG ChatbotThis article assumes you’re already comfortable with Python and FastAPI, and have at least a working familiarity with LangChain and vector…
Talha Khalid·Jan 4Connect Multiple Databases in a Rails 5 ApplicationMulti-database support in Rails sounds simple — until you actually try to implement it in a real project, especially on Rails 5.2.
Talha Khalid·Nov 5, 2025Understanding Rails Counter Cache: A Built-In Performance Boost You Should Be UsingHave you ever noticed performance drops when calling .count on large associations? Well, you’re not alone. Counting related records in…
Talha Khalid·Jul 20, 2025How to Dockerize a FastAPI Application with PostgreSQLFastAPI is a modern, fast (high-performance) web framework for building APIs with Python. While it’s great for local development, running…A response icon2A response icon2
Talha Khalid·Feb 16, 2025Build a Chat App with Rails Action Cable and React JS — Part1In this article, we will build a basic real-time chat application with Rails backend and React JS frontend. Let's go!
Talha Khalid·May 5, 2024Git rebase vs Git mergeHave you ever been stuck not sure whether to use Git merge or Git rebase? You’re not alone here. We are going to explore the key…
Talha Khalid·Nov 25, 2023Dockerize an existing Ruby on Rails ApplicationIntroduction to Docker Docker lets you package up an application with all of its dependencies into a standardized unit. This unit is…