All Blog Posts

Join me to stay up-to-date and get my new articles delivered to your inbox by subscribing here.

System Design Interview Topic: CAP Theorem - January 26, 2023

The CAP theorem, also known as Brewer’s theorem, states that it is impossible for a distributed computer system to simultaneously provide all three of the following guarantees: The CAP theorem states that a distributed system can only provide two of the three guarantees at any given time. This means that when designing a distributed system, […]

Read more

System Design Interview Topic: Consistency Patterns - January 26, 2023

Consistency patterns are a set of techniques used to ensure data consistency across distributed systems. They are used to ensure that data is consistent across multiple nodes in a distributed system and that any changes made to the data are propagated to all nodes in the system. There are several different types of consistency patterns, […]

Read more

System Design Interview Topic: Caching - January 26, 2023

Caching is a method of storing frequently-used data in an easily-retrievable format. It is used to improve the performance of applications by reducing the amount of data that must be retrieved from remote sources, such as databases or web services. A caching system typically consists of a cache server, which stores the data, and a […]

Read more

System Design Interview Topic: Availability - January 25, 2023

Availability is an important factor in system design, as it is the measure of how reliable a system is in providing services to its users. Availability is typically measured in terms of uptime, which is the amount of time a system is available to its users. Availability is a critical factor in system design, as […]

Read more

System Design Interview Topic: Load Balancers - January 25, 2023

Load balancers are a critical component of any distributed system, and understanding how they work is essential for any system design interview. Load balancers are used to distribute workloads across multiple computing resources, such as servers, in order to increase system performance and reliability. Load balancers are typically deployed in a network to provide a […]

Read more

Quotes from the TED talk: “Bren√© Brown – The power of vulnerability” - November 17, 2022

There was only one variable that separated the people who have a strong sense of love and belonging and the people who really struggle for it. And that was, the people who have a strong sense of love and belonging believe they’re worthy of love and belonging. That’s it. They believe they’re worthy. And to […]

Read more

Quotes from the TED talk: “Simon Sinek – How to discover your WHY in difficult times” - November 14, 2022

We can compartmentalize our emotions for only a short period of time, but no one, no one escapes the trauma of combat. You may not even experience the trauma while you’re in it, you may not experience it when you first come home, and you may experience it months later. What comes out of COVID, […]

Read more

Random Graph & Tree Generator - November 13, 2022

Introduction This generator class provides methods for creating various graphs, including Erdos-Renyi random graphs, random bipartite graphs, random k-regular graphs, and random rooted trees. There is also a dependency on the Undirected Graphs class. Functions simple Returns a random simple graph containing V vertices and E edges. simple_erdos_renyi Returns a random simple graph on V […]

Read more

Undirected Graphs - November 12, 2022

An excerpt from the book Algorithms (4th Edition) by Robert Sedgewick and Kevin Wayne. And I also added a python implementation. Definitions Graph Representation Alternatives We have 2 basic requirements to choose the best graph representation (data structure) to use. Adjacency Matrix We maintain a V-by-V boolean array, with the entry in row v and […]

Read more

Quotes from the TED talk: “Amy Cuddy – Your body language may shape who you are” - November 6, 2022

Our nonverbals govern how other people think and feel about us. Our nonverbals govern how we think and feel about ourselves. Our mind changes our bodies. Our bodies change our minds and our minds change our behaviour and our behaviour changes our outcomes. Power is also about how you react to stress.¬† Both that the […]

Read more

1 2 3 4 5 8