<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bill.Lin&#39;s Notes</title><link>https://bill-lin.dev/</link><description>Recent content in Bill.Lin&#39;s Notes</description><language>zh-tw</language><lastBuildDate>Mon, 23 Nov 2026 00:00:00 GMT</lastBuildDate><atom:link href="https://bill-lin.dev/index.xml" rel="self" type="application/rss+xml"/><item><title>濫用防護：對付會調整策略的對手，讓黃牛、撞庫與假帳號無利可圖</title><link>https://bill-lin.dev/post/systemdesign/abuse-prevention/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/abuse-prevention/</guid><description>System Design 系列 Part 8：面對黃牛、撞庫、假帳號與簡訊灌量這類會調整策略的對手，說明多維度限流、依風險加強驗證、抽籤等流程設計，以及偵測與應變的循環</description></item><item><title>身分驗證：Session、Token 與 OAuth 2.0／OIDC，登入狀態該放在哪裡</title><link>https://bill-lin.dev/post/systemdesign/authentication-session-token-oidc/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/authentication-session-token-oidc/</guid><description>System Design 系列 Part 8：比較 session 與 token 的撤銷與擴充代價，說明 OAuth 2.0 與 OIDC 的授權碼流程、PKCE、瀏覽器應用的 BFF、密碼與 passkey，以及常見的攻擊情境</description></item><item><title>授權模型與 OWASP API Top 10：通過登入之後，還能做什麼</title><link>https://bill-lin.dev/post/systemdesign/authorization-owasp-api-top10/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/authorization-owasp-api-top10/</guid><description>System Design 系列 Part 8：區分功能、物件與屬性三層授權，比較 RBAC、ABAC 與 ReBAC，說明授權檢查放在哪一層、BOLA 與 SSRF 的防禦，並對照 OWASP API Security Top 10</description></item><item><title>Batch 與 Stream：月結報表與即時熱門榜，兩種處理資料的方式</title><link>https://bill-lin.dev/post/systemdesign/batch-vs-stream/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/batch-vs-stream/</guid><description>System Design 系列 Part 7：比較批次與串流處理，說明可重啟的分塊批次、事件時間、視窗與遲到資料、Lambda 與 Kappa 架構，並用 Spring Batch 與 Kafka Streams 落地</description></item><item><title>實戰題：設計聊天系統，私訊與五萬人直播聊天室是兩個不同的問題</title><link>https://bill-lin.dev/post/systemdesign/chat-system/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/chat-system/</guid><description>System Design 系列 Part 9：設計講座平台的私訊與直播聊天室，說明每個對話的序號、用戶端訊息 ID 去重、離線同步與未讀數、跨伺服器投遞、大型聊天室的批次推送，以及聊天的威脅模型</description></item><item><title>CI/CD 與部署策略：新舊版本會同時在線上，變更要為此而設計</title><link>https://bill-lin.dev/post/systemdesign/cicd-deployment/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/cicd-deployment/</guid><description>System Design 系列 Part 10：說明建置一次、逐環境推進的 pipeline，比較滾動、藍綠、金絲雀部署，以 expand–contract 處理新舊版本共存的資料表變更，並以自動分析、功能開關與供應鏈防護讓部署可以回退</description></item><item><title>實戰題：設計分散式排程，一百萬個延遲任務要在對的時間只做一次</title><link>https://bill-lin.dev/post/systemdesign/distributed-scheduler/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/distributed-scheduler/</guid><description>System Design 系列 Part 9：設計付款期限、講座提醒與延後通知這類延遲任務的排程，用 SKIP LOCKED 讓多台機器分批取得任務，說明租約與取得識別、重試、集中到期的抖動、週期性工作的錯過策略與威脅模型</description></item><item><title>傳輸與資料加密及 Secrets 管理：加密保護的範圍，取決於誰拿得到金鑰</title><link>https://bill-lin.dev/post/systemdesign/encryption-secrets/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/encryption-secrets/</guid><description>System Design 系列 Part 8：比較傳輸加密、儲存層加密與應用層欄位加密各自擋得住什麼，說明信封加密、AEAD 與金鑰輪替，以及資料庫密碼與 API key 等 secrets 的管理方式</description></item><item><title>實戰題：秒殺搶票，五十萬人搶一萬個名額時，每一層要擋掉多少</title><link>https://bill-lin.dev/post/systemdesign/flash-sale-ticketing/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/flash-sale-ticketing/</guid><description>System Design 系列 Part 9：把系列導讀的報名系統放大到秒殺等級，用 CDN、虛擬等候室、Redis 預扣與非同步落庫逐層削減流量，並以資料庫作為不超賣的最後防線，附威脅模型</description></item><item><title>BOLA 穿過 BFF 之後：微服務之間怎麼傳遞「誰在呼叫、代表誰」</title><link>https://bill-lin.dev/post/systemdesign/identity-propagation/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/identity-propagation/</guid><description>System Design 系列 Part 8：請求進入內部服務後，如何用 mTLS 證明是哪個服務在呼叫，用 token exchange 與 Transaction Token 傳遞使用者身分，並避免 confused deputy</description></item><item><title>實戰題：設計排行榜，一千萬人的名次、同分的先後與熱門講座的時間衰減</title><link>https://bill-lin.dev/post/systemdesign/leaderboard/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/leaderboard/</guid><description>System Design 系列 Part 9：用 Redis sorted set 設計一千萬名會員的學習積分週榜，說明同分依先達成者排序的分數編碼、積分帳本與冪等更新、從帳本重建，以及熱門講座的分桶與時間衰減</description></item><item><title>實戰題：設計動態牆，推、拉與名人問題</title><link>https://bill-lin.dev/post/systemdesign/news-feed/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/news-feed/</guid><description>System Design 系列 Part 9：設計追蹤講者的動態牆，估算寫入時擴散與讀取時合併的成本，以混合策略處理百萬粉絲的名人，說明時間軸的儲存、游標分頁、讀取時的可見性檢查與威脅模型</description></item><item><title>實戰題：設計通知系統，驗證碼不能排在一千萬封電子報後面</title><link>https://bill-lin.dev/post/systemdesign/notification-system/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/notification-system/</guid><description>System Design 系列 Part 9：設計多管道的通知系統，說明依優先順序隔離佇列與寄件網域、去重與狀態機、使用者偏好與勿擾時段、失效的推播 token 與退信處理、一鍵退訂，以及通知的威脅模型</description></item><item><title>Saga 與 Outbox：沒有分散式交易時，跨服務的流程怎麼保持一致</title><link>https://bill-lin.dev/post/systemdesign/saga-outbox/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/saga-outbox/</guid><description>System Design 系列 Part 7：用 Saga 取代跨服務的分散式交易，比較協同式與編排式，說明補償、樞紐交易、缺少隔離造成的異常與逾時，並用 Outbox 確保每一步可靠送出</description></item><item><title>Service Discovery：服務怎麼找到彼此，以及實例消失時會發生什麼事</title><link>https://bill-lin.dev/post/systemdesign/service-discovery/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/service-discovery/</guid><description>System Design 系列 Part 7：比較 client-side、server-side、DNS 與 service mesh 服務發現，說明註冊、健康檢查、過期資料與 Kubernetes 的下線時序，以及註冊表被冒用的風險</description></item><item><title>大規模系統的測試：端對端測試撐不起三十個服務</title><link>https://bill-lin.dev/post/systemdesign/testing-at-scale/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/testing-at-scale/</guid><description>System Design 系列 Part 10：三十個服務時端對端測試為何不夠用，說明以真實依賴做整合測試、服務與事件的契約測試、開放模型的負載測試與協同遺漏、故障注入與演練，以及授權的回歸測試</description></item><item><title>實戰題：設計一個短網址服務，從估算、產生代碼到被拿來釣魚</title><link>https://bill-lin.dev/post/systemdesign/url-shortener/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/url-shortener/</guid><description>System Design 系列 Part 9：從容量估算開始設計短網址服務，比較代碼產生方式、301 與 302、快取與點擊統計的寫入路徑、跨區域的複寫延遲，並以 STRIDE 分析釣魚與列舉的威脅</description></item><item><title>Bloom Filter 與 HyperLogLog：用一點誤差換大量記憶體，以及估計值被刻意操縱時怎麼辦</title><link>https://bill-lin.dev/post/systemdesign/bloom-filter-hyperloglog/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/bloom-filter-hyperloglog/</guid><description>System Design 系列 Part 3：實測 Bloom filter 的誤判率與容量的關係、HyperLogLog 的估計誤差與合併，用它們擋下快取穿透、計算不重複訪客，並示範攻擊者如何利用公開雜湊灌水估計值</description></item><item><title>B-Tree vs LSM-Tree：原地更新與只追加，寫入、讀取與空間放大的取捨</title><link>https://bill-lin.dev/post/systemdesign/btree-vs-lsm/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/btree-vs-lsm/</guid><description>System Design 系列 Part 3：比較 B+Tree 原地更新與 LSM-Tree 只追加寫入，用模擬看 tiering 與 leveling 的三種放大，並說明 tombstone 陷阱與刪除不等於抹除</description></item><item><title>Cache 深入：命中率的數學、寫入順序的競態、穿透擊穿雪崩與多層快取</title><link>https://bill-lin.dev/post/systemdesign/caching/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/caching/</guid><description>System Design 系列 Part 2：從命中率的數學出發，分析 cache-aside 寫入順序的競態、穿透擊穿雪崩的成因與對策、熱 key 與多層快取，並用 Spring Cache、Caffeine、Redis 實作提交後失效</description></item><item><title>CAP 與 PACELC：斷線時選一致還是可用，沒斷線時選延遲還是一致</title><link>https://bill-lin.dev/post/systemdesign/cap-pacelc/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/cap-pacelc/</guid><description>System Design 系列 Part 4：釐清 CAP 與 PACELC 真正的取捨，模擬跨機房 quorum 的延遲、過時讀取與斷線表現，用 Cassandra 依功能選擇一致性等級，並處理分割期間的授權問題</description></item><item><title>CDN 與 HTTP 快取：Cache-Control、版本化資源、邊緣快取與快取攻擊</title><link>https://bill-lin.dev/post/systemdesign/cdn/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/cdn/</guid><description>System Design 系列 Part 2：CDN 如何縮短延遲並分擔 origin 頻寬，拆解 Cache-Control、ETag 與 304、版本化資源與 API 微快取，並防範快取欺騙與快取汙染攻擊</description></item><item><title>Circuit Breaker 與 Bulkhead：讓一個壞掉的下游不會拖垮整個系統</title><link>https://bill-lin.dev/post/systemdesign/circuit-breaker-bulkhead/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/circuit-breaker-bulkhead/</guid><description>System Design 系列 Part 6：用 circuit breaker 讓故障的下游快速失敗並設計降級，用 bulkhead 隔離資源避免連鎖故障，並以 Resilience4j 與 @ConcurrencyLimit 落地</description></item><item><title>共識與 Raft：選舉、log 複製、讀取一致性，以及用 etcd 做 leader election</title><link>https://bill-lin.dev/post/systemdesign/consensus-raft/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/consensus-raft/</guid><description>System Design 系列 Part 4：拆解 Raft 的選舉、log 複製與安全性，說明多數決、linearizable 讀取與成員變更的取捨，並用 etcd 讓排程只在一台執行，處理失去 leadership 的情況</description></item><item><title>Consistent Hashing：增減節點只搬 1/N、虛擬節點與 rendezvous hashing，以及被刻意挑選的 key</title><link>https://bill-lin.dev/post/systemdesign/consistent-hashing/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/consistent-hashing/</guid><description>System Design 系列 Part 4：實測 hash ring、虛擬節點與 rendezvous hashing 在增減節點時的搬移量與負載，用 Guava 實作快取路由與工作分配，並示範挑選 key 壓垮單一節點的攻擊</description></item><item><title>分散式 ID：UUIDv7、Snowflake 與號段模式，主鍵的排序、大小與洩漏的資訊</title><link>https://bill-lin.dev/post/systemdesign/distributed-id/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/distributed-id/</guid><description>System Design 系列 Part 4：實測隨機與時間有序主鍵對 B+Tree 的影響，比較 UUIDv7、Snowflake 與號段模式的取捨，並示範公開的 ID 會洩漏多少業務量與時間資訊</description></item><item><title>分散式鎖與 Fencing Token：鎖會過期，持有者卻不知道</title><link>https://bill-lin.dev/post/systemdesign/distributed-lock/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/distributed-lock/</guid><description>System Design 系列 Part 4：分析租約型分散式鎖在 GC 停頓與 failover 下為何失效，比較 Redis、Redlock、資料庫與 etcd 的做法，並用 fencing token 與冪等鍵保護不能重複的撥款</description></item><item><title>全文搜尋與倒排索引：中文斷詞、BM25 排序、索引同步與搜尋的授權邊界</title><link>https://bill-lin.dev/post/systemdesign/full-text-search/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/full-text-search/</guid><description>System Design 系列 Part 3：從 LIKE 的極限出發，實作倒排索引說明中文 bigram 的陷阱與 BM25 排序，比較 MySQL FULLTEXT 與 Elasticsearch，並處理索引同步與搜尋的授權問題</description></item><item><title>Geohash 與地理索引：附近搜尋的格子邊界、Redis GEO，以及距離如何洩漏位置</title><link>https://bill-lin.dev/post/systemdesign/geohash/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/geohash/</guid><description>System Design 系列 Part 3：用 Geohash 把經緯度變成 B+Tree 能查的字串，實測格子邊界與 9 格查詢，比較 Redis GEO、MySQL SPATIAL 與 H3，並示範如何只靠距離回應三角定位使用者</description></item><item><title>冪等性與 Idempotency Key：讓重試變得安全</title><link>https://bill-lin.dev/post/systemdesign/idempotency-key/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/idempotency-key/</guid><description>System Design 系列 Part 5：說明重試為何造成重複報名與重複扣款，比較唯一鍵、條件式更新與 Idempotency-Key，處理並行請求、請求指紋、保存期限與 key 的範圍等安全問題</description></item><item><title>Index 與 B+Tree：從磁碟頁面到複合索引、索引失效與 keyset 分頁</title><link>https://bill-lin.dev/post/systemdesign/index-btree/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/index-btree/</guid><description>System Design 系列 Part 3：從磁碟頁面說明 B+Tree 為何只要三層就能裝下上億筆資料，拆解聚簇與次要索引、複合索引的最左前綴、常見的索引失效寫法、索引的寫入代價與 keyset 分頁</description></item><item><title>Latency、Throughput 與 p99：別再看平均值，用 Little&#39;s Law 算出執行緒與連線池</title><link>https://bill-lin.dev/post/systemdesign/latency-throughput/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/latency-throughput/</guid><description>System Design 系列 Part 1：說明 latency、throughput 與百分位數，平均值為何會騙人、扇出如何放大長尾、使用率為何不能拉滿，並用 Little&#39;s Law 推算執行緒與連線池</description></item><item><title>Load Balancing 深入：L4 與 L7、演算法、健康檢查與連線排空</title><link>https://bill-lin.dev/post/systemdesign/load-balancing/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/load-balancing/</guid><description>System Design 系列 Part 2：比較 L4 與 L7，用模擬看 Round Robin、P2C、Least Outstanding 遇到慢節點的差異，設計不會連鎖故障的健康檢查，處理 keep-alive 與連線排空</description></item><item><title>Message Queue：解耦、削峰與重試，以及訊息一定會重複這件事</title><link>https://bill-lin.dev/post/systemdesign/message-queue/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/message-queue/</guid><description>System Design 系列 Part 5：用 Message Queue 解耦、削峰與重試，說明 ack 與重複投遞、毒訊息與 DLQ、順序與雙寫問題，並用 RabbitMQ quorum queue 與 Spring AMQP 落地</description></item><item><title>單體 vs 微服務：先切對邊界，再決定要不要拆</title><link>https://bill-lin.dev/post/systemdesign/monolith-vs-microservices/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/monolith-vs-microservices/</guid><description>System Design 系列 Part 7：比較單體、模組化單體與微服務的代價，說明依業務能力劃分邊界、資料所有權與分散式單體的徵兆，並用 Spring Modulith 落地</description></item><item><title>Napkin Math 容量估算：用延遲數字與乘除法，算出要幾台機器、多少儲存</title><link>https://bill-lin.dev/post/systemdesign/napkin-math/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/napkin-math/</guid><description>System Design 系列 Part 1：整理估算必備的換算與延遲數字，示範從日活躍使用者推算尖峰 QPS、機器數、資料庫儲存與頻寬，判斷要不要分散式，附可直接執行的 Java 估算程式與常見錯誤</description></item><item><title>檔案與物件儲存：Block、File、Object 的取捨，multipart 直傳、metadata 一致性與上傳安全</title><link>https://bill-lin.dev/post/systemdesign/object-storage/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/object-storage/</guid><description>System Design 系列 Part 3：比較 block、file、object 三種儲存，拆解物件儲存的擴展方式與 multipart 直傳，處理資料庫與檔案之間沒有交易的一致性問題，並整理上傳檔案的安全檢查</description></item><item><title>Observability：metrics、log、trace 與 SLO，從「好像變慢了」到找出原因</title><link>https://bill-lin.dev/post/systemdesign/observability/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/observability/</guid><description>System Design 系列 Part 6：用 metrics、log 與 trace 找出系統哪裡出問題，說明基數爆炸、取樣、SLO 與燃燒率告警，以及稽核紀錄與遙測資料的資安風險</description></item><item><title>Pub/Sub 與投遞語意：Kafka 的分區、消費群組，以及 exactly-once 到底保證了什麼</title><link>https://bill-lin.dev/post/systemdesign/pubsub-delivery-semantics/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/pubsub-delivery-semantics/</guid><description>System Design 系列 Part 5：比較 RabbitMQ 與 Kafka 的 Pub/Sub 模型，釐清 at-least-once 與 exactly-once 的意義，說明分區順序、消費群組與 DLT，並用冪等消費者落地</description></item><item><title>Rate Limiting：限流演算法、分散式限流，以及限流和降載的差別</title><link>https://bill-lin.dev/post/systemdesign/rate-limiting/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/rate-limiting/</guid><description>System Design 系列 Part 6：比較固定視窗、滑動視窗與 token bucket，說明分散式限流、限流的 key 與 429 回應，區分限流與降載，並用 Redis Lua script 落地</description></item><item><title>即時更新：輪詢、長輪詢、SSE 與 WebSocket 怎麼選，以及多台伺服器怎麼推播</title><link>https://bill-lin.dev/post/systemdesign/realtime-updates/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/realtime-updates/</guid><description>System Design 系列 Part 5：比較輪詢、長輪詢、SSE 與 WebSocket，說明多台伺服器的推播扇出、合併更新與重連漏接，並處理 WebSocket 的來源檢查與逐則授權</description></item><item><title>備援、故障轉移與災難復原：從可用性數字到還原演練</title><link>https://bill-lin.dev/post/systemdesign/redundancy-failover-dr/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/redundancy-failover-dr/</guid><description>System Design 系列 Part 6：用可用性數字與 RPO、RTO 設計備援，拆解故障轉移的偵測、決策、提升與轉向，說明複寫為何不是備份，以及還原演練與防範勒索軟體</description></item><item><title>Replication 與 Replication Lag：讀寫分離之後，使用者為什麼讀不到自己剛寫的資料</title><link>https://bill-lin.dev/post/systemdesign/replication-lag/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/replication-lag/</guid><description>System Design 系列 Part 4：模擬 replica 延遲尖峰下四種讀取路由的一致性，用 Spring 做讀寫分離、以 GTID 實作 read-your-writes，並處理權限檢查讀到舊資料的風險</description></item><item><title>一個 HTTP Request 的旅程：DNS、TCP、TLS、Load Balancer 到資料庫的每一段耗時</title><link>https://bill-lin.dev/post/systemdesign/request-lifecycle/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/request-lifecycle/</guid><description>System Design 系列 Part 1：拆解 HTTPS 請求經過 DNS、TCP 與 TLS 握手、LB、Spring Boot 到 MySQL 的每段耗時，說明跨區延遲為何救不回來，並實際量測與最佳化</description></item><item><title>REST、gRPC 與 GraphQL：依呼叫者選擇 API 風格</title><link>https://bill-lin.dev/post/systemdesign/rest-grpc-graphql/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/rest-grpc-graphql/</guid><description>System Design 系列 Part 5：比較 REST、gRPC 與 GraphQL 的契約、快取、串流與除錯成本，依呼叫者選擇 API 風格，並處理 deadline、N+1 查詢與查詢深度限制等效能與安全問題</description></item><item><title>垂直擴展、水平擴展與無狀態服務：Session、檔案、排程與本機狀態該搬去哪裡</title><link>https://bill-lin.dev/post/systemdesign/scaling-stateless/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/scaling-stateless/</guid><description>System Design 系列 Part 2：比較垂直與水平擴展，盤點藏在應用程式裡的狀態，用 Spring Session、ShedLock、S3 presigned URL 與優雅關機改造成可任意增減的無狀態服務</description></item><item><title>Sharding：shard key 怎麼選、重新分片怎麼搬，以及跨分片之後失去的東西</title><link>https://bill-lin.dev/post/systemdesign/sharding/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/sharding/</guid><description>System Design 系列 Part 4：實測三種 shard key 的資料分布、重新分片要搬多少資料與跨分片查詢的尾端延遲，用 Spring 實作依講座分片的報名與 outbox 索引表，並處理多租戶隔離與熱點攻擊</description></item><item><title>SQL vs NoSQL：從存取模式選資料庫，而不是從名詞</title><link>https://bill-lin.dev/post/systemdesign/sql-vs-nosql/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/sql-vs-nosql/</guid><description>System Design 系列 Part 3：拆解關聯式、Key-Value、文件、寬欄、圖形資料庫的資料模型與取捨，說明 NoSQL 快在哪裡、代價是什麼，並示範用 MySQL JSON 欄位與分區表延後引入新資料庫</description></item><item><title>系統設計怎麼想：從需求釐清、估算到 Trade-off 與 HLD/LLD</title><link>https://bill-lin.dev/post/systemdesign/system-design-thinking/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/system-design-thinking/</guid><description>System Design 系列導讀：用活動報名系統示範如何釐清功能與非功能需求、粗估流量、找出真正的瓶頸、比較方案取捨並寫成 ADR，也說明 HLD 與 LLD 的分工，附系列地圖</description></item><item><title>Timeout、Retry、Backoff 與 Jitter：重試怎麼救系統，又怎麼壓垮系統</title><link>https://bill-lin.dev/post/systemdesign/timeout-retry-backoff/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/timeout-retry-backoff/</guid><description>System Design 系列 Part 6：設定逾時與逾時預算，判斷哪些錯誤可以重試，用指數退避、jitter 與重試預算避免重試風暴，並用 Spring Framework 7 的 @Retryable 落地</description></item><item><title>交易與隔離等級：MVCC、Lost Update、Write Skew 與 Spring 的交易邊界</title><link>https://bill-lin.dev/post/systemdesign/transaction-isolation/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/systemdesign/transaction-isolation/</guid><description>System Design 系列 Part 3：以活動報名實測 lost update 與 write skew，比較條件式 UPDATE、悲觀鎖、樂觀鎖與唯一約束，並說明各資料庫隔離等級的差異與 Spring 交易邊界</description></item><item><title>grep — 文字搜尋、正規表達式與 Log 排查命令列指南</title><link>https://bill-lin.dev/post/cli/grep/</link><pubDate>Sun, 01 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/cli/grep/</guid><description>grep 完整指令筆記：-i -v -w -o -c 等常用旗標、前後文與遞迴搜尋、BRE/ERE/PCRE 正規表達式、macOS BSD 與 GNU grep 差異，以及 Log 排查實戰</description></item><item><title>網頁憑證信任圖解：TLS 握手、憑證鏈、Trust Store 到 openssl 排錯</title><link>https://bill-lin.dev/post/security/web-certificate-trust/</link><pubDate>Sun, 01 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/security/web-certificate-trust/</guid><description>圖解網頁憑證信任：TLS 1.3 握手、X.509、憑證鏈與 Root CA、trust store、wildcard/SAN、防火牆 SSL inspection、HSTS、過期續約，附 openssl 與 Java 實測排錯</description></item><item><title>openssl — 憑證、加密與 TLS 除錯命令列指南</title><link>https://bill-lin.dev/post/cli/openssl/</link><pubDate>Sun, 23 Aug 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/cli/openssl/</guid><description>openssl 完整指令筆記：macOS LibreSSL 與 Homebrew OpenSSL 差異、憑證與金鑰操作、TLS 連線除錯、加密雜湊亂數與格式轉換實戰</description></item><item><title>Cloudflare Turnstile 實戰：Vue 3 + Spring Boot 雙端整合</title><link>https://bill-lin.dev/post/security/cloudflare-turnstile-vue-spring-boot/</link><pubDate>Tue, 28 Apr 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/security/cloudflare-turnstile-vue-spring-boot/</guid><description>Cloudflare Turnstile 雙端整合筆記：Vue 3 widget 兩種寫法、Spring Boot siteverify 手寫對照套件，涵蓋 action 防重放、idempotency_key 重試、hostname 安全鎖與完整 error-codes 速查。</description></item><item><title>最短路三兄弟：Dijkstra / Bellman-Ford / Floyd-Warshall</title><link>https://bill-lin.dev/post/algorithm/dijkstra-bellman-floyd/</link><pubDate>Mon, 15 Jan 2024 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/algorithm/dijkstra-bellman-floyd/</guid><description>帶實作程式碼深入比較 Dijkstra、Bellman-Ford、Floyd-Warshall 三種最短路演算法的原理、複雜度與適用場景</description></item><item><title>動態規劃入門模板：背包、LIS、編輯距離</title><link>https://bill-lin.dev/post/algorithm/dp-templates/</link><pubDate>Mon, 15 Jan 2024 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/algorithm/dp-templates/</guid><description>從 0/1 背包、完全背包到 LIS 與編輯距離，拆解 DP 三要素並提供可直接套用的 Java 模板與 LeetCode 對應題</description></item><item><title>六角形架構（Ports &amp; Adapters）實戰</title><link>https://bill-lin.dev/post/architecture/hexagonal-architecture/</link><pubDate>Mon, 15 Jan 2024 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/architecture/hexagonal-architecture/</guid><description>以 Spring Boot 為例，實作六角形架構的 Domain、Application、Infrastructure 三層分離，解釋為何要分開 JPA Entity 與 Domain Entity</description></item><item><title>Outbox Pattern — 分散式事務一致性</title><link>https://bill-lin.dev/post/architecture/outbox-pattern/</link><pubDate>Mon, 15 Jan 2024 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/architecture/outbox-pattern/</guid><description>解析分散式 Dual-Write 問題，實作 Outbox Pattern 的 Polling 與 Debezium CDC 兩種方式，以及 Spring Modulith 內建支援</description></item><item><title>jq — 命令列 JSON 處理</title><link>https://bill-lin.dev/post/cli/jq/</link><pubDate>Mon, 15 Jan 2024 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/cli/jq/</guid><description>jq 完整使用指南：從基本過濾器到 map、select、string interpolation，以及 CI/CD 實戰範例與常見陷阱</description></item><item><title>Docker Compose V2 遷移指南</title><link>https://bill-lin.dev/post/container/docker-compose-v2-migration/</link><pubDate>Mon, 15 Jan 2024 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/container/docker-compose-v2-migration/</guid><description>Docker Compose V1 到 V2 的差異對照、version 欄位廢棄原因、depends_on 健康檢查與 compose watch 熱更新實戰</description></item><item><title>Dockerfile 進階多階段建構</title><link>https://bill-lin.dev/post/container/multi-stage-build-advanced/</link><pubDate>Mon, 15 Jan 2024 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/container/multi-stage-build-advanced/</guid><description>Dockerfile cache mount 加速建構、secret mount 防洩漏、distroless 與 jlink 最小化 JRE，以及 ARG vs ENV 的差異</description></item><item><title>HikariCP 連線池調校</title><link>https://bill-lin.dev/post/database/hikaricp-tuning/</link><pubDate>Mon, 15 Jan 2024 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/database/hikaricp-tuning/</guid><description>HikariCP 核心參數公式推導、max-lifetime 與 MySQL wait_timeout 的關係，以及洩漏偵測與 Actuator 監控設定</description></item><item><title>JPA N+1 偵測與解法</title><link>https://bill-lin.dev/post/database/jpa-n-plus-1/</link><pubDate>Mon, 15 Jan 2024 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/database/jpa-n-plus-1/</guid><description>深入解析 JPA N+1 問題的成因、偵測方式，以及 JOIN FETCH、EntityGraph、BatchSize 三種解法的適用時機</description></item><item><title>Spring Boot 3 + Virtual Threads 實戰</title><link>https://bill-lin.dev/post/spring/spring-virtual-threads/</link><pubDate>Mon, 15 Jan 2024 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/post/spring/spring-virtual-threads/</guid><description>深入解析 Project Loom Virtual Threads 原理，Spring Boot 3.2 啟用方式、Pinning 問題與 ThreadLocal 陷阱的實戰指南</description></item><item><title>FTP 工具類實作指南：安全、可靠的檔案傳輸解決方案</title><link>https://bill-lin.dev/post/java/ftp-utility/</link><pubDate>Thu, 05 Jan 2023 15:45:46 GMT</pubDate><guid>https://bill-lin.dev/post/java/ftp-utility/</guid><description>完整的 FTP 工具類實作指南，包含連線池管理、安全配置、錯誤處理與最佳實踐</description></item><item><title>JPA Enum 型別處理完整指南：映射策略與最佳實踐</title><link>https://bill-lin.dev/post/database/jpa-enum-mapping/</link><pubDate>Thu, 05 Jan 2023 15:18:48 GMT</pubDate><guid>https://bill-lin.dev/post/database/jpa-enum-mapping/</guid><description>深入探討 JPA 中 Enum 型別的各種映射策略、自訂轉換器、效能優化與最佳實踐</description></item><item><title>Xargs 命令完整指南：Linux 參數處理與並行執行的強大工具</title><link>https://bill-lin.dev/post/cli/xargs/</link><pubDate>Wed, 02 Nov 2022 15:05:25 GMT</pubDate><guid>https://bill-lin.dev/post/cli/xargs/</guid><description>深入解析 xargs 命令的完整用法，包含參數處理、並行執行、管道組合與實戰應用場景</description></item><item><title>Find 命令完整指南：Linux 檔案搜尋與管理的瑞士軍刀</title><link>https://bill-lin.dev/post/cli/find/</link><pubDate>Tue, 01 Nov 2022 13:59:56 GMT</pubDate><guid>https://bill-lin.dev/post/cli/find/</guid><description>深入解析 Linux find 命令的完整用法，包含檔案搜尋、條件過濾、批次操作與實戰應用場景</description></item><item><title>Ubuntu 系統管理完整指南：Linux 入門到進階實戰</title><link>https://bill-lin.dev/post/linux/ubuntu-server-setup/</link><pubDate>Fri, 28 Oct 2022 16:10:56 GMT</pubDate><guid>https://bill-lin.dev/post/linux/ubuntu-server-setup/</guid><description>深入解析 Ubuntu 系統的完整使用方法，包含安裝配置、套件管理、系統維護與 Docker 容器化應用</description></item><item><title>Java TreeSet 完整實作指南：紅黑樹有序集合與 NavigableSet 介面詳解</title><link>https://bill-lin.dev/post/java/tree-set/</link><pubDate>Sat, 01 Oct 2022 16:48:01 GMT</pubDate><guid>https://bill-lin.dev/post/java/tree-set/</guid><description>深入探討 Java TreeSet 的完整實作指南，包含紅黑樹內部結構、NavigableSet 介面、排序機制、效能分析與企業級應用最佳實踐</description></item><item><title>Shell 檔案與字串表達式詳解</title><link>https://bill-lin.dev/post/cli/shell-test-operators/</link><pubDate>Sat, 01 Oct 2022 13:25:56 GMT</pubDate><guid>https://bill-lin.dev/post/cli/shell-test-operators/</guid><description>本文提供 Shell Script 中常用的檔案、目錄及字串測試表達式，包含語法說明與實用範例，幫助您更有效地撰寫腳本。</description></item><item><title>鏈表反轉（Reverse Linked List）完整解析</title><link>https://bill-lin.dev/post/algorithm/reverse-linked-list/</link><pubDate>Wed, 28 Sep 2022 13:19:26 GMT</pubDate><guid>https://bill-lin.dev/post/algorithm/reverse-linked-list/</guid><description>深入探討鏈表反轉的多種實作方式，包含迭代、遞歸方法以及區間反轉等進階應用</description></item><item><title>並查集（Union-Find）演算法完整指南</title><link>https://bill-lin.dev/post/algorithm/union-find/</link><pubDate>Mon, 26 Sep 2022 14:15:44 GMT</pubDate><guid>https://bill-lin.dev/post/algorithm/union-find/</guid><description>深入探討並查集數據結構的原理、優化技巧與實際應用，包含路徑壓縮和按秩合併等優化策略</description></item><item><title>分散式 ID 生成系統：Snowflake 算法與企業級實現</title><link>https://bill-lin.dev/post/architecture/snowflake-distributed-id/</link><pubDate>Tue, 13 Sep 2022 15:05:38 GMT</pubDate><guid>https://bill-lin.dev/post/architecture/snowflake-distributed-id/</guid><description>深入探討 Twitter Snowflake 分散式 ID 生成算法，包含多種實現方式、Spring Boot 整合、企業級應用場景與最佳實踐</description></item><item><title>回溯演算法（Backtracking）完整指南</title><link>https://bill-lin.dev/post/algorithm/backtracking/</link><pubDate>Tue, 10 May 2022 15:34:53 GMT</pubDate><guid>https://bill-lin.dev/post/algorithm/backtracking/</guid><description>深入探討回溯演算法的原理、實作技巧與經典題型解析</description></item><item><title>代碼壞味道 (Code Smells) 完整識別與重構指南：軟體品質改善最佳實踐</title><link>https://bill-lin.dev/post/architecture/bad-smell/</link><pubDate>Thu, 17 Mar 2022 14:50:11 GMT</pubDate><guid>https://bill-lin.dev/post/architecture/bad-smell/</guid><description>深入探討代碼壞味道的完整識別與重構指南，包含常見壞味道類型、識別方法、重構技巧、預防策略與企業級代碼品質改善最佳實踐</description></item><item><title>GitHub SSH 金鑰設定</title><link>https://bill-lin.dev/post/git/github-ssh/</link><pubDate>Wed, 09 Feb 2022 11:46:19 GMT</pubDate><guid>https://bill-lin.dev/post/git/github-ssh/</guid><description>GitHub SSH 金鑰設定、Classic vs Fine-grained PAT 比較，以及 SSH vs HTTPS 選型指南</description></item><item><title>Docker MySQL：容器化部署與設定</title><link>https://bill-lin.dev/post/container/docker-mysql/</link><pubDate>Tue, 18 Jan 2022 15:56:44 GMT</pubDate><guid>https://bill-lin.dev/post/container/docker-mysql/</guid><description>本指南詳細介紹如何使用 Docker 容器化部署 MySQL 資料庫，包含常用啟動指令、資料持久化、字元集設定及連接方式，助您快速建立開發與測試環境。</description></item><item><title>Shell 環境配置與 Homebrew 安裝</title><link>https://bill-lin.dev/post/linux/shell-env-config/</link><pubDate>Sun, 16 Jan 2022 14:35:54 GMT</pubDate><guid>https://bill-lin.dev/post/linux/shell-env-config/</guid><description>macOS 開發環境設定：Homebrew 安裝、zsh 設定、PATH 管理、常用工具安裝清單</description></item><item><title>拓撲排序（Topological Sort）演算法詳解</title><link>https://bill-lin.dev/post/algorithm/topological-sort/</link><pubDate>Sun, 26 Dec 2021 04:53:14 GMT</pubDate><guid>https://bill-lin.dev/post/algorithm/topological-sort/</guid><description>深入探討拓撲排序演算法原理、實作方式與實際應用，包含 DFS 和 BFS 兩種方法</description></item><item><title>Reactive Programming 完整指南：Spring WebFlux 與 Project Reactor</title><link>https://bill-lin.dev/post/spring/spring-webflux-reactor/</link><pubDate>Wed, 01 Dec 2021 14:13:40 GMT</pubDate><guid>https://bill-lin.dev/post/spring/spring-webflux-reactor/</guid><description>深入探討 Reactive Programming 概念，包含 Mono、Flux 操作符詳解與 Spring WebFlux 實戰應用</description></item><item><title>GraphAccountMerge - 圖論帳戶合併深度解析與企業應用</title><link>https://bill-lin.dev/post/algorithm/graph-account-merge/</link><pubDate>Mon, 29 Nov 2021 14:24:03 GMT</pubDate><guid>https://bill-lin.dev/post/algorithm/graph-account-merge/</guid><description>LeetCode 721 帳號合併：Union-Find 解法詳解，以及圖論建模的思路對比</description></item><item><title>二元樹遍歷（Binary Tree Traversal）完整指南</title><link>https://bill-lin.dev/post/algorithm/tree-traversal/</link><pubDate>Sun, 21 Nov 2021 12:11:03 GMT</pubDate><guid>https://bill-lin.dev/post/algorithm/tree-traversal/</guid><description>深入探討二元樹的三種遍歷方式：前序、中序、後序遍歷的原理、實作與應用</description></item><item><title>Java TreeMap 完整實作指南：紅黑樹有序映射與 NavigableMap 介面詳解</title><link>https://bill-lin.dev/post/java/tree-map/</link><pubDate>Sun, 31 Oct 2021 11:16:31 GMT</pubDate><guid>https://bill-lin.dev/post/java/tree-map/</guid><description>深入探討 Java TreeMap 的完整實作指南，包含紅黑樹內部結構、NavigableMap 介面、排序機制、效能分析與企業級應用最佳實踐</description></item><item><title>QueryDSL 完整實戰指南：類型安全的動態查詢解決方案</title><link>https://bill-lin.dev/post/database/querydsl-jpa/</link><pubDate>Sun, 08 Aug 2021 05:07:45 GMT</pubDate><guid>https://bill-lin.dev/post/database/querydsl-jpa/</guid><description>深入解析 QueryDSL 動態查詢框架的完整使用方法，包含配置、查詢建構、效能優化與企業級應用實戰</description></item><item><title>Kotlin lateinit 完整實作指南：延遲初始化與企業級開發最佳實踐</title><link>https://bill-lin.dev/post/java/kotlin-lateinit-vs-lazy/</link><pubDate>Thu, 05 Aug 2021 13:07:54 GMT</pubDate><guid>https://bill-lin.dev/post/java/kotlin-lateinit-vs-lazy/</guid><description>深入探討 Kotlin lateinit 關鍵字的完整實作指南，包含延遲初始化機制、與 lazy 的比較、企業級應用場景、效能優化與最佳實踐</description></item><item><title>curl — HTTP 請求、API 測試與網路除錯命令列指南</title><link>https://bill-lin.dev/post/cli/curl/</link><pubDate>Tue, 03 Aug 2021 02:23:31 GMT</pubDate><guid>https://bill-lin.dev/post/cli/curl/</guid><description>curl 完整指令筆記：-sS、-fsSL、-v 輸出解讀等常用旗標組合，送 JSON 與表單、認證、--resolve 連線控制、retry 與 timeout、-w 效能量測與 exit code 實戰</description></item><item><title>Docker Compose 完整指南：多容器應用程式的定義與執行</title><link>https://bill-lin.dev/post/container/docker-compose/</link><pubDate>Sun, 25 Jul 2021 18:21:13 GMT</pubDate><guid>https://bill-lin.dev/post/container/docker-compose/</guid><description>深入解析 Docker Compose 的核心概念、常用指令與 `docker-compose.yml` 設定檔的撰寫方式，幫助您輕鬆定義與管理多容器應用程式的生命週期。</description></item><item><title>Docker 網路模式詳解：容器間通訊與外部連接</title><link>https://bill-lin.dev/post/container/docker-network/</link><pubDate>Sun, 25 Jul 2021 18:21:13 GMT</pubDate><guid>https://bill-lin.dev/post/container/docker-network/</guid><description>深入解析 Docker 提供的各種網路模式，包括 Bridge、Host、None 和 Container 模式，並詳細說明如何建立自訂網路以實現容器間的順暢通訊與外部連接。</description></item><item><title>Selenium Grid Multi-Architecture Docker 映像建構</title><link>https://bill-lin.dev/post/container/dockerfile-multi-arch-selenium/</link><pubDate>Sat, 24 Jul 2021 18:21:13 GMT</pubDate><guid>https://bill-lin.dev/post/container/dockerfile-multi-arch-selenium/</guid><description>使用 Dockerfile 建構跨 linux/amd64 與 linux/arm64 的 Selenium 多架構映像，處理 NVM 路徑設定與多階段建構</description></item><item><title>Dockerfile 基礎：建構 Docker 映像檔的核心指令</title><link>https://bill-lin.dev/post/container/dockerfile-basic/</link><pubDate>Fri, 23 Jul 2021 18:21:13 GMT</pubDate><guid>https://bill-lin.dev/post/container/dockerfile-basic/</guid><description>本指南深入介紹 Dockerfile 的基本指令與最佳實踐，從基礎映像檔選擇到多階段建構，助您高效、安全地建構 Docker 映像檔。</description></item><item><title>UML 統一建模語言完整指南：軟體設計與架構建模最佳實踐</title><link>https://bill-lin.dev/post/architecture/uml/</link><pubDate>Mon, 12 Jul 2021 15:33:14 GMT</pubDate><guid>https://bill-lin.dev/post/architecture/uml/</guid><description>深入探討 UML 統一建模語言的完整指南，包含類別圖、序列圖、使用案例圖、設計模式建模與企業級軟體架構建模最佳實踐</description></item><item><title>Spring 依賴注入完整指南：@Autowired 與最佳實踐</title><link>https://bill-lin.dev/post/spring/spring-dependency-injection/</link><pubDate>Sat, 10 Jul 2021 12:27:20 GMT</pubDate><guid>https://bill-lin.dev/post/spring/spring-dependency-injection/</guid><description>深入探討 Spring 依賴注入的各種方式、最佳實踐與常見陷阱，重點說明為何不建議使用 Field Injection</description></item><item><title>SOLID 設計原則完整指南：物件導向程式設計的五大核心原則</title><link>https://bill-lin.dev/post/architecture/solid/</link><pubDate>Thu, 08 Jul 2021 13:20:39 GMT</pubDate><guid>https://bill-lin.dev/post/architecture/solid/</guid><description>深入解析 SOLID 五大設計原則，包含單一職責、開閉原則、里氏替換、介面隔離與依賴反轉的理論基礎與實戰應用</description></item><item><title>JWT 認證機制完整實作：Spring Security 整合與最佳實踐</title><link>https://bill-lin.dev/post/security/jwt-spring-security/</link><pubDate>Thu, 01 Jul 2021 15:39:52 GMT</pubDate><guid>https://bill-lin.dev/post/security/jwt-spring-security/</guid><description>深入解析 JWT 認證機制在 Spring Boot 中的完整實作，包含 Token 生成、驗證、Filter 配置與安全性最佳實踐</description></item><item><title>Swagger/OpenAPI 完整指南：API 文檔化與測試最佳實踐</title><link>https://bill-lin.dev/post/spring/springdoc-openapi/</link><pubDate>Thu, 01 Jul 2021 12:47:27 GMT</pubDate><guid>https://bill-lin.dev/post/spring/springdoc-openapi/</guid><description>深入探討 Swagger/OpenAPI 在 Spring Boot 中的完整應用，包含進階配置、安全整合、自動化測試與最佳實踐</description></item><item><title>Spring RestTemplate 完整實戰指南：HTTP 客戶端最佳實踐</title><link>https://bill-lin.dev/post/spring/spring-http-clients/</link><pubDate>Wed, 30 Jun 2021 11:39:44 GMT</pubDate><guid>https://bill-lin.dev/post/spring/spring-http-clients/</guid><description>深入解析 Spring RestTemplate 的完整使用方法，包含配置優化、錯誤處理、攔截器、測試策略與現代化替代方案</description></item><item><title>YAML 語法從入門到實踐</title><link>https://bill-lin.dev/post/cli/yaml/</link><pubDate>Tue, 29 Jun 2021 05:45:56 GMT</pubDate><guid>https://bill-lin.dev/post/cli/yaml/</guid><description>本文詳細介紹了 YAML 的核心語法，包括鍵值對、陣列、物件等資料結構，並透過與 JSON 的比較，幫助您快速上手，應用於 Kubernetes、Spring Boot 等現代開發場景。</description></item><item><title>MergeSort - 合併排序算法深度解析與企業應用</title><link>https://bill-lin.dev/post/algorithm/merge-sort/</link><pubDate>Mon, 28 Jun 2021 11:57:24 GMT</pubDate><guid>https://bill-lin.dev/post/algorithm/merge-sort/</guid><description>深入解析 Merge Sort：穩定排序證明、in-place 成本、外部排序應用，以及 Java Arrays.sort() 底層 Timsort 的關聯</description></item><item><title>CQRS (Command Query Responsibility Segregation) 完整實作指南：命令與查詢職責分離的企業架構模式</title><link>https://bill-lin.dev/post/architecture/cqrs/</link><pubDate>Sun, 16 May 2021 13:18:11 GMT</pubDate><guid>https://bill-lin.dev/post/architecture/cqrs/</guid><description>深入探討 CQRS 架構模式的完整實作指南，包含命令與查詢職責分離、事件驅動架構、最終一致性與企業級應用實踐</description></item><item><title>Java Map 按 Value 排序：完整實作與效能優化指南</title><link>https://bill-lin.dev/post/java/map-sort-by-value/</link><pubDate>Sun, 28 Mar 2021 07:10:59 GMT</pubDate><guid>https://bill-lin.dev/post/java/map-sort-by-value/</guid><description>深入解析 Java Map 按 Value 排序的多種實作方法，包含 Stream API、Collections.sort、TreeMap 等方式，並提供效能分析與最佳實踐</description></item><item><title>Git Tag 使用指南</title><link>https://bill-lin.dev/post/git/git-tag/</link><pubDate>Mon, 01 Mar 2021 13:16:29 GMT</pubDate><guid>https://bill-lin.dev/post/git/git-tag/</guid><description>Git tag 的完整操作指南，包含 annotated tag、CI/CD 部署 tag 與 semver 工作流</description></item><item><title>Dig 命令完整指南：DNS 查詢與網路診斷的強大工具</title><link>https://bill-lin.dev/post/cli/dig/</link><pubDate>Fri, 08 Jan 2021 13:39:14 GMT</pubDate><guid>https://bill-lin.dev/post/cli/dig/</guid><description>深入解析 dig 命令的完整用法，包含 DNS 記錄查詢、網路診斷、效能分析與故障排除技巧</description></item><item><title>Spring Boot SFTP 工具類：企業級安全文件傳輸系統實作指南</title><link>https://bill-lin.dev/post/java/sftp-jsch-mwiede/</link><pubDate>Tue, 05 Jan 2021 11:18:59 GMT</pubDate><guid>https://bill-lin.dev/post/java/sftp-jsch-mwiede/</guid><description>深入介紹在 Spring Boot 中實作企業級 SFTP 文件傳輸工具類，包含連線池管理、檔案操作、安全性配置、錯誤處理、效能優化與監控機制</description></item><item><title>Spring Data JPA Pageable 分頁查詢：完整實作與效能優化指南</title><link>https://bill-lin.dev/post/database/jpa-pagination/</link><pubDate>Tue, 07 Jan 2020 05:26:41 GMT</pubDate><guid>https://bill-lin.dev/post/database/jpa-pagination/</guid><description>詳細介紹 Spring Data JPA 中 Pageable 分頁查詢的使用方法，包含自訂查詢、排序與效能優化技巧</description></item><item><title>Side Project 企業級專案配置指南：完整開發環境設定與最佳實踐</title><link>https://bill-lin.dev/post/spring/spring-boot-3-starter/</link><pubDate>Wed, 01 Jan 2020 12:31:25 GMT</pubDate><guid>https://bill-lin.dev/post/spring/spring-boot-3-starter/</guid><description>完整的 Side Project 企業級專案配置指南，包含現代化開發環境設定、專案結構規劃、容器化部署、監控系統與 CI/CD 流程的最佳實踐</description></item><item><title>Spring Framework 註解完整指南：從基礎到進階應用</title><link>https://bill-lin.dev/post/spring/spring-annotations-overview/</link><pubDate>Thu, 05 Sep 2019 15:50:29 GMT</pubDate><guid>https://bill-lin.dev/post/spring/spring-annotations-overview/</guid><description>全面整理 Spring Framework 中的重要註解，包含核心容器、Web、資料存取、安全、測試等各個領域的註解使用指南</description></item><item><title>AWK 程式設計完整指南：Linux 文本處理與資料分析利器</title><link>https://bill-lin.dev/post/cli/awk/</link><pubDate>Sat, 06 Apr 2019 15:18:56 GMT</pubDate><guid>https://bill-lin.dev/post/cli/awk/</guid><description>深入解析 AWK 程式語言的完整用法，包含模式匹配、資料處理、內建變數與實戰應用場景</description></item><item><title>Java Map 計算方法完整指南：高效能數據操作與最佳實踐</title><link>https://bill-lin.dev/post/java/map-compute/</link><pubDate>Wed, 20 Mar 2019 12:58:17 GMT</pubDate><guid>https://bill-lin.dev/post/java/map-compute/</guid><description>深入解析 Java Map 介面的所有計算方法，包含 putIfAbsent、compute、computeIfAbsent、computeIfPresent、merge 等，並提供效能優化與執行緒安全實踐</description></item><item><title>Sed 流編輯器完整指南：Linux 文本處理的強大工具</title><link>https://bill-lin.dev/post/cli/sed/</link><pubDate>Fri, 18 Jan 2019 02:23:31 GMT</pubDate><guid>https://bill-lin.dev/post/cli/sed/</guid><description>深入解析 sed 流編輯器的完整用法，包含文本替換、行操作、正規表達式與實戰應用場景</description></item><item><title>Memento — 不破壞封裝的快照與復原</title><link>https://bill-lin.dev/post/designpattern/memento/</link><pubDate>Tue, 07 Aug 2018 14:39:01 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/memento/</guid><description>Memento 模式以快照記錄物件狀態，在不暴露內部結構的前提下支援 undo/redo，Java record 是現代的輕量實作。</description></item><item><title>Interpreter — 為語言定義文法與解釋器</title><link>https://bill-lin.dev/post/designpattern/interpreter/</link><pubDate>Tue, 07 Aug 2018 14:38:42 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/interpreter/</guid><description>Interpreter 模式為簡單語法定義 AST 與解釋邏輯，適合小型 DSL；複雜語法請改用 ANTLR 等解析器工具。</description></item><item><title>Iterator — 迭代器模式</title><link>https://bill-lin.dev/post/designpattern/iterator/</link><pubDate>Tue, 07 Aug 2018 14:38:21 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/iterator/</guid><description>迭代器模式：提供統一介面循序存取集合元素，不暴露底層資料結構，Java Iterable/Iterator 即此模式的內建實作。</description></item><item><title>Visitor — 將演算法從物件結構抽離</title><link>https://bill-lin.dev/post/designpattern/visitor/</link><pubDate>Tue, 07 Aug 2018 14:38:06 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/visitor/</guid><description>訪問者模式透過雙分派將操作邏輯從物件結構抽離，適合在穩定的元素層級上頻繁新增操作</description></item><item><title>State — 讓物件隨狀態改變行為</title><link>https://bill-lin.dev/post/designpattern/state/</link><pubDate>Tue, 07 Aug 2018 14:37:58 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/state/</guid><description>State 模式將狀態相關行為封裝成獨立類別，消除大型 if-else/switch，物件轉換狀態時行為自動切換。</description></item><item><title>Command — 命令模式</title><link>https://bill-lin.dev/post/designpattern/command/</link><pubDate>Tue, 07 Aug 2018 14:37:50 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/command/</guid><description>命令模式：將請求封裝為物件，讓呼叫者與接收者解耦，並支援 undo/redo、排隊與日誌記錄。</description></item><item><title>Strategy — 策略模式</title><link>https://bill-lin.dev/post/designpattern/strategy/</link><pubDate>Tue, 07 Aug 2018 14:37:39 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/strategy/</guid><description>策略模式：定義一族可互換的演算法並各自封裝，讓演算法的變化獨立於使用它的客戶端，現代 Java 以 lambda 直接實現。</description></item><item><title>Observer — 一對多狀態變更通知</title><link>https://bill-lin.dev/post/designpattern/observer/</link><pubDate>Tue, 07 Aug 2018 14:37:21 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/observer/</guid><description>Observer 模式定義一對多依賴關係，Subject 狀態變更時自動通知所有訂閱者；Spring @EventListener 是現代首選實作。</description></item><item><title>Chain of Responsibility — 責任鏈模式</title><link>https://bill-lin.dev/post/designpattern/chain-of-responsibility/</link><pubDate>Tue, 07 Aug 2018 14:37:08 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/chain-of-responsibility/</guid><description>責任鏈模式：將請求沿處理者鏈傳遞，讓多個物件都有機會處理請求，避免發送者與接收者的強耦合。</description></item><item><title>Mediator — 以中介者解耦多方互動</title><link>https://bill-lin.dev/post/designpattern/mediator/</link><pubDate>Tue, 07 Aug 2018 14:36:43 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/mediator/</guid><description>Mediator 模式透過中介者集中管理物件間通訊，將網狀耦合降為星狀結構，Spring ApplicationEventPublisher 是其典型實踐。</description></item><item><title>Template Method — 模板方法模式</title><link>https://bill-lin.dev/post/designpattern/template-method/</link><pubDate>Tue, 07 Aug 2018 04:18:20 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/template-method/</guid><description>模板方法模式：在抽象父類定義演算法骨架，子類覆寫特定步驟而不改變整體流程，體現好萊塢原則。</description></item><item><title>Decorator — 動態疊加行為</title><link>https://bill-lin.dev/post/designpattern/decorator/</link><pubDate>Tue, 07 Aug 2018 04:16:24 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/decorator/</guid><description>Decorator 模式在不修改原始類別的前提下，透過包裝物件動態疊加行為，避免繼承導致的類別爆炸。</description></item><item><title>Bridge — 抽象與實作分離</title><link>https://bill-lin.dev/post/designpattern/bridge/</link><pubDate>Tue, 07 Aug 2018 04:16:14 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/bridge/</guid><description>Bridge 模式將抽象層與實作層分離，讓兩者可以獨立演進，解決多維度繼承導致的類別爆炸問題。</description></item><item><title>Facade — 子系統統一入口</title><link>https://bill-lin.dev/post/designpattern/facade/</link><pubDate>Tue, 07 Aug 2018 04:16:02 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/facade/</guid><description>Facade 模式為複雜子系統提供簡化的統一介面，降低客戶端與子系統的耦合，Spring Service 層即其典型應用。</description></item><item><title>Flyweight — 共享內部狀態節省記憶體</title><link>https://bill-lin.dev/post/designpattern/flyweight/</link><pubDate>Tue, 07 Aug 2018 04:15:57 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/flyweight/</guid><description>Flyweight 模式透過共享內部狀態降低大量相似物件的記憶體開銷，適用於字元渲染、粒子系統等場景。</description></item><item><title>Proxy — 控制物件存取的代理層</title><link>https://bill-lin.dev/post/designpattern/proxy/</link><pubDate>Tue, 07 Aug 2018 04:15:41 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/proxy/</guid><description>代理模式在不改變介面的情況下攔截對物件的存取，是 Spring AOP、JDK 動態代理、CGLIB 的底層機制</description></item><item><title>Composite — 樹狀結構統一操作</title><link>https://bill-lin.dev/post/designpattern/composite/</link><pubDate>Tue, 07 Aug 2018 04:15:31 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/composite/</guid><description>Composite 模式讓客戶端以一致方式處理單個物件與物件組合，適合樹狀結構如目錄、組織圖、UI 元件。</description></item><item><title>Adapter — 介面轉換橋接</title><link>https://bill-lin.dev/post/designpattern/adapter/</link><pubDate>Tue, 07 Aug 2018 04:12:36 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/adapter/</guid><description>Adapter 模式將不相容的介面轉換為客戶端期望的介面，常用於整合第三方 SDK 與遺留系統。</description></item><item><title>Prototype — 透過複製建立新物件</title><link>https://bill-lin.dev/post/designpattern/prototype/</link><pubDate>Mon, 06 Aug 2018 18:27:13 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/prototype/</guid><description>GoF Prototype 模式：比較淺拷貝與深拷貝的陷阱，說明為何應避免 Cloneable，以及拷貝建構子與 Jackson 序列化的現代替代方案</description></item><item><title>Builder — 分離複雜物件的建構與表示</title><link>https://bill-lin.dev/post/designpattern/builder/</link><pubDate>Mon, 06 Aug 2018 18:16:32 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/builder/</guid><description>GoF Builder 模式：用流式介面解決 telescoping constructor 問題，比較 Lombok @Builder 底層實作與 Java Records 的適用邊界</description></item><item><title>Factory Method — 讓子類決定實例化哪個類別</title><link>https://bill-lin.dev/post/designpattern/factory/</link><pubDate>Mon, 06 Aug 2018 17:07:16 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/factory/</guid><description>GoF Factory Method 模式：定義建立物件的介面，將具體類別的決策交給子類，並釐清與 Simple Factory、Abstract Factory、靜態工廠的差異</description></item><item><title>Singleton — 確保唯一實例</title><link>https://bill-lin.dev/post/designpattern/singleton/</link><pubDate>Mon, 06 Aug 2018 15:05:44 GMT</pubDate><guid>https://bill-lin.dev/post/designpattern/singleton/</guid><description>GoF Singleton 模式四種實作比較：Enum、Holder、DCL、Eager，說明 Spring Bean Singleton 與 GoF 的本質差異</description></item></channel></rss>