Genchi LuCache Strategy In BackendCache is one of the most important parts of the backend. We always use cache to improve latency. There are several things worth thinking…Jan 26, 20221Jan 26, 20221
Genchi Lu來談談後端快取策略快取是後端系統提升 latency time 最常用的手段之一。在設計快取架構時有幾個值得注意的點,這篇文章會簡單討論這些細節在實作上常見的策略。Jan 26, 2022Jan 26, 2022
Genchi LuConcurrency Paradigms: Golang V.S. JavaI find that I was just using Golang’s syntax to write Java after I reviewed the Golang code I wrote years ago, I was a newbie in Golang…Aug 29, 20212Aug 29, 20212
Genchi Lu併發程式典範 (Paradigms): Golang V.S. Java當我回頭看剛開始學 Golang 的程式時,我發現我只是用 Golang 語法寫 Java 程式。尤其在併發程式的設計思路上 Golang 和 Java 完全不同:Java 習慣上會用 thread-safe 的概念設計併發,而 Golang 的設計上鼓勵開發者使用…Aug 29, 2021Aug 29, 2021
Genchi LuJava’s Thread Model and Golang GoroutineOne of the most important features of Golang is its ability to handle high concurrency. And goroutine is the foundation to support high…Jul 5, 20214Jul 5, 20214
Genchi LuJava’s Thread model and Golang Goroutine 比較說到 Golang,總會提到其高併發的特性,而 goroutine 則是撐起 Golang 高併發的基礎。本文試著比較 Java thread 和 Golng goroutine 在 OS 運行的方式,讓大家能理解 goroutine 在設計上的獨到之處。Jul 5, 20211Jul 5, 20211
Genchi Lu比較 Java 和 Golang 在撰寫併發時處理共享變數的差異在寫 concurrency 程式時,通常會用 lock、synchronized 等機制保護存取共享資源的程式片段,確保一次只有一個 thread 可以使用這些共享資源。但若是共享資源不是一個程式片段而僅僅只是一個變數,使用 lock、synchronized…May 3, 2021May 3, 2021
Genchi LuThe difference between Java and Golang in writing concurrent code to access shared variableWhen writing concurrency code, we often use mechanisms like Lock or Synchronized to protect share resources (sometimes it’s a piece of…May 3, 2021May 3, 2021
Genchi LuMake code review more effectively by automate static analysisI always fell exhausting while reviewing codeAug 31, 2020Aug 31, 2020