Today, in the world of application development, it's recommended to separate the configuration from the code. Kubernetes' ConfigMaps helps us do this. Create a ConfigMap ConfigMap allows you to define key and values or a properties file that can be used either at startup of the pod, or as a mount on the pod. https://gist.github.com/anjanashankar9/25cd25e6cc0ecb46da948f1b9b6578fe Create a configmap … Continue reading What is a ConfigMap in Kubernetes?
Overview Causality is the relationship between a cause and effect. In distributed systems, ordering of events is challenging, as timestamps across nodes cannot be compared. This is where causality is useful in the distributed system. Causality and the happens-before relationship Let’s define an event as something happening at one node. This something can be either sending or receiving … Continue reading What is a causal inference?
What is a liveness probe? Liveness probes are used by the kubelet (kubernetes agent) to identify when to restart a container. The kubelet can identify a pod crash and restart the pod in such an event. However, at times, it may happen that the pod is alive but the application is in a state where … Continue reading How to use a liveness probe for applications on Kubernetes?
A zero trust network is exactly what its name implies, a completely untrusted network. It is also called permiterless security and provides five fundamental assertions on which to build the network: All the data sources and computing services are considered resources.All communication is secured, regardless of network location.Every device, user, and network flow is authenticated and authorized.Policies … Continue reading What is a Zero Trust Network?
I have discussed Singleton Pattern, Observer Pattern, Factory Pattern, Decorator Pattern, and Command Pattern in my previous posts. In this one I will be talking about the Builder Design Pattern. What is the Builder Design Pattern? Builder pattern helps us in creating an immutable class with a large set of state attributes. One of the popular methods of … Continue reading Builder Design Pattern – Implementation in Java
Golang has a built-in package called flag that enables one to parse command-line flags. The flag package allows you to define String, Bool, or Int flags. To be able to access the parameters passed as arguments to the command line execution of your program, three steps need to be completed. Define the flag.Bind the flag.Parse the flag. Syntax An example of how flag is used … Continue reading Parsing command-line flags in Go
What is a struct in Go? A struct or structure in Go is a user-defined type. It helps with composing different types into a single unit. https://gist.github.com/anjanashankar9/d427d0cfe225c01c7631afd71153bdf7 When can you compare two structures? In order to compare two structures, it is imperative that all struct field types are comparable. If the variables being compared belong to different structures, then you will see a … Continue reading Structure Equality in Golang
I have discussed Singleton Pattern, Observer Pattern, Factory Pattern and Decorator Pattern in my previous posts. In this one I will be talking about Command Design Pattern. What is a Command Pattern? Command Design Pattern is a pattern in which an object is used to represent and encapsulate all the information needed to call a method at a later … Continue reading Command Design Pattern – Implementation in Java
Role based access gives an entity the right to perform an action based on the role its assigned to. This entity can be a person or a machine. Roles are used for categorizing, authorizing, and authenticating. Role based access gives us two main advantages: There is no need for access keys.Role based access can be given … Continue reading Role-based access – AWS
Git submodules are a powerful way to use git as an external dependency management tool. It is basically a way to embed a repository into another. When you add a submodule in Git, the code of the submodule does not get added to the main repository, only certain information about the submodule does. It simply … Continue reading Git submodules