Show / Hide Table of Contents

Interface IHttpConnectionPool

Connection pool properties for HTTP listeners.

Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IHttpConnectionPool
Syntax (vb)
Public Interface IHttpConnectionPool
Remarks

ExampleMetadata: infused

Examples
// A Virtual Node with a gRPC listener with a connection pool set
            Mesh mesh;

            var node = new VirtualNode(this, "node", new VirtualNodeProps {
                Mesh = mesh,
                // DNS service discovery can optionally specify the DNS response type as either LOAD_BALANCER or ENDPOINTS.
                // LOAD_BALANCER means that the DNS resolver returns a loadbalanced set of endpoints,
                // whereas ENDPOINTS means that the DNS resolver is returning all the endpoints.
                // By default, the response type is assumed to be LOAD_BALANCER
                ServiceDiscovery = ServiceDiscovery.Dns("node", DnsResponseType.ENDPOINTS),
                Listeners = new [] { VirtualNodeListener.Http(new HttpVirtualNodeListenerOptions {
                    Port = 80,
                    ConnectionPool = new HttpConnectionPool {
                        MaxConnections = 100,
                        MaxPendingRequests = 10
                    }
                }) }
            });

            // A Virtual Gateway with a gRPC listener with a connection pool set
            var gateway = new VirtualGateway(this, "gateway", new VirtualGatewayProps {
                Mesh = mesh,
                Listeners = new [] { VirtualGatewayListener.Grpc(new GrpcGatewayListenerOptions {
                    Port = 8080,
                    ConnectionPool = new GrpcConnectionPool {
                        MaxRequests = 10
                    }
                }) },
                VirtualGatewayName = "gateway"
            });

Synopsis

Properties

MaxConnections

The maximum connections in the pool.

MaxPendingRequests

The maximum pending requests in the pool.

Properties

MaxConnections

The maximum connections in the pool.

double MaxConnections { get; }
Property Value

double

Remarks

Default: - none

MaxPendingRequests

The maximum pending requests in the pool.

double MaxPendingRequests { get; }
Property Value

double

Remarks

Default: - none

Back to top Generated by DocFX