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…7 min read·Sep 1, 2023----
Pandula WeerasooriyainBetter ProgrammingHow To Use the “thiserror” Crate in Rust7 min read·Apr 29, 2023--4--4
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…9 min read·Feb 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…4 min read·Jul 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…6 min read·Aug 7, 2021--1--1
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…3 min read·Jun 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…9 min read·Oct 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…9 min read·May 23, 2020----