IP Library Granted Patent US 11,115,376
Granted Patent B2
US 11,115,376 · App. 16/796,679 · Granted Sep 7, 2021

Method and device for handling multi-tenant request

Inventor: Xinyu Jia (Hangzhou, CN)
Assignee: Advanced New Technologies Co., Ltd.
H04L61/15H04L61/1552H04L61/1582H04L67/2823H04L67/2871
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,115,376
App. No.
16/796,679
Granted
Sep 7, 2021
Kind
B2
Abstract

Implementations of the present specification provide a method and device for handling a multi-tenant request. A request to access an application from a user device is received, wherein the request includes a user identifier and request data. Tenant information corresponding to the user identifier is determined based on a mapping relationship between the user device and a tenant. Type information of the application is determined based on the request data. A first identifier of the application is extracted from the request data based on the type information of the application. The first identifier is modified to a second identifier based on the tenant information. A new request is determined based on the second identifier. The new request is sent to the application.

Claims (67)

1. A computer-implemented method, comprising:

receiving a request to access an application from a user device, wherein the request comprises a user identifier and request data, wherein the application is hosted by a server, and wherein the user identifier is associated with a user of the user device;

determining tenant information corresponding to the user identifier based on a mapping relationship between the user and a tenant;

determining type information of the application based on the request data;

extracting a first identifier of the application from the request data based on the type information of the application;

appending the tenant information to the first identifier of the application to obtain a second identifier;

determining a new request based on the second identifier;

sending the new request to the application;

receiving a response message for the new request, wherein the response message comprises the second identifier;

removing the tenant information from the second identifier to obtain the first identifier of the application;

determining a new response message based on the first identifier; and

returning the new response message to the user device.

2. The computer-implemented method of claim 1 , wherein extracting the first identifier of the application from the request data based on the type information comprises:

determining an identification field corresponding to the type information of the application based on a mapping relationship between an application type and the identification field;

extracting a field value of the identification field from the request data based on the identification field; and

using the field value as the first identifier.

3. The computer-implemented method of claim 2 , wherein the mapping relationship between the application type and the identification field is stored in a two-dimensional relationship table or stored in a storage system of a key value (KV) structure.

4. The computer-implemented method of claim 1 , wherein the extracting a first identifier of the application from the request data based on the type information comprises:

determining an extraction method of a field value of an identification field corresponding to the type information of the application based on a mapping relationship between an application type and the extraction method of the field value of the identification field;

extracting the field value of the identification field from the request data based on the extraction method; and

using the field value as the first identifier.

5. The computer-implemented method of claim 4 , wherein the mapping relationship between the application type and the extraction method of the field value of the identification field is stored in a two-dimensional relationship table or stored in a storage system of a key value (KV) structure.

6. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:

receiving a request to access an application from a user device, wherein the request comprises a user identifier and request data, wherein the application is hosted by a server, and wherein the user identifier is associated with a user of the user device;

determining tenant information corresponding to the user identifier based on a mapping relationship between the user and a tenant;

determining type information of the application based on the request data;

extracting a first identifier of the application from the request data based on the type information of the application;

appending the tenant information to the first identifier of the application to obtain a second identifier;

determining a new request based on the second identifier;

sending the new request to the application;

receiving a response message for the new request, wherein the response message comprises the second identifier;

removing the tenant information from the second identifier to obtain the first identifier of the application;

determining a new response message based on the first identifier; and

returning the new response message to the user device.

7. The non-transitory, computer-readable medium of claim 6 , wherein extracting the first identifier of the application from the request data based on the type information comprises:

determining an identification field corresponding to the type information of the application based on a mapping relationship between an application type and the identification field;

extracting a field value of the identification field from the request data based on the identification field; and

using the field value as the first identifier.

8. The non-transitory, computer-readable medium of claim 7 , wherein the mapping relationship between the application type and the identification field is stored in a two-dimensional relationship table or stored in a storage system of a key value (KV) structure.

9. The non-transitory, computer-readable medium of claim 6 , wherein the extracting a first identifier of the application from the request data based on the type information comprises:

determining an extraction method of a field value of an identification field corresponding to the type information of the application based on a mapping relationship between an application type and the extraction method of the field value of the identification field;

extracting the field value of the identification field from the request data based on the extraction method; and

using the field value as the first identifier.

10. The non-transitory, computer-readable medium of claim 9 , wherein the mapping relationship between the application type and the extraction method of the field value of the identification field is stored in a two-dimensional relationship table or stored in a storage system of a key value (KV) structure.

11. A computer-implemented system, comprising:

one or more computers; and

one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform operations comprising:

receiving a request to access an application from a user device, wherein the request comprises a user identifier and request data, wherein the application is hosted by a server, and wherein the user identifier is associated with a user of the user device;

determining tenant information corresponding to the user identifier based on a mapping relationship between the user and a tenant;

determining type information of the application based on the request data;

extracting a first identifier of the application from the request data based on the type information of the application;

appending the tenant information to the first identifier of the application to obtain a second identifier;

determining a new request based on the second identifier;

sending the new request to the application;

receiving a response message for the new request, wherein the response message comprises the second identifier;

removing the tenant information from the second identifier to obtain the first identifier of the application;

determining a new response message based on the first identifier; and

returning the new response message to the user device.

12. The computer-implemented system of claim 11 , wherein extracting the first identifier of the application from the request data based on the type information comprises:

determining an identification field corresponding to the type information of the application based on a mapping relationship between an application type and the identification field;

extracting a field value of the identification field from the request data based on the identification field; and

using the field value as the first identifier.

13. The computer-implemented system of claim 12 , wherein the mapping relationship between the application type and the identification field is stored in a two-dimensional relationship table or stored in a storage system of a key value (KV) structure.

14. The computer-implemented system of claim 11 , wherein the extracting a first identifier of the application from the request data based on the type information comprises:

determining an extraction method of a field value of an identification field corresponding to the type information of the application based on a mapping relationship between an application type and the extraction method of the field value of the identification field;

extracting the field value of the identification field from the request data based on the extraction method; and

using the field value as the first identifier.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 10, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053754/0625 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 31, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053743/0464 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 2, 2020
From: JIA, XINYU
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 051978/0317 →