Map reduce design pattern solutions