Ingress and API Server with a Central Edge Entry Point
TL;DR A central edge entry point can consolidate public Kubernetes endpoints like Ingress services …

L4 and L7 load balancing address different issues. TCP load balancing distributes connections quickly and protocol-independently, while HTTP load balancing processes requests based on host, path, or headers. The right choice depends on the protocol, routing logic, security requirements, and the application’s operational model—not on blanket best practices.
Choosing the wrong load balancing layer can create technical constraints that only become apparent during operation. If an HTTP application is distributed solely on Layer 4, request-based routing, TLS termination, and web application firewall functions are often missing. Conversely, processing every service on Layer 7 can lead to unnecessary protocol dependencies and additional processing overhead. The architectural decision should therefore start with the actual traffic model: Are we dealing with TCP connections, HTTP requests, or multiple logically separate applications on a single entry point? This distinction is particularly relevant for an edge cloud, as it not only distributes load but also determines public traffic entry, protection, and forwarding to backends.
Layer 4 operates at the transport level. An L4 load balancer typically considers IP addresses, ports, and the state of a TCP connection. It decides which backend a connection is forwarded to without needing to evaluate the application content above it. This is suitable for TCP-based services where the load balancer does not need or should not understand the protocol.
Layer 7, on the other hand, operates at the application level. With HTTP load balancing, hostnames, URL paths, headers, or other request properties can be included in the routing decision. This allows for the targeted distribution of multiple APIs and web applications under a single IP address. TLS can be terminated here, enabling downstream systems to work with decrypted HTTP requests.
The layers are not quality levels. L7 is not inherently better than L4 but takes on more protocol responsibility. This results in additional possibilities but also requirements for processing, configuration, and operation.
L4 load balancing is sensible when TCP connections need to be distributed without evaluating the protocol’s semantics. Examples include database access, proprietary TCP services, or applications where the end-to-end connection should be deliberately maintained. TLS can also be passed through at this level if decryption is to occur exclusively in the backend.
The main advantage lies in protocol neutrality. An L4 entry can distribute services whose application layer is unknown to the edge. This reduces dependencies between edge configuration and application. At the same time, the capabilities of HTTP load balancing are deliberately missing: routing by URL path, HTTP header evaluation, TLS termination, or a web application firewall focused on HTTP requests are not possible at this level.
In the ayedo Edge Cloud, Anycast-based Layer 4 load balancing is thus a component for services that require transport-oriented distribution. Backend health checks and failover complement the distribution with operational logic without automatically turning a TCP service into an HTTP application.
HTTP load balancing moves decisions closer to the application. A common public entry can send requests to different backends depending on hostname or path. This is particularly relevant for APIs, web applications, and platforms with multiple tenants or services. TLS termination at the edge can decouple certificate management and backend communication; the specific encryption strategy between edge and backend remains an architectural decision.
However, with greater visibility comes increased operational and security responsibility. Routing rules must be versioned, tested, and aligned with API or deployment structures. Faulty rules can make individual paths unreachable, while inappropriate header or host configurations can expose unexpected backends. A web application firewall can specifically inspect and protect HTTP/HTTPS services, but it is not a substitute for secure application components.
The ayedo Edge Cloud combines Anycast-based Layer 7 load balancing with TLS termination, web application firewall, DDoS protection, and backend cloaking. This keeps the public entry separate from the actual backend addresses. However, the decision for L7 should arise from the HTTP traffic model, not from the desire to bundle as many functions as possible in one place.
Four questions are crucial for selection: What protocol is being transported? Must routing occur within a connection or request? Where should TLS end? And what security and operational functions need to be at the public entry? For pure TCP services, the lower protocol dependency often speaks for L4. For HTTP applications with multiple routes, central TLS processing, or WAF requirements, L7 is more appropriate.
A hybrid model is often more appropriate than a uniform approach. A platform can process HTTP APIs on L7 while providing TCP services on L4. It is crucial that responsibilities, health checks, and failover are defined per service type. The ayedo Edge Cloud supports both layers and can be used with ayedo Managed Kubernetes as well as with self-managed or provider-hosted Kubernetes clusters. This keeps the choice of load balancing layer independent of the compute location. This is architecturally relevant when edge functions are centrally operated, but workloads are distributed across multiple environments.
A company operates an HTTP API, a website, and a proprietary TCP service. A blanket L4 approach would distribute all connections but could not route API paths separately or conduct HTTP-specific checks at the entry. A blanket L7 approach would be unsuitable for the proprietary service because its protocol is not HTTP.
A separate publication is sensible: API and web application are processed via L7, TLS is terminated at the edge, and distributed based on host or path. The proprietary service remains on L4 and retains its transport-oriented processing. Health checks and failover are defined per protocol. This way, the edge configuration matches the actual service model instead of forcing all workloads into the same routing pattern.
No. L7 offers more possibilities for HTTP-specific checks but does not replace secure applications or correct configuration. L4 can be the more appropriate and less complex layer for non-HTTP services.
Yes, for different entries or services. However, a single connection cannot be processed simultaneously on both layers arbitrarily. The architecture must define where protocol termination and routing occur.
This depends on the service being published. HTTP ingress typically requires L7 functions, while TCP services need L4. The Kubernetes integration should reflect this distinction, independent of the cluster provider.
L4 and L7 load balancing is not a hierarchy but a decision about the edge’s responsibility. L4 preserves protocol neutrality and is suitable for TCP-based services; L7 enables HTTP routing, TLS termination, and application-near protection mechanisms. An edge platform like the ayedo Edge Cloud is best utilized when these layers are combined based on service and the public entry can be operated independently of the compute infrastructure.
TL;DR A central edge entry point can consolidate public Kubernetes endpoints like Ingress services …
TL;DR DNS answers the question of which address a service is reachable at. Anycast routing …
TL;DR A robust DNS naming concept separates internal resolution from publicly authoritative edge …