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?
Author: Anjana Shankar
What is a Zero Trust Network?
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?
Builder Design Pattern – Implementation in Java
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
Parsing command-line flags in Go
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
Structure Equality in Golang
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
Command Design Pattern – Implementation in Java
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 – AWS
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
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
Decorator Design Pattern – Implementation in Java
I have discussed Singleton Pattern, Observer Pattern and Factory Pattern in my previous posts. In this one I will be talking about Decorator Design Pattern. What is a Decorator Pattern? The dictionary definition of the verb decorate is make (something) look more attractive by adding extra items to it. Keeping in line with this definition, … Continue reading Decorator Design Pattern – Implementation in Java
Iterating over a list in Java
Iterating over a list is one of the most common tasks that is required for writing any program. This post will focus on the different ways of iterating over a List in java. It will cover the aspects that should be considered while iterating over the list using a particular method. For all the examples … Continue reading Iterating over a list in Java
You must be logged in to post a comment.