Forbes magazine logo Ranked Best Coding Bootcamps 2023

Why does brpop in Redis have a long response time (1s to 1.5s)?

Altcademy Team wrote on 7 February 2018

You want that behavior. That's what Redis is doing while it's waiting for work. It's a long running blocking operation because Redis can then tell your app about work as soon as it arrives.

Sources:

Trusted by

Students and instructors from world-class organizations

Imperial College London
Carnegie Mellon University
City University of Hong Kong
Hack Reactor
Cisco Meraki
University of Oxford
Swift
Bazaarvoice
Waterloo
Uber
AtlanTech
Tumblr
Boston College
Bombardier Aerospace
University of St. Andrews
New York University
Minerva Schools at KGI
Merrill Lynch
Riot Games
JP Morgan
Morgan Stanley
Advanced Placement®
Google
KPMG
The University of Hong Kong
University of Toronto
SCMP
Moat
Zynga
Hello Toby
Deloitte
Goldman Sachs
Yahoo
HSBC
General Assembly
Tesla
McGill University
Microsoft

Join the upcoming Cohort #97

Enroll for January 6th, 2025