PinnedJason LuiDB as MQ: Reliable Task Distributions with a POCUsing DB as a queue can be much more robust, reliable, efficient and cheaper. Scroll to the bottom to see a POC!7 min read·May 20, 2024----
Jason LuiinXendit EngineeringGoroutines, wait in line!If you want to bound concurrent goroutines, check this post out for executable examples from worker pool pattern to semaphores!4 min read·Jan 27, 2023----
Jason LuiinXendit EngineeringIn Go, sometimes nil is not nil!Type is life in Go, especially in interface, hence nil may not be nil at times!4 min read·Sep 22, 2022--1--1
Jason LuiinXendit EngineeringUse Test Coverage to Defend against TyposWhen you need to type dozens of if statements, do you trust your body to make zero mistakes? If you don’t, perhaps this helps.3 min read·Aug 3, 2022----
Jason LuiinXendit EngineeringStreaming an avalanche of data with Go’s io packageIn Go, using io package (io.Pipe(), io.Reader/WriteCloser) to stream data could avoid reading all data into the memory5 min read·May 17, 2022----
Jason LuiinXendit EngineeringOne Way to Store Money in PostgreSQL Database and A Benchmark against Its AlternativePostgreSQL numerics are slower, but by how much?4 min read·Mar 1, 2022--1--1