---
title: "Aditya Tiwari (@adityatiwarii25) | Hashnode"
description: "Ruby Dev. Read the latest articles by Aditya Tiwari on Hashnode."
url: "https://hashnode.com/@adityatiwarii25"
---

@adityatiwarii25

# Aditya Tiwari

@adityatiwarii25 · Joined December 2025

Ruby Dev

### [How databases handle connections and fault tolerance](https://adityatiwarii25.hashnode.dev/how-databases-handle-connections-and-fault-tolerance?utm_source=hashnode&utm_medium=feed)

One thing I found interesting while digging into databases is how differently they handle client connections. Let’s start with Postgres, because it does something very old-school but very solid. Postg

3 min read · [adityatiwarii25.hashnode.dev](https://adityatiwarii25.hashnode.dev/how-databases-handle-connections-and-fault-tolerance?utm_source=hashnode&utm_medium=feed)

[Mar 31](https://hashnode.com/posts/how-databases-handle-connections-and-fault-tolerance/69cc16afe4688e4edd2a75b9)

### [Building a BitTorrent Client from Scratch to Understand the Protocol](https://adityatiwarii25.hashnode.dev/building-a-bittorrent-client-from-scratch-to-understand-the-protocol?utm_source=hashnode&utm_medium=feed)

I wanted to understand how BitTorrent actually works, so I decided to build a minimal client from scratch. The goal was not to build something production ready, but to understand the protocol step by

3 min read · [adityatiwarii25.hashnode.dev](https://adityatiwarii25.hashnode.dev/building-a-bittorrent-client-from-scratch-to-understand-the-protocol?utm_source=hashnode&utm_medium=feed)

[Mar 22](https://hashnode.com/posts/building-a-bittorrent-client-from-scratch-to-understand-the-protocol/69c02a51d9da55a9a5bf9d0e)

### [Objects That Answer One Question Well](https://adityatiwarii25.hashnode.dev/objects-that-answer-one-question-well?utm_source=hashnode&utm_medium=feed)

Or how “and” ruins perfectly good code

2 min read · [adityatiwarii25.hashnode.dev](https://adityatiwarii25.hashnode.dev/objects-that-answer-one-question-well?utm_source=hashnode&utm_medium=feed)

[Dec 31, 2025](https://hashnode.com/posts/objects-that-answer-one-question-well/6954aa87866c3befa57f3c2e)

### [The Template Pattern in Ruby](https://adityatiwarii25.hashnode.dev/the-template-pattern-in-ruby?utm_source=hashnode&utm_medium=feed)

Or how to stop rewriting the same damn method

2 min read · [adityatiwarii25.hashnode.dev](https://adityatiwarii25.hashnode.dev/the-template-pattern-in-ruby?utm_source=hashnode&utm_medium=feed)

[Dec 31, 2025](https://hashnode.com/posts/the-template-pattern-in-ruby/6954a820d49f0b720609fca8)

### [Duck Typing in Ruby](https://adityatiwarii25.hashnode.dev/duck-typing-in-ruby?utm_source=hashnode&utm_medium=feed)

The problem Imagine you are writing code that sends notifications. At first, everything looks simple. class EmailNotification def send "Sending email" end end def notify(notification) notification.send end Life is good. Then one day, Slac...

2 min read · [adityatiwarii25.hashnode.dev](https://adityatiwarii25.hashnode.dev/duck-typing-in-ruby?utm_source=hashnode&utm_medium=feed)

[Dec 31, 2025](https://hashnode.com/posts/duck-typing-in-ruby/6954a6e30fba953b08ffd0c1)
