Editor’s note: this is a hungry? The architect – li-wei sun in Denver technology sponsored by the department of community and hungry? The technique salon of the nuggets x hungry? | special architectural practice “sharing activities. What did the lecturer bring this time? I had the honor to participate in this activity, and made a summary of the content shared by the lecturer, hoping to help the students who could not be present ~ limited by my own level, the summary may be a little deviation or not in place and unclear, please forgive me and point out ~

Stargate Cluster is an innovative container-based microservices gateway that integrates API permission authentication and audit management. At present, it has been used in ele. me on a large scale and integrated with another product API Portal to automatically generate HTTP and SOA interface documents, greatly improving the efficiency of business system research and development.

The basic concept

Application Programming Interfaces (apis) are predefined functions. An Application encapsulates its service capabilities into apis and opens them to users through an API gateway.

The API includes basic information, request paths and parameters at the front and back ends, and request-related protocols.

API group

An API group is a collection of the same business API, and an API group can be regarded as a service (such as credit inquiry service). API developers manage all apis within a group of apis.

The environment

Environments define different states in the API lifecycle management process, and apis can be published to different custom environments.

Flow control

Traffic control limits the number of API calls by user, application, and time segment to protect back-end services.

application

An APP defines the identity of an API caller. An API can be licensed to multiple applications, or multiple apis can be licensed to the same application.

Summary: API gateway is not a business system, it is a similar to the request forwarding system, its existence is to control the request business permission unified management.

Stargate Cluster features

• Automatically map RPC services to HTTP API services

• Deeply integrated publishing system, automated deployment of HTTP services

• Hold Groovy scripts

• Each business is an independent Docker cluster and does not affect each other

The cluster converts the interface into an HTTP interface for the front-end, as shown in the following figure

In the front end of the figure above, the third party including the Web App invokes Stargate Cluster through the HTTP interface. The Stargate Cluster performs a series of authentication verification and permission control, and then sends the traffic to the specific back-end business system

Stargate Cluster supports HTTP and CPC, developers just need to submit the interface definition and the front end will work

After submission, Cluster provides full automatic deployment, which supports test environment and online environment. Cluster also supports automatic generation of HTTP documents, saving developers’ time to write documents

Cluster benefits:

Every company is doing API gateway, comparing Ele. me with some cloud factory

Advantages:

1. Ele. me has realized automatic deployment online

2. Automatically escape the HTTP interface

3. Support HTTP and RPC

Disadvantages:

1. No SDK

2. Do not know the QPS currently loaded