Pandula WeerasooriyainDevOps.devImplementing Request Parking in a Go Service with RedisThis short article explains, in essence, how to use Redis to synchronize multiple concurrent requests in a Web service. Although I’ve used…Sep 1, 2023Sep 1, 2023
Pandula WeerasooriyainBetter ProgrammingHow To Use the “thiserror” Crate in RustApr 29, 20234Apr 29, 20234
Pandula WeerasooriyaData modelling patterns in MongoDBAlthough MongoDB is often described as a schema-less database, where schemas can be modified without issuing `alter table` queries as in a…Feb 10, 2023Feb 10, 2023
Pandula WeerasooriyaA simple wait-group implementation in RustWhen writing concurrent code in Go, wait-groups are used ubiquitously as an important piece of arsenal for syncing go-routines. However, in…Jul 16, 2022Jul 16, 2022
Pandula WeerasooriyaReading and writing multiple records to a file with protobuf format using GoProtocol buffers are a flexible, efficient, automated data serialization mechanism developed by Google. It’s language-neutral…Aug 7, 20211Aug 7, 20211
Pandula WeerasooriyaHow to rename or replace an Elasticsearch index with zero downtimeRecently I worked on a project where I had to replace an ES index using a new dataset every day. The data was coming from a public…Jun 13, 2021Jun 13, 2021
Pandula WeerasooriyaUnicode, UTF-8 explained with examples using GoUnicode and utf-8 are two topics that I’ve always had a lot of trouble wrapping my head around. Although I can memorize specifying…Oct 4, 2020Oct 4, 2020
Pandula WeerasooriyaDemystify connect in react-redux (Part 1, closures & higher order components)The natural journey of a React developer is to build a few toy applications using idiomatic React with stateful class components and a…May 23, 2020May 23, 2020