a rate-limiting work queue with foreground and background operations