API Platform Flashcards
1
Q
What is Cloud Endpoints?
A
- Develop, deploy, protect and monitor your API’s
- NGINX-based proxy (Extensible Service Proxy - ESP) and distributed architecture gives unparalleled performance and scalability.
- Provides insight with Stackdriver monitoring, trace and logging for BigQuery analysis
- Control who has access to your API and validate every call with JSON Web Tokens and Google API keys.
- Choose your own API framework and language, OR choose a Cloud Endpoints Framework in Java or Python
- Cost begins after 2M API calls per month at $3.00/m per million
2
Q
What are the main Cloud Endpoints features?
A
- Automatic load-balancing on App Engine
- User Authentication - JSON Web Token validation and interfaces to Firebase Auth, Google Auth and Auth0.
- Automated Deployment - deployed with your application on App Engine or as a container on Compute or Kubernetes
- Logging and Monitoring - Stackdriver
- Track and rate-limit API’s based on quota rules
- API Keys - validate on every API call
- Easy Integration - frameworks and open api
3
Q
What API Frameworks does Cloud Endpoints support?
A
- Endpoints Framework - for JSON/REST APIs implemented on App Engine with Java or Python
- Open API - for any JSON/REST APIs implemented on App Engine flexibile environment, Compute Engine, Kubernetes Engine or Kubernetes
- gRPC - for full-control over gRPC spec and API
4
Q
What is gRPC, it’s advantages and reasons to use it?
A
- based on Protocol Buffers for serializing structured data in a language and platform neutral way
- smaller, faster and more efficient than XML or other wire-format protocols
- offers better performance and security over REST+JSON
- promotes use of SSL to encrypt all data exchanges
- Uses HTTP/2, binary stream multi-plexed over a single TCP connection, allowing for efficient, scalable, performant APIs
- Headers are compressed
- Great for microservice developers
5
Q
How is Cloud Endpoints hosted, and how would you develop a REST API with Cloud Endpoints for OpenAPI?
A
- Cloud Endpoints is optimed for the Docker container environment, hosted on Compute Engine, Kubernetes Engine and App Engine flexible environment
To Devlop a REST API:
- Build your API in any language or REST framework that supports API description using an OpenAPI configuration file.
- Configure Endpoints: in the OpenAPI configuration file, API keys, authentication rules, etc)
- Deploy the Endpoints Configuration: Use the Cloud SDK to deploy your API to Google Service Management, used by Cloud Endpoints to manage your API.
- Deploy the API backend: deploy the proxy and API to a supported Cloud backend, such as Compute Engine