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!May 20May 20
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!Jan 27, 2023Jan 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!Sep 22, 20221Sep 22, 20221
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.Aug 3, 2022Aug 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 memoryMay 17, 2022May 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?Mar 1, 20221Mar 1, 20221