Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

target pools vs backend services vs regional backend service difference?

While exploring google cloud platform's Load balancer options Advanced Menu shows multiple options which are a bit confusing.

there are multiple backends

  • backend service -> HTTP(S) LB
  • backend bucket -> HTTP(S) LB
  • regional backend service -> internal LB
  • target pools -> TCP LB

Just going through documentations for target pools and backend-service Looks to me they have similar parameters to configure and in the basic menu both are listed as backends.

I understand that target pools are used by TCP forwarding rules where as backend-service used by url map ( http/s Load balancer).

But Are there any other difference between these or is it just names?

like image 575
Prashant Bhate Avatar asked Feb 20 '18 22:02

Prashant Bhate


People also ask

What is a target pool?

Target pools work with forwarding rules that handle TCP and UDP traffic. You must create a target pool before you can use it with a forwarding rule. Target pools use legacy HTTP health checks. A target pool is made up of the following properties: name. [Required] The name of this target pool.

What are the three categories of GCP load balancing?

HTTP and HTTPS traffic:Global external HTTP(S) load balancer (classic) Regional external HTTP(S) load balancer. Internal HTTP(S) load balancer.

What are the different types of Google cloud load balancers?

Proxy based load balancers (TCP and SSL) Google Cloud also offers proxy-based load balancers for TCP and SSL traffic, and they use the same globally distributed infrastructure. Use TCP proxy load balancer when you are dealing with TCP traffic and do not need SSL offload.

What are backend services in GCP?

A backend is one or more endpoints that receive traffic from a Google Cloud load balancer, a Traffic Director-configured Envoy proxy, or a proxyless gRPC client. There are several types of backends: Instance group containing virtual machine (VM) instances.


1 Answers

A Backend Bucket allow you to use Google Cloud Storage bucket with HTTP(S) load balancing. It can handle request for static content. This option would be useful for a webpage that with static content and it would avoid the costs of resources than a instance would need.

The Backend Service is a centralized service that manages backends, which in turn manage an indeterminate number of instances that handle user requests.

The Target Pools resource defines a group of instances that should receive incoming traffic from forwarding rules. When a forwarding rule directs traffic to a target pool, Google Compute Engine picks an instance from these target pools based on a hash of the source IP and port and the destination IP and port.

This is why they both are listed as backend-services, because at the end they both do the same, but they specify for two different kind of load balancer. The backend service works for HTTP(S) load balancer and target pools are used for forwarding rules.

like image 129
Katie Sinatra Avatar answered Oct 02 '22 14:10

Katie Sinatra