23

I was not able to find documentation about how to connect GCF with Google Cloud Endpoints. As I understand Google Cloud Endpoints can be configured to access internal cloud resources. It is not clear how to use load balancer with Endpoints service as well.

In the Building Scalable Web Apps with Cloud Datastore article it indicates that you should be able to configure a direct connection from Cloud Endpoints to Cloud Functions. There is no indication that you would need to have any Compute Engine or other infrastructure between them. Is there any documentation or tutorial on how to connect Cloud Endpoints to Cloud Functions? Did somebody manage to connect those two services?

Artsiom Miksiuk
  • 3,896
  • 9
  • 33
  • 49
  • It may be possible using ESP (Extensible Service Proxy). It is basically a custom Nginx server that could use LUA and subrequests to trigger a cloud function. https://github.com/cloudendpoints/esp – optimalisatie Jul 09 '18 at 12:27

2 Answers2

8

At this time, there is no way to connect GCF with Endpoints. Sorry about that!

Rose Davidson
  • 652
  • 4
  • 7
  • 7
    This keeps me away from using GCF. Authorization should not be a part of my function itself. I also don't want my GCF to be DDoS-ed, making me to pay big buck for something I am unable to protect. – Igor Soloydenko Dec 26 '17 at 17:59
  • 3
    AWS has API Gateway to manage their Lambda Functions, in a similar way does Google has anything to manage cloud functions? – Divya Galla Jan 25 '18 at 03:25
  • There is an EAP starting on Cloud Endpoints for GCF; see https://groups.google.com/d/msg/google-cloud-endpoints/gwmuJNEgfAI/SIgtjv9VBgAJ for more details. – Rose Davidson Mar 05 '19 at 20:07
  • Now it's possible – Supersharp Jul 10 '20 at 07:46
3

The pair of Google Cloud Endpoints and Google Cloud Functions and AWS API Gateway and AWS lambda are not same.

Google Cloud Endpoints monitor your existing API analytics and limits its usage via API Credentials.

So to link your Google Cloud Endpoints and Google Cloud Functions, you have to use Google App Engine or Google Compute Engine to connect them.

Ashutosh Kumar
  • 459
  • 3
  • 12