---
title: "hai nguyen (@haimeomeo) | Hashnode"
description: "hai nguyen (@haimeomeo) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@haimeomeo"
---

@haimeomeo

# hai nguyen

@haimeomeo · Joined January 2023

### [The Importance of Idempotent APIs](https://hainguyen.hashnode.dev/the-importance-of-idempotent-apis?utm_source=hashnode&utm_medium=feed)

Idempotence is a concept where clients receive the same response for multiple identical requests. With idempotence, calling endpoints multiple times results in the action happening only once. This is important because it ensures that if a client repe...

3 min read · [hainguyen.hashnode.dev](https://hainguyen.hashnode.dev/the-importance-of-idempotent-apis?utm_source=hashnode&utm_medium=feed)

[Jul 19, 2024](https://hashnode.com/posts/the-importance-of-idempotent-apis/669ab8c80f31d5ab4edb574b)

### [Understanding Consistent Hash Ring: A Simple Explanation](https://hainguyen.hashnode.dev/understanding-consistent-hash-ring-a-simple-explanation?utm_source=hashnode&utm_medium=feed)

Problem 1: We have a set of servers and need to distribute data and requests to those servers in a manageable, uniform way. If the data size increases (or the number of requests we need to serve increases), we can add or remove servers from the clust...

2 min read · [hainguyen.hashnode.dev](https://hainguyen.hashnode.dev/understanding-consistent-hash-ring-a-simple-explanation?utm_source=hashnode&utm_medium=feed)

[Jun 16, 2024](https://hashnode.com/posts/understanding-consistent-hash-ring-a-simple-explanation/666f19bdb4317b689b63dd29)

### [Understanding Python's Import Context](https://hainguyen.hashnode.dev/understanding-pythons-import-context?utm_source=hashnode&utm_medium=feed)

Importing modules in Python can be confusing. It works, but many people don't understand why it works. A typical scenario: We encounter a ModuleNotFoundError, search online, and eventually we find a workaround or a way to make it work, but we don't u...

2 min read · [hainguyen.hashnode.dev](https://hainguyen.hashnode.dev/understanding-pythons-import-context?utm_source=hashnode&utm_medium=feed)

[Jun 9, 2024](https://hashnode.com/posts/understanding-pythons-import-context/66655d285f7f56c8b56bc386)

### [Safety and Liveness in Distributed system](https://hainguyen.hashnode.dev/safety-and-liveness-in-distributed-system?utm_source=hashnode&utm_medium=feed)

Safety: Something that must never happen in a correct system. Liveness: Something that must eventually happen in a correct system.. We will use a banking system as an example in this article. Safety: We can't let users withdraw or transfer more money...

2 min read · [hainguyen.hashnode.dev](https://hainguyen.hashnode.dev/safety-and-liveness-in-distributed-system?utm_source=hashnode&utm_medium=feed)

[May 30, 2024](https://hashnode.com/posts/safety-and-liveness-in-distributed-system/665824a1883f6c52a4349924)

### [Traditional way to scaling Python](https://hainguyen.hashnode.dev/traditional-way-to-scaling-python?utm_source=hashnode&utm_medium=feed)

Some traditional methods to scale a Python program Threading Pros: Lightweight compared to processes Multiple threads can share memory (this can also be a downside) Cons: Python has a GIL, so it's not good for CPU-heavy tasks Sharing memory bet...

3 min read · [hainguyen.hashnode.dev](https://hainguyen.hashnode.dev/traditional-way-to-scaling-python?utm_source=hashnode&utm_medium=feed)

[May 20, 2024](https://hashnode.com/posts/traditional-way-to-scaling-python/664b7823580a008c79e8bb88)
