Promise.race
A JavaScript function that settles as soon as the first promise in its list does. `connectRedis` races the connection against a 2-second timer so the API starts even with Redis down.
A JavaScript function that settles as soon as the first promise in its list does. `connectRedis` races the connection against a 2-second timer so the API starts even with Redis down.