You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/middleware/healthcheck.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ id: healthcheck
4
4
5
5
# Health Check
6
6
7
-
Livenessand readiness probes middleware for [Fiber](https://github.com/gofiber/fiber) that provides two endpoints for checking the livenessand readiness state of HTTP applications.
7
+
Liveness, readiness and startup probes middleware for [Fiber](https://github.com/gofiber/fiber) that provides three endpoints for checking the liveness, readiness, and startup state of HTTP applications.
8
8
9
9
## Overview
10
10
@@ -16,6 +16,10 @@ Liveness and readiness probes middleware for [Fiber](https://github.com/gofiber/
16
16
-**Default Endpoint**: `/readyz`
17
17
-**Behavior**: By default returns `true` immediately when the server is operational.
18
18
19
+
-**Startup Probe**: Checks if the application has completed its startup sequence and is ready to proceed with initialization and readiness checks.
20
+
-**Default Endpoint**: `/startupz`
21
+
-**Behavior**: By default returns `true` immediately when the server is operational.
22
+
19
23
-**HTTP Status Codes**:
20
24
-`200 OK`: Returned when the checker function evaluates to `true`.
21
25
-`503 Service Unavailable`: Returned when the checker function evaluates to `false`.
@@ -44,6 +48,8 @@ After you initiate your [Fiber](https://github.com/gofiber/fiber) app, you can u
Copy file name to clipboardExpand all lines: docs/core/whats_new.md
+65Lines changed: 65 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@ Here's a quick overview of the changes in Fiber `v3`:
33
33
-[Session](#session)
34
34
-[Filesystem](#filesystem)
35
35
-[Monitor](#monitor)
36
+
-[Healthcheck](#healthcheck)
36
37
-[📋 Migration guide](#-migration-guide)
37
38
38
39
## Drop for old Go versions
@@ -330,6 +331,25 @@ DRAFT section
330
331
331
332
Monitor middleware is now in Contrib package.
332
333
334
+
### Healthcheck
335
+
336
+
The Healthcheck middleware has been enhanced to support more than two routes, with default endpoints for liveliness, readiness, and startup checks. Here's a detailed breakdown of the changes and how to use the new features.
337
+
338
+
1.**Support for More Than Two Routes**:
339
+
- The updated middleware now supports multiple routes beyond the default liveliness and readiness endpoints. This allows for more granular health checks, such as startup probes.
340
+
341
+
2.**Default Endpoints**:
342
+
- Three default endpoints are now available:
343
+
-**Liveness**: `/livez`
344
+
-**Readiness**: `/readyz`
345
+
-**Startup**: `/startupz`
346
+
- These endpoints can be customized or replaced with user-defined routes.
347
+
348
+
3.**Simplified Configuration**:
349
+
- The configuration for each health check endpoint has been simplified. Each endpoint can be configured separately, allowing for more flexibility and readability.
350
+
351
+
Refer to the [healthcheck middleware migration guide](./middleware/healthcheck.md) or the [general migration guide](#-migration-guide) to review the changes.
0 commit comments