Score:0

When should I add multiple network endpoint groups to a backend service?

vn flag

When configuring a Google Cloud Load Balancer, I'm presented with the option to add multiple Network Endpoint Groups to my Backend Services.

A lot of the literature around Cloud Load Balancing focuses on the geographic distribution of request across identical services representing one boundary deployed across different locations.

Google Cloud documentation mentions that serverless Network Endpoint Groups are "A Cloud Run service or a group of services sharing the same URL pattern." I'm not 100% sure what is meant by "the same URL pattern", but if that means something like "are the same application" or "have the same routes", would this rule also apply to the Backend Services or can Backend Services be comprised of Network Endpoint Groups with different "URL patterns"?

In my applications case, we use multiple regions for compliance with data residency requirements where each region represents a separate boundary with different data. This means our application logic switches DNS (api-ca, api-us) based the user consciously selecting which region to store their data in.

With that established, my specific questions are:

  • Given that they are not interchangeable, does it still make sense to configure my Network Endpoint Groups for all my regions under a single Backend Service?
  • Keep in mind that I'm also working under the constraint that Google Cloud appears to have a tight quota on Backend Services.

Please note:

  • The reason why I need to use cloud load balancing is because at least one of the regions we deploy a Google Cloud Run service to does not support custom domain mappings.
Score:0
gh flag

To Start with -

A URL pattern contains a domain plus a pattern that can match a URL path, for instance: example.com/*/animals/** . Any of the following URL requests could match the URL pattern example: example.com/singapore/animals example.com/australia/animals/spiders example.com/australia/animals/marsupials/koala.png

I understand that you are using Cloud Run to host your application and hence trying to use serverless NEG and

a) Yes, It is fine to configure multiple NEGs (1 NEG per region) for the same backend service but it has few limitations as described in description

b) Also using the Cloud Run & HTTP(s) load balancer combination helps you map the single URL to multiple identical serverless apps running in different regions as described in the doc which might be beneficial in your scenario.

I believe you are trying to configure Cloud Run in one of the regions mentioned in the ‘Cloud Run domain mapping limitations’ and hence your facing issue in using Custom domain mapping. If you are trying to configure in any other region, please share the error message.

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.