Skip to content

Glossary: Redis and Caching

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.

Where the book teaches it

Related terms

Fail open, fail closed