Can NLB Cross region?
Network Load Balancer can now distribute requests regardless of Availability Zone with the support of cross-zone load balancing. This feature allows Network Load Balancer to route incoming requests to applications that are deployed across multiple Availability Zones.
A cross-region load balancer ensures a service is available globally across multiple Azure regions. If one region fails, the traffic is routed to the next closest healthy regional load balancer.
Network Load Balancers can also load balance to IP-based targets that are deployed in an inter-region peered VPC. This support on Network Load Balancers is available in all AWS Regions. To learn more, visit the Network Load Balancer documentation.
Cross-zone load balancing means that each NLB endpoint can direct traffic to target instances in a different availability zone. By default, it's disabled: When enabled, it allows load balancing to target instances in different zones: Note that NLBs preserve the source IP and port of the ingress traffic.
- On the navigation pane, under Load Balancing, choose Load Balancers.
- Select your load balancer.
- On the Description tab, choose Change cross-zone load balancing setting.
- On the Configure Cross-Zone Load Balancing page, select Enable.
- Choose Save.
Using a Network Load Balancer instead of a Classic Load Balancer has the following benefits: Ability to handle volatile workloads and scale to millions of requests per second. Support for static IP addresses for the load balancer. You can also assign one Elastic IP address per subnet enabled for the load balancer.
A: No. For each associated subnet a Network Load Balancer is in, the Network Load Balancer can only support a single public/internet facing IP address.
A regional ELB load balancer is an ideal target for AWS Global Accelerator. By using a regional ELB load balancer, you can precisely distribute incoming application traffic across backends, such as Amazon EC2 instances or Amazon ECS tasks, within an AWS Region.
...
Create a VPC peering connection
- View the peering connection. Confirm that the status is Active.
- View the source VPC. ...
- View the destination VPC.
Elastic Load Balancing automatically distributes your incoming application traffic across all the EC2 instances that you are running.
How does global load balancing work?
Global server load balancing (GSLB) refers to the intelligent distribution of traffic across server resources located in multiple geographies. The servers can be on premises in a company's own data centers, or hosted in a private cloud or the public cloud.
If you are using a single NLB deployed across multiple Availability Zones, you can use the Availability Zone-specific DNS names provided by the NLB in your DNS configuration.

