CodeZettaInterview Hub

NestJS · Interceptors · Mid-Level · Live Coding

How do you implement a timeout interceptor?

Short Interview Answer

Race the handler stream with a timeout operator and throw RequestTimeoutException.

Detailed Explanation

RxJS timeout on next.handle(). Document limits. Don't timeout long uploads without care.

Did you know this answer?