huanan.hashnode.devLeveraging CPython Built-ins for Better PerformanceBefore we begin, this article assumes you are using CPython, the default Python implementation. You can verify this by running: import sys print(sys.implementation.name) Typical outputs: cpython → CPython pypy → PyPy others → alternative implemen...Dec 14, 2025·5 min read
huanan.hashnode.devCAP Theorem and consistency levelsThe CAP Theorem is an observation of a distributed system. It states that a distributed system can only guarantee 2 out of 3 properties: Consistency, Availability and Partition Tolerance. CAP Consistency: Every read gets the latest write, or an erro...Aug 1, 2025·3 min read
huanan.hashnode.devMulti-threading vs Multi-ProcessingMulti-threading and multi-processing are two main ways we can achieve concurrency in an application. Concurrency allows us to execute tasks in parallel, which can help us increase throughput and/or reduce latency. For example, having multiple threads...May 25, 2025·4 min read
huanan.hashnode.devResolving cyclical dependency in SpringIn this article we will go over a few ways we can handle cyclical dependencies in Spring. Introduction First, let’s go over what cyclical dependencies are. Cyclical dependencies occur when a dependency of a bean is either directly or indirectly depen...Mar 25, 2025·2 min read
huanan.hashnode.devExactly-once processing in KafkaExactly-once processing in Kafka means each message is processed exactly one time — no duplicates or missed messages. However, implementing exactly-once is a difficult problem and strict guarantees are likely to come with severe performance trade-off...Oct 20, 2024·6 min read