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

Communication method and device for converting synchronization to asynchronization in on-line system

The technology of an online system and a communication method, applied in the field of communication, can solve the problems that messages cannot be returned, shorten the message sending time, etc., and achieve the effects of shortening the message sending time, improving the efficiency of message sending, and reducing the packet loss rate.

Active Publication Date: 2017-12-22
BANK OF CHINA
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the present invention provides a synchronous-to-asynchronous communication method in an online system, which shortens the message sending time through the cache mechanism and the coarse-grained two-level screening message mechanism, and solves the problem that the returned message is blocked by other instances when the system is deployed with multiple instances. Consumption processing, resulting in the problem that the message cannot be returned to the normal instance

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
  • Communication method and device for converting synchronization to asynchronization in on-line system
  • Communication method and device for converting synchronization to asynchronization in on-line system
  • Communication method and device for converting synchronization to asynchronization in on-line system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049]The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0050] see figure 1 , the present embodiment discloses a synchronous to asynchronous communication method in an online system, comprising the following steps:

[0051] S101: Parse the synchronization message, and construct a JMS message according to the content obtained after parsing;

[0052] preferred, see figure 2 , the specific execution process of S101 is as follows:

[0053] S201: Parse the synchronization message to obtain the content of the message,...

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 communication method for converting synchronization to asynchronization in an on-line system. According to the method, after a JMS message is constructed, whether a connection, a session and a producer are generated in a cache is judged based on a thread number corresponding to the JMS message; if yes, the connection, the session and the producer are multiplexed; and otherwise, a new connection, a new session and a new producer are created according to the thread number corresponding to the JMS message. In this way, the situation that a connection, a session and a producer need to be created again every time a message is sent is avoided, message sending time is shortened, and message sending efficiency is improved. Meanwhile, a correlation identifier of each message comprises a universally unique identifier (UUID) shared by threads and a self-increasing serial number; after the JMS message sent to a target MQ request queue is processed and returned to a return queue, a return message containing the UUID exclusive to an instance is screened coarsely, and therefore the same instance can only receive the message corresponding thereto; and then the return messages are screened finely through the self-increasing serial numbers, and therefore it is guaranteed that the return messages obtained through polling within preset time are correct return messages.

Description

technical field [0001] The present invention relates to the technical field of communication, and more specifically, to a communication method and device for converting synchronous to asynchronous in an online system. Background technique [0002] Most transactions between banks and financial systems are communicated through synchronous messages. In order to meet the requirements of large transaction volume, fast real-time delivery, and accurate message return, it is often necessary to convert synchronous messages to asynchronous processing. [0003] Although the existing technology can realize the synchronous to asynchronous communication mode, when a single message is sent to the shared queue by the main thread, it takes a long time to create a sending object every time, which cannot meet the requirements of fast and real-time return of messages. Message processing low efficiency. At the same time, when multiple instances are deployed, they may be received and discarded b...

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/546G06F2209/548
Inventor 詹丽韩英吴树海
Owner BANK OF CHINA
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