Join me to stay up-to-date and get my new articles delivered to your inbox by subscribing here.
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, […]
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, […]
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 […]
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 […]
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 […]
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 […]
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, […]
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 […]
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 […]
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 […]