Services and modules

There has been some debate in my team about how to define and differentiate between a “service” and a “module”. Here is my proposal: A module exists to fulfill some…

Java Weak References

This is just a note about an (in my opinion at least) interesting use case for Java weak references. Weak References Java helps the developer take care of tracking objects…

Alias Method

This post is about a brilliant algorithm called the Alias Method. This method¬†allows you to generate¬†samples according to a discrete probability distribution in constant time. In other words, it allows…

Redis and Memcache

I’m launching into a project to implement a distribute cache in front of our bidding and impression layer. Part of the project is to evaluate caching technologies and the most…