PinnedJason Lui·May 20, 2024DB 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!
InXendit EngineeringbyJason Lui·Jan 27, 2023Goroutines, wait in line!If you want to bound concurrent goroutines, check this post out for executable examples from worker pool pattern to semaphores!
InXendit EngineeringbyJason Lui·Sep 22, 2022In Go, sometimes nil is not nil!Type is life in Go, especially in interface, hence nil may not be nil at times!A response icon1A response icon1
InXendit EngineeringbyJason Lui·Aug 3, 2022Use 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.
InXendit EngineeringbyJason Lui·May 17, 2022Streaming 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 memory
InXendit EngineeringbyJason Lui·Mar 1, 2022One Way to Store Money in PostgreSQL Database and A Benchmark against Its AlternativePostgreSQL numerics are slower, but by how much?A response icon1A response icon1