timerring

Sent Is Not Done: How Message Queues Really Work

November 5, 2026 · 39 min read
Tutorial
Message Queue | Kafka | RabbitMQ | RocketMQ

Message queues can be used for decoupling, asynchronous processing, and absorbing traffic spikes, but introducing them also means handling duplicate consumption, message loss, out-of-order processing, and backlogs. Knowing how to call the send and consume APIs is not enough to understand their role in a system.

This article starts with why to use MQ, then covers high availability, idempotency, reliable delivery, ordering, and backlog handling in sequence, before bringing these mechanisms together to examine message queue architecture design.

Read the full text -> A total of 7.86k words


Dual Investment: Where the Yield Comes From—and Who Bears the Risk

October 18, 2026 · 9 min read
Tutorial
Finance | Options

“If the price goes up, you earn USDT. If it goes down, you earn more crypto.”

It sounds as though you come out ahead whichever way the market moves. Add an advertised annualized return of several dozen percent—or more—and dual investment can look like a more productive alternative to simply holding crypto.

But there is a catch: owning more units of an asset does not necessarily mean your investment is worth more.

Read the full text -> A total of 1.97k words


Options 101: The Four Basic Positions Explained Through Gold

October 18, 2026 · 11 min read
Tutorial
Finance | Options

When you first encounter options, four terms come up again and again:

Buy a call. Sell a call. Buy a put. Sell a put.

These are not four unrelated strategies. They are combinations of two choices:

  • Are you trading a call or a put?
  • Are you buying it or selling it?

To understand these four basic positions, start with one idea: an option gives its buyer a right to transact in the future. Trading that right is different from buying or selling the asset itself.

Read the full text -> A total of 2.39k words


How Many Samples Does It Take to Trust a Batch?

October 12, 2026 · 7 min read
Tutorial
Statistics | Math

You have 1,000 items, but testing every one of them is expensive. How many should you randomly inspect: 10, 100, or half the batch?

There is no universal answer based on population size alone. As the NIST/SEMATECH e-Handbook explains[1], sample-size planning depends on the statistical objective and precision requirements. The useful question is: How many items do I need to estimate a proportion with a chosen level of precision? Under common assumptions, the answer is 278—not an arbitrary percentage of the batch.

Read the full text -> A total of 1.51k words


Vim Cheatsheet

January 13, 2026 · 4 min read
Cheatsheet
Vim | Linux

Vim is a powerful command-line text editor that’s been around for decades, and it’s still widely used today. Whether you’re SSH-ing into a remote server or just prefer the keyboard-centric workflow, Vim is often the go-to choice. The learning curve can be steep at first — I remember the first time I opened Vim and couldn’t even figure out how to quit. But once you get the hang of it, the efficiency gains are real. This cheatsheet covers the essentials I use most often, and I’m trying to condense them.

Read the full text -> A total of 0.81k words