Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

A multi-tenant implementation method and system under a micro-service architecture

An implementation method and technology of microservices, applied in the Internet field, can solve the problems of high maintenance cost, disadvantageous version management and centralized monitoring, and lack of system isolation, so as to improve the utilization rate of resources and save costs.

Pending Publication Date: 2019-06-07
BOCO INTER TELECOM
View PDF13 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the former uses independent hardware and software to deploy an independent system for each tenant to achieve complete isolation of the tenant system, but the maintenance cost is high. When the system needs to be upgraded or monitored, it needs to be carried out separately, which is not conducive to unified version management. and centralized monitoring; the latter, although the method of using a system to transform data and interfaces does not increase the maintenance cost, it requires a lot of transformation of the existing system, from the storage layer to the interface layer of all microservices. Add tenant tags, and because the system is not isolated, there will be defects in mutual influence between tenants and data security

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A multi-tenant implementation method and system under a micro-service architecture
  • A multi-tenant implementation method and system under a micro-service architecture
  • A multi-tenant implementation method and system under a micro-service architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0063] According to an embodiment of the present invention, a microservice-based multi-tenant implementation method is provided, such as figure 1 shown, including:

[0064] Step 101: Start the microservice, obtain its own tenant label, generate a registration request containing the tenant label, and send the registration request to the registration center;

[0065] According to the embodiment of the present invention, the microservice is deployed to one tenant, or shared to multiple tenants;

[0066] Correspondingly, in step 101, obtain its own tenant label, and generate a registration request containing the tenant label, specifically: the microservice obtains one or more tenant labels of itself in its own configuration file, and generates a request containing one or more tenant labels Tag registration request.

[0067] Usually, when isolation requirements are strict, an independent microservice is deployed for each tenant, and the microservice contains a user label; for som...

Embodiment 2

[0089] According to an embodiment of the present invention, a microservice-based multi-tenant implementation system is provided, such as image 3 As shown, including: microservice 200 and registration center 300;

[0090] Among them, microservices 200, including:

[0091] Start module 201, for starting microservice 200;

[0092] The first acquiring module 202 is configured to acquire the tenant label of the microservice 200 after the startup module 201 starts the microservice 200;

[0093] The first generating module 203 is configured to generate a registration request containing the tenant label obtained by the first obtaining module 202;

[0094] The first sending module 204 is configured to send the registration request generated by the first generating module 203 to the registration center 300;

[0095] The first receiving module 205 is configured to receive the registration success response returned by the registration center 300 after the first sending module 204 send...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a multi-tenant implementation method and system under a micro-service architecture, and belongs to the technical field of networks, and the method comprises the steps: a micro-service is started, a tenant tag of the micro-service is obtained, a registration request containing the tenant tag is generated, and the registration request is sent to a registration center; The registration center marks the micro-service according to the tenant label contained in the received registration request, and returns a registration success response to the micro-service; When the micro-service is called by the tenant, a service request containing a tenant label of the micro-service is generated and the service request is sent to a registration center; The registration center searches the corresponding available micro-service according to the tenant label contained in the service request, and returns the information of the available micro-service to the micro-service; And the micro-service calls the available micro-service according to the information of the available micro-service. According to the method provided by the invention, not only is the unified management of the micro-services realized, but also the isolation of the micro-services among different tenants is realized.

Description

technical field [0001] The present invention relates to the technical field of the Internet, in particular to a multi-tenant implementation method and system under a microservice architecture. Background technique [0002] With the rapid development of Internet technology, more and more new terms are ringing in people's ears, such as: microservice, which is an emerging software architecture, which splits a large single application and service into dozens of Supported microservices. The strategy for each microservice is to make life easier by scaling individual components rather than the entire application stack to meet service level agreements. Related to microservices is the registration center, which is a service discovery mechanism in the microservice architecture. Each microservice must register itself in the registration center, and when the services access each other, the available service addresses are obtained through the registration center. Then make the call. ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/08
Inventor 张磊
Owner BOCO INTER TELECOM
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products