refactor and use a redis pool
limit connections