A service calling method, device and electronic equipment

A service invocation and micro-service technology, applied in the field of service invocation methods, devices and electronic equipment, can solve problems such as low development efficiency, and achieve the effects of improving efficiency, simplifying development volume, and simplifying the process of code invocation

Active Publication Date: 2021-07-09
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the invoked microservices will expose their interfaces to other applications, and most of the interfaces of these microservices support HTTP (HyperText Transfer Protocol, hypertext transfer protocol) access mode
The codes invoked through HTTP access methods are generally repetitive, so developers need to write a lot of HTTP access codes, and after calling microservices, they also need to write a lot of codes to process the return value of microservices, resulting in Development efficiency is low

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 service calling method, device and electronic equipment
  • A service calling method, device and electronic equipment
  • A service calling method, device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The technical solutions in the embodiments of the present invention will be described below in conjunction with the drawings in the embodiments of the present invention.

[0048] In order to solve the micro service by HTTP access, it is necessary to develop repeated HTTP access to calling code. Embodiments of the present invention provide a service calling method, apparatus, and electronic device to simplify the development of code and improve development efficiency.

[0049] The service call method of the embodiment of the present invention will be described in detail below.

[0050] See figure 1 , figure 1 A flowchart of a service call method for an embodiment of the present invention, including the following steps:

[0051] S101, according to the interface of each micro service stored, configuring the various micro services through the configuration page to obtain the configuration of each micro service.

[0052]Among them, micro-service is an emerging software architect...

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

Embodiments of the present invention provide a method, device, and electronic device for invoking a service, which are applied in the field of Internet technology. The method includes: configuring each microservice through a configuration page according to the interface of each microservice stored locally, and obtaining each microservice Microservice configuration results; according to the interface of each microservice and the configuration results of each microservice, the code generation tool can automatically generate each microservice code; when calling each microservice, automatically call each microservice code through interface annotations, Get the return value corresponding to each microservice. The embodiment of the present invention configures microservices and automatically generates microservice codes to reduce the amount of code development, and the logic of the generated microservice codes is unified, which can improve the stability of the system; automatically call each microservice through interface annotation Code, code calling process is simple.

Description

Technical field [0001] The present invention relates to the field of Internet technologies, in particular to a service calling method, apparatus, and electronic device. Background technique [0002] In Internet companies, systems for providing services often need to call hundreds of micro services, while micro-service is an emerging software architecture, which is to split a large single application and service to dozens of support micro. service. A micro-service policy can make the work easier, it expands a single component instead of the entire application stack to meet the service level agreement. [0003] However, the calling micro service exposes its interface to other applications, and these micro-service interfaces support the access method of HTTP (Hypertext Transfer Protocol, Hypert Transfer Protocol). The code called by HTTP is generally repeated, then the developer needs to write a large number of HTTP access calls, and after calling the micro service, the return value...

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 Patents(China)
IPC IPC(8): H04L12/24H04L29/08
CPCH04L41/08H04L67/02
Inventor 周正
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD
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
Try Eureka
PatSnap group products