This post explains how we were able to improve a database query performance by replacing two individual timestamptz columns with single Postgresās tstzrange range column.
[Read More]
Roll-call - A microservices pattern to find service instances and their metadata
I am working on a product whose back-end is implemented as collection of micro services. We had a requirement to implement an API that should respond information about running instances of services and their metadata. As the services are independent of each other and already communicating through message queues, we...
[Read More]
Embedding DB migrations through Golang build tags
In this post I am going to explain how to embed database migration sqls within application binary and how can we utilize the Golang build tags to maintain both embedded and non-embedded versions of database migrations.
[Read More]
Pure CMake based bin2h implementation
I had been writing CMake build script for a project that requires converting few files into C/C++ headers so that the content of those files can be embedded in the output binary.
[Read More]
RSA OAEP padding with SHA512 hash algorithm
Recently I wanted to encrypt a message with RSA with OAEP padding. I also wanted to use SHA512 as hashing algorithm and mask generation function(MGF) in the OAEP padding instead of SHA1. But it looks like it is not possible with the OpenSSL/libcrypto as the SHA1 hash algorithm is hard...
[Read More]