An implementation of the Idempotent Consumer pattern.