Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Micro-service database connection pool resetting method and system

A database and micro-service technology, applied in the computer field, can solve problems such as large manpower consumption and service interruption, and achieve the effect of improving security, avoiding service interruption, and avoiding large manpower consumption

Pending Publication Date: 2022-06-07
珠海紫讯信息科技有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the traditional microservice architecture, the microservice needs to be restarted to reset the database connection pool. When multiple database connection pools need to be reset, multiple microservices need to be restarted, which not only consumes a lot of manpower, but also prone to service interruption

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
  • Micro-service database connection pool resetting method and system
  • Micro-service database connection pool resetting method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048]The general idea of ​​the technical solutions in the embodiments of the present application is as follows: a component package containing a reset interface is created and embedded in the microservice, the configuration center matches the microservice information registered when the microservice is started based on the received reset instruction, and based on the reset The command and microservice information generate a reset request and send it to the component package. The component package resets the database connection pool through the reset interface and reset request without restarting the microservice, which improves the convenience of resetting the database connection pool and stability.

[0049] Please refer to Figure 1 to Figure 2 As shown, a preferred embodiment of a microservice database connection pool reset method of the present invention includes the following steps:

[0050] Step S10: Create a public component package that includes a reset interface of t...

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 provides a micro-service database connection pool resetting method and system in the technical field of computers, and the method comprises the following steps: step S10, creating a component package containing a resetting interface of a database connection pool, and embedding the component package into each micro-service; step S20, after each micro-service is started, registering micro-service information to a configuration center of the micro-service; step S30, the configuration center matches corresponding micro-service information based on the received reset instruction, generates a reset request based on the reset instruction and the micro-service information, and sends the reset request to a component packet; step S40, the component packet verifies the received reset request; and step S50, the component package resets the database connection pool through the reset interface and the reset request. The method has the advantages that the convenience and the stability of resetting the database connection pool are greatly improved.

Description

technical field [0001] The present invention relates to the technical field of computers, in particular to a method and system for resetting a connection pool of a microservice database. Background technique [0002] Microservice architecture is a new technology for deploying applications and services in the cloud, where microservices can run in "own programs" and communicate with HTTP-type APIs through "lightweight devices." In the microservice scenario, a company may have dozens or even hundreds of microservices. When a database migration occurs, a password expires, or the database IP needs to be changed, the database connection pool of the microservice needs to be reset. [0003] In the traditional microservice architecture, to reset the database connection pool, the microservice needs to be restarted. When multiple database connection pools need to be reset, multiple microservices need to be restarted, which not only consumes a lot of manpower, but also needs to be resta...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/25G06F9/445
CPCG06F16/252G06F9/4451
Inventor 刘志海林灿辉
Owner 珠海紫讯信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products