Project

General

Profile

Task #22207

Add an example of the timeoutMiddleware

Added by Sachin Divekar 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Target version:
-
Start date:
15/11/2024
Due date:
% Done:

0%

Estimated time:

Description

Add an example of the timeoutMiddleware in the codebase to show how to use it and how it works.

#1

Updated by Sachin Divekar 5 months ago

  • Status changed from New to In Progress
#2

Updated by Sachin Divekar 5 months ago

  • Status changed from In Progress to Closed

Implemented an example to demonstrate Alya's timeout handling capabilities.

  • Two endpoints (/quick and /slow) to demonstrate timeout behavior
  • Use of timeoutMiddleware
  • Detailed request timing logs using LogHarbour
  • Custom error codes and message IDs for timeout scenarios
  • README with usage instructions

Also available in: Atom PDF