Study

Setup Kubernetes Cluster in AWS EC2 without using EKS

The simplest way to implement a Kubernetes cluster on AWS is to use the EKS (Elastic Kubernetes Service) managed service. However, it was found that EKS is expensive, with a starting price that is unrelated to EC2 compute costs, solely from EKS. To learn (save money), we will use bare EC2 instances to build a Kubernetes cluster and integrate ArgoCD to achieve CD (Continuous Deployment).

...

Understanding Matrix Determinant

The determinant has nothing to do with “equations”, it is a scalar.

The determinant is only applicable to square matrices, describing the volume of n n-dimensional vectors. For two dimensions, it is the area. A determinant of zero indicates that the matrix cannot span an n-dimensional space, at most n-1 dimensions, i.e., not full rank. So the volume is zero in n dimensions.

...

Collisions in Poisson Process

This is problem that you may encounter, and I found a simple way to calculate it. The result looks correct after comparing with the actual data. A website receives an average of 1000 requests per hour, and can only handle one at a time, taking 1 second. When a request arrives, if the previous one has not been completed, an error will occur. How many errors will occur on average in an hour?

...

Understanding Matrix Multiplication

Matrix multiplication has four cases, but essentially they are all vector operations.

  1. Vector dot product
  2. Matrix multiply vector (right multiply)
  3. Vector multiply matrix (left multiply)
  4. Matrix multiply matrix
...

Explain design patterns in one sentence

Most of these patterns have one thing in common, which is to connect producers and consumers through the interface. The abstraction of the interface is the key. It reflects a deep understanding of the underlying type. Knowing this can simply things, no matter what scenario we are dealing with, or what language is being used.

...