use redis to handle messages.