Recent posts

玩轉 Syslog 第一次就上手

category: random     6 minute read     Posted on:

Introduction to Syslog 任何運行中的系統都會有 Log,主要是為了方便除錯、監控以及分析等等的 可以說沒有 Log 的系統是沒有辦法運作的

神奇的演算法 - 分組的好朋友 Union Find

category: algorithm     3 minute read     Posted on:

Introduction to Union Find Disjoint Set 是一種資料結構,用來管理一組互不相交的集合(disjoint sets)。每個集合中的元素都是唯一的,且不同集合之間沒有共同的元素。

Kubernetes 從零開始 - Sidecar 與 Lifecycle Hook 組合技

category: kubernetes     8 minute read     Posted on:

Multiple Container in Pod 誠如我們之前在 Kubernetes 從零開始 - 容器基本抽象 Pod | Shawn Hsu 裡面提到的 Pod 本身其實可以執行多個 Container,只是說平常大家習慣是一個 Pod 一個 Container 而已

Webpack 如何解決 Node.js 動態載入 Cannot find module 的問題

category: random     1 minute read     Posted on:

JavaScript Dynamic Import 我公司最近遇到了一個需求是,我們需要有辦法 import 任一 JS 檔案 將其當作動態模組載入主程式當中運行

神奇的演算法 - Binary Search 到底怎麼寫才會對?

category: algorithm     4 minute read     Posted on:

Introduction to Binary Search 如果說,要在一串排序過後的陣列中,找尋特定的數值,二元搜尋絕對是最快的存在 憑藉著一次可以排除一半的可能性,使得二元搜尋的複雜度為 O(log n)

Kubernetes 從零開始 - Deployment 管理救星 Helm Chart

category: kubernetes     4 minute read     Posted on:

Preface 你應該有發現,Kubernetes 的佈署過程中你需要撰寫一定數量的 yaml 設定檔 不外乎是 application 的 deployment, 設定檔的 configmap, secret 等等 每次更新這些設定檔的時候,你都需要手動的去修改這些 yaml 檔案 這樣的過程是非常繁瑣且容易出...

神奇的演算法 - 為什麼你的 Priority Queue 那麼慢!

category: algorithm     4 minute read     Posted on:

Introduction to Priority Queue 針對需要存取一個陣列內,最大或最小值的方法,常見的第一直覺是 sorting 但每次存取每次排序顯然不好,於是有了 Priority Queue 這個資料結構

Kubernetes 從零開始 - Controller Pattern 以及其原理

category: kubernetes     4 minute read     Posted on:

Kubernetes Object Kubernetes object 並不是指 Pod 或者是 Deployment 這種 Resource 複習一下,Resource 是所有你可以透過 Kubernetes 使用的物件(操作 kubectl 或Kubernetes API) 而 object 是這些 Reso...

DevOps - 詳解 Mock 概念以及如何 Mock HTTP Request

category: devops     2 minute read     Posted on:

Test Double 雖然常常講要 mock 這個 mock 那個 不過人家的正式名稱是 Test double(測試替身)

Kubernetes 從零開始 - Self Healing 是如何運作的

category: kubernetes     3 minute read     Posted on:

Application Status 在 Kubernetes 中,一個應用程式的狀態是非常重要的 當一個應用程式不可用,造成的損失是巨大的