Score:0

When using Cloud Platform, is it good to have separate load balancing for HTTP and socket-based connections or share the same IP address?

tr flag

For the sake of simple discussion, one can assume the "Cloud Platform" I talk about refer to Google Cloud or Amazon WS.

Currently I have a web server that mainly handles HTTP requests. However there will be real-time features (for example a live chat or video streaming) as well and those features are handled via socket-based connections in another server.

To clarify, actually the case is a bit more complicated: the "HTTP server" and the "socket server" actually both consist of multiple servers.

Currently the infrastructure is assumed to be such that all HTTP requests that goes to those HTTP servers will come through a load balancer and share the same IP address.

The socket-based connection is assumed to have much higher intensity of requests coming in than the HTTP requests.

Now here comes my problem: I don't know whether the socket-based connections should go through the same load balancer or will have a different load balancer assuming I am using a Cloud Platform for all my servers.

On one side clearly using one load balancer will reduce cost (as only one public ip address is needed to be purchased), and the load balancer provided by the Cloud Platform has pretty good spec as far as I know. However based on my research, many companies not only use a different load balancer, but they actually do the load balancing via their own software instead of just using the load balancer provided by the cloud service for the socket-based connections, and only the socket-based connections. I don't really understand what kind of aspect I need to take into consideration in order to make a decision on this issue.

Score:0
pe flag

Load balancing aspects

To decide which load balancer best suits your implementation of Google Cloud, consider the following aspects of Cloud Load Balancing:

  • External versus internal load balancing

  • Global versus regional load balancing

  • Premium versus Standard Network Service Tiers

  • Proxy versus pass-through load balancing

  • Traffic type

  • DDoS protections

I recommend you the following reference in order to choose the best load balancer for your implementation:

Choosing a load balancer

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.