./ahmedhashim

Zero-Downtime Elasticsearch Reindexing

When you need to change a field mapping in Elasticsearch, you’ll quickly discover a limitation: you can’t modify mappings in place. But using aliases and atomic operations on the reindex API, you can make it happen with zero downtime.

The PromiseMap or: How I Learned to Stop Worrying and Love the Event Loop

Delivering value to customers in realtime often means performing expensive computations on the fly. As your customer base grows, operations such as creating a shop, generating invoices, or updating an orderbook can fan out and grow quickly. A simple & elegant data structure called a PromiseMap can help ease the burden to a system under such load.

Logarithms in Solidity

Patterns that occur in life and nature are often non-linear. From comparing frequencies of notes on a piano to Moore’s Law, logarithms provide a way to measure values extremely far apart from one another. When building tools for society, this can also be a useful property to map nuanced human behavior at scale.