Skip to content

Commit 498c6d9

Browse files
Add warning about keepalives (#35481)
* Add warning about keepalives * Improve formatting Co-authored-by: Wade Pickett <wpickett@microsoft.com> * Update performance.md Updated ms.date meta data. --------- Co-authored-by: Wade Pickett <wpickett@microsoft.com>
1 parent 2d6d07d commit 498c6d9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

aspnetcore/grpc/performance.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: jamesnk
44
description: Learn the best practices for building high-performance gRPC services.
55
monikerRange: '>= aspnetcore-3.0'
66
ms.author: wpickett
7-
ms.date: 04/11/2023
7+
ms.date: 05/16/2025
88
uid: grpc/performance
99
---
1010
# Performance best practices with gRPC
@@ -157,6 +157,9 @@ Consider using a transport like Unix domain sockets or named pipes for gRPC call
157157

158158
## Keep alive pings
159159

160+
> [!IMPORTANT]
161+
> Keep alive pings require the cooperation of the server. Do not enable keep alive pings in the client without verifying that the server supports them. A server which does not support keep alive pings will usually ignore the first few pings, and will then send a `GOAWAY` message, closing the active HTTP/2 connection.
162+
160163
Keep alive pings can be used to keep HTTP/2 connections alive during periods of inactivity. Having an existing HTTP/2 connection ready when an app resumes activity allows for the initial gRPC calls to be made quickly, without a delay caused by the connection being reestablished.
161164

162165
Keep alive pings are configured on <xref:System.Net.Http.SocketsHttpHandler>:

0 commit comments

Comments
 (0)