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

Service calling method and device

A technology of service invocation and business exchange, which is applied in the field of communication and can solve problems such as inaccessibility and inability of consumers to complete process or service invocation

Pending Publication Date: 2020-07-14
刘奇峰
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] There are some problems in the way that service consumers and service providers complete intercommunication through third-party registration middleware such as etcd and zookeeper. For example, 1) the network channel through which third-party registration middleware detects whether the service provider is healthy and the consumer calls the provider If the network channel is different, it may happen that the consumer cannot complete the process or service call, but the third-party registration middleware monitors that the service provider is always healthy and normal; 2) If the service consumer is in the IPv4 network, and the service provider is in IPv6 In the network, at this time, even if consumers can obtain the provider address through a third party, they cannot access

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
  • Service calling method and device
  • Service calling method and device
  • Service calling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0069] This embodiment describes the method and process for the log service to implement basic functions based on the service exchange gateway.

[0070] The networking description of this embodiment is specifically as follows:

[0071] Such as image 3 As shown, the business exchange gateway runs as an independent server software on the device 192.168.1.10, and the opened TCP service port number is 1234; in order to call the log service, the application program acts as a TCP client and the business exchange gateway Establish a TCP connection; the log service component is a log service provider, and it also acts as a TCP client to establish a TCP connection with the service exchange gateway.

[0072] The business description of this embodiment is as follows:

[0073] The name of the log service provided by the log service component is identified as "my_log". The parameters that can be input include the application name, the module name that sends the log, the log level, and t...

Embodiment 2

[0086] This embodiment describes the method and process for the weather forecast service to implement basic functions based on the service switching gateway.

[0087] The networking description of this embodiment is specifically as follows:

[0088] Such as Figure 5 As shown, the networking structure of this embodiment is improved from Embodiment 1, specifically, the log service component in Embodiment 1 is replaced with a weather forecast service component.

[0089] The business exchange gateway runs on the device 192.168.1.10 as an independent server software, and the TCP service port number it opens is 1234; in order to call the weather forecast service, the application program establishes a TCP connection with the business exchange gateway as a TCP client. Connection; the weather forecast service component is a weather forecast service provider, and it also serves as a TCP client to establish a TCP connection with the service exchange gateway.

[0090] The business desc...

Embodiment 3

[0106] This embodiment describes the method and process for the smoke monitoring system to report the monitoring value based on the service exchange gateway.

[0107] The networking description of this embodiment is specifically as follows:

[0108] Such as Figure 7 As shown, the networking structure of this embodiment is specifically that the smoke monitoring software and the smoke alarm communicate through a service exchange gateway.

[0109] The business exchange gateway runs on the device 192.168.1.10 as an independent server software, and the opened TCP service port number is 1234; meanwhile, the device has an IPv6 address 2001::1, and is connected to the IPv6 network. The smoke monitoring software runs on the IPv4 network, and it acts as a TCPv4 client to establish a TCPv4 connection with the service exchange gateway; there are multiple smoke alarms in the system, running on the IPv6 network, and each alarm acts as a TCPv6 client to communicate with the business The s...

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 service calling method. The service calling method comprises the following steps that a service exchange gateway establishes connection with a service consumer and a service provider; and the service exchange gateway receives the message sent by the service consumer or the service provider, processes the message received from the service consumer or the service provider, and sends the processed message to the corresponding service provider or the service consumer. According to the invention, by introducing the service exchange gateway and the corresponding process calling method, various network problems possibly occurring in the traditional method are avoided, the implementation of heterogeneous network service calling is also simplified and standardized, and themain / standby and load sharing characteristics of the service component are further implemented based on the service exchange gateway.

Description

technical field [0001] The application of the present invention relates to the communication field, in particular to a method and device for invoking a service in cloud computing or a general distributed system. Background technique [0002] Remote Procedure Call (RPC, Remote Procedure Call) is a computer communication protocol that allows a program running on one computer to call a program on another remote computer through the network without knowing the network protocol that supports communication. In the traditional remote service invocation method, the service consumer needs to obtain the IP address and port number of the service provider before initiating a procedure call, and the IP address and port number may be manually input by the user or obtained from a configuration file, and then Or get it dynamically from middleware like etcd and zookeeper. With the rise of the concept of microservices, more and more software systems initiate process calls or service access a...

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): G06F9/54
CPCG06F9/548
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