Hi, The URL Fetch service is not available for Node.js on App Engine 
Flexible. However, for cross-service communication 
<https://cloud.google.com/appengine/docs/flexible/nodejs/an-overview-of-app-engine#communication_between_services>,
 
you can send HTTP requests to a service by including its name in the URL or 
use Cloud Pub/Sub 
<https://cloud.google.com/appengine/docs/flexible/nodejs/writing-and-responding-to-pub-sub-messages>.
 
You may use the Google Cloud Client library 
<https://cloud.google.com/nodejs/docs/reference/pubsub/0.18.x/> for Node.js 
to access the Pub/Sub service from a Node.js app.

Access to a Flex app is through the HTTP(S) load balancer which currently 
does not have the ability to access to IP addresses (since it doesn’t 
provide static IPs). I should add that HTTPS load balancer for GAE Flex 
provides a public IP address. When you route to that IP address from a Flex 
instance, you are going out of the GCE virtual network and then back in 
again.

To have accessible internal IPs for your resources, you may consider 
working with Compute Engine and setting up Internal Load Balancing 
<https://cloud.google.com/compute/docs/load-balancing/internal/>.



On Sunday, April 15, 2018 at 11:47:55 AM UTC-4, Epä Järjestys wrote:
>
>
> Hello!
>
> I have read that it is possible to issue direct http requests between 
> services within the same project inside the AppEngine network, without 
> traversing the internet, using the URL Fetch Service. But it seems this is 
> only available in Python, Go and PHP.
>
> Is there any way to make this work in Node.js?
>
> I.e. would something like this 
> <https://stackoverflow.com/questions/3653065/get-local-ip-address-in-node-js> 
> work to get the local IP address inside a service and then let it be 
> fetched once by any other service who would like to use it to make 
> subsequent calls go through the local network?
> I suppose that in that way, if it would work at all, I would get the IP 
> address of the specific service *instance*, not some internal address to 
> the service's load-balancer. Correct?
>
> I would really like to have just any kind of hack to make this work 
> somehow, to make internal requests to the load-balancer of another service 
> inside the same AppEngine Flexible project.
>
> Any help or information appreciated.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/043fdd12-3dbf-4a49-8c7b-7b125ff46d9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengin... Epä Järjestys
    • [google-app... 'Katayoon (Cloud Platform Support)' via Google App Engine

Reply via email to