Therefore, the NLB has much less work to do than an ALB. As a result, the NLB needs significantly less time to forward an incoming request. So when performance is crucial to your workload, you should consider using an NLB to reduce latency.
Path-based routing is one of the unique features offered by Application Load Balancer. Path-based routing is also referred to as URL-based routing. The Application load balancer will forward the requests to the specific targets based on the Rules configured in the load balancer.
NLB is commonly installed on the actual backend servers to integrate the load balancing with the backend. This creates a requirement that the backend servers usually need to be on the same subnet for the NLB intra-cluster communication to work.
References
- https://interviewmania.com/discussion/37367-html-html-miscellaneous
- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-security-groups.html
- https://eresources.nlb.gov.sg/main/Help/HowDoI
- https://medium.com/awesome-cloud/aws-difference-between-application-load-balancer-and-network-load-balancer-cb8b6cd296a4
- https://platform9.com/docs/kubernetes/create-multi-master-cluster
- https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html
- https://en.wikipedia.org/wiki/Node_(physics)
- https://aws.amazon.com/about-aws/whats-new/2018/10/network-load-balancer-now-supports-inter-region-vpc-peering/
- https://www.boardinfinity.com/blog/path-based-routing-on-aws-alb/
- https://aws.amazon.com/about-aws/whats-new/2021/02/application-load-balancer-supports-application-cookie-stickiness/
- https://aws.amazon.com/about-aws/whats-new/2018/02/network-load-balancer-now-supports-cross-zone-load-balancing/
- https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html
- https://www.lepide.com/blog/8-different-methods-to-identify-privileged-users/
- https://learn.microsoft.com/en-us/microsoft-365/admin/create-groups/compare-groups
- https://cloud.google.com/kubernetes-engine/docs/concepts/types-of-clusters
- https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html
- https://www.techtarget.com/searchdisasterrecovery/definition/Network-Load-Balancing-NLB
- https://www.imperva.com/learn/availability/sticky-session-persistence-and-cookies/
- https://www.sciencedirect.com/topics/computer-science/network-load-balancing
- https://intellipaat.com/community/42600/what-is-the-difference-between-vpc-security-group-and-ec2-security-group
- https://kemptechnologies.com/load-balancer/load-balancing-algorithms-techniques
- https://github.com/rgl/azure-content/blob/master/articles/app-service-web/web-sites-nodejs-chat-app-socketio.md
- https://stackoverflow.com/questions/63235672/why-is-it-that-an-nlb-in-aws-does-not-require-a-security-group
- https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-listeners.html
- https://www.manageengine.com/log-management/amazon-vpc-security-groups.html
- https://stackoverflow.com/questions/67250191/is-it-possible-to-achieve-path-based-routing-behind-aws-nlb
- https://docs.aws.amazon.com/efs/latest/ug/accessing-fs-create-security-groups.html
- https://store.chipkin.com/articles/can-bus-protocol-10-minute-lesson
- https://serverfault.com/questions/957092/does-aws-nlb-accept-traffic-with-destination-ips-different-from-its-own
- https://stackoverflow.com/questions/10494431/sticky-and-non-sticky-sessions
- https://portswigger.net/web-security/websockets
- https://www.geeksforgeeks.org/what-is-web-socket-and-how-it-is-different-from-the-http/
- https://docs.amazonaws.cn/en_us/apigateway/latest/developerguide/getting-started-with-private-integration.html
- https://docs.oracle.com/cd/E29584_01/webhelp/PerfTuning/src/cperf_load_balancing_and_session_affinity.html
- https://us.profinet.com/how-many-nodes-can-be-connected-on-a-profibus-network/
- https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-network-to-support-nlb-operation-mode
- https://docs.aws.amazon.com/whitepapers/latest/advanced-multi-az-resilience-patterns/network-load-balancer-nlb-architectures.html
- https://aws.amazon.com/premiumsupport/knowledge-center/security-group-load-balancer/
- https://thenewstack.io/the-challenge-of-scaling-websockets/
- https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-limits.html
- https://www.imanami.com/active-directory-security-groups-vs-distribution-groups/
- https://graphite.zendesk.com/hc/en-us/articles/4406964921879-Websocket-connection-blocked
- https://aws.amazon.com/blogs/architecture/serving-content-using-fully-managed-reverse-proxy-architecture/
- https://stormagic.com/company/blog/benefits-of-2-node-vs-3-node-cluster-configurations-at-the-edge/
- https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environments-cfg-nlb.html
- https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html
- https://www.haproxy.com/documentation/hapee/latest/load-balancing/protocols/websocket/
- https://kubernetes.io/docs/setup/best-practices/cluster-large/
- https://www.websitebuilderinsider.com/what-is-difference-between-alb-and-nlb-in-aws/
- https://social.technet.microsoft.com/Forums/lync/en-US/45914325-9ebd-42a9-b5f0-f6ecd604702b/maximum-nodes-supported-for-nlb-and-cluster-in-windows-server-2008-standard-edition-?forum=winservergen
- https://www.alibabacloud.com/help/en/server-load-balancer/latest/what-is-nlb
- https://www.onixnet.com/insights/nodes-vs-clusters
- https://aws.amazon.com/elasticloadbalancing/network-load-balancer/
- https://avinetworks.com/what-is-load-balancing/
- https://www.techtarget.com/searchnetworking/answer/Application-vs-network-load-balancing-Whats-the-difference
- https://mobileapp.nlb.gov.sg/get-started-with/mylibrary/
- https://aws.amazon.com/global-accelerator/faqs/
- https://eng.libretexts.org/Courses/Delta_College/C_-_Data_Structures/14%3A_Binary_Trees/14.03%3A_Binary_Tree_Properties
- https://www.checkpoint.com/cyber-hub/cloud-security/what-is-aws-security-groups/
- https://jayendrapatil.com/category/aws/nlb/
- https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2684729/
- https://acloudguru.com/forums/aws-certified-security-specialty/waf-integration
- https://www.techtarget.com/searchaws/definition/AWS-Network-Load-Balancer-NLB
- https://www.uwec.edu/kb/article/drives-establishing-windows-file-and-folder-level-permissions/
- https://bharathi-batthula6.medium.com/aws-network-load-balancer-nlb-eab3720aa8b1
- https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html
- https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-security-groups.html
- https://download.doubletake.com/_download/dt53/docs/Availability/User's%20Guide/Content/SecurityGroups.htm
- https://blog.exosite.com/embedded-iot-protocols-websocket
- https://ably.com/blog/websockets-vs-long-polling
- https://sysdig.com/blog/aws-security-groups-guide/
- https://ably.com/blog/can-webtransport-replace-websockets
- https://middleware.io/blog/round-robin-load-balancers/
- https://stackoverflow.com/questions/21941241/if-websockets-use-a-tcp-connection-is-communication-over-them-as-slow-as-tcp
- https://stackoverflow.com/questions/70493992/aws-ec2-does-network-load-balancer-have-security-groups
- https://www.1e.com/blogs/creating-windows-cluster-part-6-creating-network-load-balancing-cluster/
- https://docs.aws.amazon.com/elasticloadbalancing/latest/application/sticky-sessions.html
- https://websockets.readthedocs.io/en/stable/topics/memory.html
- https://www.atatus.com/blog/websocket-libraries-for-nodejs/
- https://serverfault.com/questions/1113315/how-many-nodes-can-we-add-to-windows-failover-clustering
- https://aws.amazon.com/premiumsupport/knowledge-center/ec2-find-security-group-resources/
- https://doc.dataiku.com/dss/latest/troubleshooting/problems/websockets.html
- https://access.redhat.com/solutions/900933
- https://github.com/awsdocs/elb-network-load-balancers-user-guide/blob/master/doc_source/target-group-register-targets.md
- https://social.technet.microsoft.com/Forums/en-US/c30b87e9-0161-4acb-b00e-beb09365082e/simple-test-of-an-nlb-cluster?forum=winservergen
- https://aws.amazon.com/premiumsupport/knowledge-center/elb-attach-elastic-ip-to-public-nlb/
- https://www.edureka.co/community/10535/do-you-get-charged-for-a-security-group-in-aws-ec2
- https://aws.amazon.com/blogs/compute/building-serverless-multi-region-websocket-apis/
- https://browsee.io/blog/websocket-vs-http-calls-performance-study/
- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/working-with-security-groups.html
- https://jayendrapatil.com/aws-classic-load-balancer-vs-application-load-balancer/
- https://www.jscape.com/blog/load-balancing-algorithms
- https://www.cise.ufl.edu/~sahni/cop3530/slides/lec204.pdf
- https://awsinsider.net/articles/2017/02/06/vpc-security-groups.aspx
- https://learn.microsoft.com/en-us/windows-server/networking/technologies/network-load-balancing
- https://stackoverflow.com/questions/17448061/how-many-system-resources-will-be-held-for-keeping-1-000-000-websocket-open
- https://ably.com/topic/webrtc-vs-websocket
- https://quizlet.com/554059558/aws-cloud-practitioner-flash-cards/
- https://learn.microsoft.com/en-us/azure/virtual-network/network-security-group-how-it-works
- https://aws.amazon.com/premiumsupport/knowledge-center/dynamic-port-mapping-ecs/
- https://blog.cloudcraft.co/alb-vs-nlb-which-aws-load-balancer-fits-your-needs/
- https://iamondemand.com/blog/elb-vs-alb-vs-nlb-choosing-the-best-aws-load-balancer-for-your-needs/
- https://www.nlb.gov.sg/main/home
- https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/network-load-balancing-concept-notes
- https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
- https://blog.gops.ca/posts/disable-nlb-cross-zone-load-balancing.html
- https://aws.amazon.com/elasticloadbalancing/faqs/
- https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html
- https://learn.microsoft.com/en-us/azure/load-balancer/tutorial-cross-region-portal
- https://cloud.google.com/load-balancing/docs/ssl-certificates
- https://learn.microsoft.com/answers/questions/802875/does-azure-load-balalncer-support-websockets.html
- https://4sysops.com/archives/configuring-network-load-balancing-nlb-for-a-windows-server-cluster/
- https://www.ibm.com/docs/STSLR9_8.3.1/com.ibm.fs9200_831.doc/svc_host_clusters.html
- https://aws.amazon.com/blogs/storage/transferring-file-data-across-aws-regions-and-accounts-using-aws-datasync/
- https://www.amazonaws.cn/en/new/2021/network-load-balancer-tls-1-3/
- https://news.ycombinator.com/item?id=19014117
- https://alexhultman.medium.com/millions-of-active-websockets-with-node-js-7dc575746a01
- https://trendmicro.com/cloudoneconformity/knowledge-base/azure/ActiveDirectory/users-can-create-security-groups.html
- https://serverfault.com/questions/1023138/network-load-balancer-for-multiple-subnet-ips
- https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.1/guide/service/nlb_ip_mode/
- https://avinetworks.com/glossary/network-load-balancer/
- https://www.nginx.com/resources/glossary/session-persistence/
- https://stackoverflow.com/questions/35468388/aws-security-group-inbound-rule-allow-lambda-function
- https://www.serverbrain.org/administration-practice-2003/nlb-cluster-concepts.html
- https://aws.amazon.com/premiumsupport/knowledge-center/connect-s3-vpc-endpoint/
- https://github.com/aws/aws-cdk/issues/11943
- https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-update-security-groups.html
- https://techcommunity.microsoft.com/t5/microsoft-365-groups/limit-of-users-a-security-group-can-have-in-microsoft-365/td-p/1538853
- https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.4/guide/use_cases/nlb_tls_termination/
- https://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html
- https://gist.github.com/0817e7d37ea8daab6d2f
- https://aws.amazon.com/blogs/networking-and-content-delivery/application-load-balancer-type-target-group-for-network-load-balancer/
- https://aviatrix.com/learn-center/cloud-security/aws-security-groups/
- https://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html
- https://www.edureka.co/community/171354/azure-network-security-group-vs-route-tables
- https://learnk8s.io/how-many-clusters
- https://www.channelnewsasia.com/singapore/nlb-public-libraries-covid-19-rules-time-national-archives-963701
- https://stackoverflow.com/questions/54730264/how-does-aws-nlb-work-when-it-comes-to-routing-packets
- https://www.nginx.com/resources/glossary/global-server-load-balancing/
- https://stats.stackexchange.com/questions/488429/as-we-increase-the-number-of-clusters-the-between-cluster-variability-increases
- https://www.ibm.com/docs/SSZJPZ_11.3.0/com.ibm.swg.im.iis.found.admin.common.doc/topics/wsisinst_install_prmssns_grps_win5plus.html
- https://docs.aws.amazon.com/lambda/latest/operatorguide/networking-vpc.html
- https://www.knowledgehut.com/tutorials/aws/nacl-vs-security-groups
- https://learn.microsoft.com/en-us/exchange/recipients-in-exchange-online/manage-mail-enabled-security-groups
- https://www.tutorialspoint.com/binary-trees-and-properties-in-data-structures
- https://docs.aws.amazon.com/prescriptive-guidance/latest/load-balancer-stickiness/welcome.html
- https://blogs.perficient.com/2012/05/22/configuring-network-load-balancing-nlb/
- https://www.quora.com/What-should-you-not-use-WebSockets-for
- https://docs.aws.amazon.com/AmazonECS/latest/developerguide/load-balancer-types.html
- https://www.scalecomputing.com/blog/best-practice-always-3-nodes-minimum-in-a-cluster
- http://www.findoutthat.com/how-many-security-group-can-attach-to-aws-ec2-instance/
- https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html
- https://www.wallarm.com/what/grpc-vs-websocket-when-is-it-better-to-use
- https://confluence.atlassian.com/jirakb/sticky-sessions-for-aws-nlb-over-tls-1064091930.html
- https://www.geeksforgeeks.org/isro-isro-cs-2009-question-30/
- https://ably.com/topic/websocket-vs-rest
- https://aws.amazon.com/blogs/networking-and-content-delivery/using-aws-lambda-to-enable-static-ip-addresses-for-application-load-balancers/