Flow of Control (Control Flow)

Flow of control (control flow) Flow of control is an order which instructions, statements and function calls are executed/evavluted in imparative program. Flow of control might be sequential i.e. executing the statements one by one (smooth control flow), conditional where program executes specific blocks based on condition (e.g. jne in asm, if/else in most programming languages), repetative/loops like for, function calls and exceptional handling where program tries to recover from error or exceptions e.g. try/catch/finally block. There can be combination of two as well like using while or using break | continue | goto in a loops. ...

October 10, 2024 · 2 min · Jay Gandhi

Log in Apache Kafka

There are numerous articles discussing Apache Kafka[1], covering how companies utilize it, the problems it addresses, and how to create producers and consumers. Instead of diving into those topics right away (which I will certainly cover in future posts), let’s first explore its origins and what makes it faster than other messaging solutions. What is Log? The very first line of the Kafka paper[2 ] says Log processing has become a critical component of the data pipeline for consumer internet companies ...

July 7, 2023 · 4 min · Jay Gandhi

Notes on Write Amplification versus Read Perspiration

This was shared by one of the colleagues on Relog server on Discord. The discussion was about how log-structured based databases are not meant to have a 1:1 read per write ratio. There are various ways to tune the data structure to favor one over the other. You can read the original article from here . About Pat, He is one of the top publishers in different subject areas like distributed architecture, database transaction processing, etc. You can find the details of his latest research articles on his ACM profile page https://dl.acm.org/profile/81100628190 . Blockquotes in this post are the notes, I’ve picked from his article. ...

July 8, 2022 · 7 min · Jay Gandhi