Rohith
Creator of whiletrue.live.
The Go Channel Axioms
In Go, channels are a fundamental primitive for concurrent communication and synchronization between goroutines. There are several axioms that govern how channels work in Go
Posted May 13, 2023 by Rohith ‐ 2 min read
Dynamically Add Attributes to a Go Struct at Runtime
There are some workarounds to dynamically add attributes to a go struct at the Runtime. One way to achieve this is by using a map to store the attributes of a struct. Another way to achieve similar functionality is by using reflection.
Posted May 13, 2023 by Rohith ‐ 1 min read
Set Priority for Pods in K8s
In Kubernetes, you can set priorities for pods using the PriorityClass resource. PriorityClass is a resource that defines a mapping between a priority value and a set of pod specifications.
Posted May 6, 2023 by Rohith ‐ 2 min read
Role of K8s Controller Manager
The Controller Manager is a core component of the Kubernetes control plane that runs the controllers responsible for maintaining the desired state of the cluster.
Posted May 6, 2023 by Rohith ‐ 1 min read
Sharding vs Partitioning
Sharding and partitioning are both techniques used in database management to break up large databases into smaller, more manageable parts. However, there are some key differences between the two approaches