CN110908814A - Message processing method and device, electronic equipment and storage medium - Google Patents

Message processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110908814A
CN110908814A CN201911175594.9A CN201911175594A CN110908814A CN 110908814 A CN110908814 A CN 110908814A CN 201911175594 A CN201911175594 A CN 201911175594A CN 110908814 A CN110908814 A CN 110908814A
Authority
CN
China
Prior art keywords
message
request message
thread
server
response message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911175594.9A
Other languages
Chinese (zh)
Inventor
徐飞明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Reach Best Technology Co Ltd
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Reach Best Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Reach Best Technology Co Ltd filed Critical Reach Best Technology Co Ltd
Priority to CN201911175594.9A priority Critical patent/CN110908814A/en
Publication of CN110908814A publication Critical patent/CN110908814A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a message processing method, a message processing device, an electronic device and a storage medium. The method comprises the following steps: under the condition that a request message of any thread is received, generating a first object and a second object corresponding to the request message, and returning the second object to the thread; acquiring a response message returned by the server aiming at the request message through the first object; and informing the thread to acquire a response message acquired by the first object through the second object based on the incidence relation between the first object and the second object. According to the technical scheme provided by the embodiment of the disclosure, the correlated object pair corresponding to the request message is generated, the response message is acquired through the first object, and the response message is transmitted to the second object through the correlation relationship, so that the thread does not need to wait on the connection, other services can be processed, the response message can be acquired after the other services are processed, and the message processing efficiency is improved.

Description

Message processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer software applications, and in particular, to a message processing method and apparatus, an electronic device, and a storage medium.
Background
Redis is a key value pair storage database based on memory, can provide distributed cache service, and can collect a plurality of Redis servers to obtain a server cluster.
Hiredis is an official C language client of a redis database, a redis client in the related art is also developed based on Hiredis generally, after a request message is sent to a server based on an established connection, the server must be waited to return a response message on the connection, that is, when the redis client communicates with the server, the client needs to wait for at least one message round-trip time, which results in low processing efficiency of the client on the message.
Disclosure of Invention
The present disclosure provides a message processing method, an apparatus, an electronic device, and a storage medium, so as to at least solve the problem that a client needs to wait for a response message returned by a server on a connection, and cannot process other services within the round-trip time. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a message processing method applied to a client, the method including:
under the condition that a request message of any thread is received, generating a first object and a second object corresponding to the request message, and returning the second object to the thread; the request message is a message which needs to be sent to a server by the thread, and the first object and the second object have an association relation;
acquiring a response message returned by the server aiming at the request message through the first object;
and informing the thread to acquire a response message acquired by the first object through the second object based on the incidence relation between the first object and the second object.
In one possible implementation, before sending the request message to the server, the method further includes:
responding to a triggering operation for representing connection establishment, and establishing at least one asynchronous connection between the client and the server;
and generating a message queue corresponding to the asynchronous connection, and putting the request message and the first object into a queue, so that an I/O thread acquires the request message from the message queue and sends the request message to the server through the asynchronous connection.
In a possible implementation manner, the obtaining, by the first object, a response message returned by the server for the request message includes:
receiving a response message returned by the server;
determining a request message corresponding to the response message, and acquiring the first object correspondingly generated for the request message;
writing parameters of the response message to the first object.
In one possible implementation, the parameters of the response message include:
data of the response message or a storage location of the response message.
In one possible implementation, the first object is: a remise target; the second object is: future objects.
According to a second aspect of the embodiments of the present disclosure, there is provided a message processing apparatus applied to a client, the apparatus including:
the object generation module is configured to generate a first object and a second object corresponding to a request message of any thread and return the second object to the thread when the request message of the thread is received; the request message is a message which needs to be sent to a server by the thread, and the first object and the second object have an association relation;
the message acquisition module is configured to execute the step of acquiring a response message returned by the server aiming at the request message through the first object;
and the message transmission module is configured to execute informing the thread of acquiring the response message acquired by the first object through the second object based on the incidence relation between the first object and the second object.
In one possible implementation, the apparatus further includes:
the connection establishing module is configured to respond to a triggering operation for representing connection establishment before the request message is sent to the server, and establish at least one asynchronous connection between the client and the server;
and the queue generating module is configured to generate a message queue corresponding to the asynchronous connection, and place the request message and the first object into a queue, so that an I/O thread acquires the request message from the message queue and sends the request message to the server through the asynchronous connection.
In one possible implementation manner, the message obtaining module includes:
the message receiving unit is configured to execute receiving of a response message returned by the server;
an object obtaining unit, configured to perform determining a request message corresponding to the response message, and obtain the first object generated for the request message;
a parameter writing unit configured to perform writing of a parameter of the response message to the first object.
In one possible implementation, the parameters of the response message include:
data of the response message or a storage location of the response message.
In one possible implementation, the first object is: a remise target; the second object is: future objects.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement the message processing apparatus method as described in the first aspect and any one of its possible implementations.
According to a sixth aspect of embodiments of the present disclosure, there is provided a storage medium, wherein instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the message processing apparatus method according to any one of the first aspect and possible implementations of the first aspect.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer program product comprising one or more instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the operations performed by the message processing apparatus method of any one of the first aspect and possible implementations of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: and generating a pair of objects which are associated with each other and correspond to the request message, and after receiving the response message, notifying the thread corresponding to the request message of receiving the response message through the association relationship of the objects, so that the thread is not required to wait for the response message all the time when being connected, that is, the thread can process other service messages before receiving the response message in the embodiment, and the efficiency of processing the message is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow diagram illustrating a message processing method in accordance with an exemplary embodiment;
FIG. 2 is another flow diagram illustrating a message processing method in accordance with an exemplary embodiment;
FIG. 3 is a schematic diagram illustrating an architecture of a message processing apparatus in accordance with an exemplary embodiment;
FIG. 4 is another schematic diagram illustrating the structure of a message processing apparatus according to an example embodiment;
FIG. 5 is a block diagram illustrating an architecture of a message acquisition module in accordance with an illustrative embodiment;
fig. 6 is a schematic diagram illustrating a structure of an electronic device according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a message processing method according to an exemplary embodiment, and referring to fig. 1, a message processing method may include steps S11 to S13:
in step S11, in a case where a request message of any thread is received, generating a first object and a second object corresponding to the request message, and returning the second object to the thread; the request message is a message which needs to be sent to a server by the thread, and the first object and the second object have an association relationship.
It should be understood that the server referred to in this disclosure may be in the form of one server or a plurality of server clusters, and this disclosure is not limited thereto.
In the embodiment of the present disclosure, a first object and a second object corresponding to the request message are generated, and the first object and the second object have an association relationship, so that a thread that needs to send the request message may process other tasks without waiting for a server to return a response message on a connection, and therefore, a client may establish a connection with one or more servers at the same time, so as to send a message to one or more servers, for example, different threads of the client need to send messages to different servers; and, under the condition that the thread needs, can set up one or more connections with a server, thus can send a plurality of messages to a server at the same time based on a plurality of connections.
Based on the requirement of the thread in the client, before sending the request message to the server, one or more asynchronous connections between the client and the server can be established in response to a trigger operation for representing connection establishment, and then, a message queue of the asynchronous connection is generated corresponding to each asynchronous connection.
When the thread needs to send the request message to the server, the request message can be put into a pre-generated queue, so that the I/O thread sends the request message to the server through the asynchronous connection based on the queue.
Multiple messages can be put into the same queue by the same or different threads, and multiple requests can be put into multiple queues by the same thread, so that the messages are sent to corresponding servers by the I/O threads through asynchronous connections corresponding to the queues.
In an embodiment, when a thread needs to send a request message, a correlated object corresponding to the request message is generated, then the received request message of the thread is used as a request content, a new request message is formed based on the request content and a first object, and then the request message is put into a queue, that is, the request message in the queue includes the request content and the first object.
For example, a data buffer may be preset, after the thread sends the request content to the buffer, a pair of objects associated with each other corresponding to the request content is generated, the request content and the first object form a request message and then are placed in a queue, the second object returns to the thread, and the thread may execute other tasks.
In another embodiment, the received request message of the thread may also be used as the request message sent to the server, and the request message and the corresponding generated first object may be put together into a queue. Those skilled in the art can flexibly select the specific implementation manner of forming the request message and placing the request message into the queue according to actual requirements.
In step S12, a response message returned by the server for the request message is obtained through the first object.
In the embodiment of the disclosure, in order to enable the thread which needs to send the request message to process other tasks, the first object corresponding to the request message acquires the response message without waiting for the server to return the response message on the connection.
In an embodiment, a specific implementation manner of acquiring, by the first object, a response message returned by the server for the request message is as follows: and receiving a response message returned by the server, and determining a request message corresponding to the response message.
For example, after receiving a response message through an asynchronous connection, an I/O thread of a client may read a request message corresponding to the response message from a queue corresponding to the asynchronous connection. The specific manner of determining the request message corresponding to the response message may refer to the prior art, which is not described in detail in this disclosure.
As shown in step S11, the first object is generated for the request message, and the request message includes the first object and is put into the queue, or the request message and the first object are stored in the queue together, so that after the request message corresponding to the response message is determined, the first object generated for the request message can be acquired. And writing a corresponding value into the first object based on the response message, wherein the written value can be used for representing the receipt of the response message to the thread through the second object because the first object is associated with the second object.
For example, the response message may be written directly into the first object; or, the storage location of the response message may also be written into the first object; etc., so that the thread may determine, via the second thread, that a response message was received.
In the embodiment of the present disclosure, it is not limited to implement the effect of obtaining, by the first object obtaining server, the response message returned by the request message through other embodiments, and a person skilled in the art may flexibly select a suitable manner according to actual requirements.
In step S13, based on the association relationship between the first object and the second object, the thread is notified of a response message obtained by the second object to obtain the first object.
Based on the incidence relation between the first object and the second object, after the response message is acquired through the first object, the thread can acquire the response message through the second object.
In one embodiment, the association relationship may be: the value written in the first object can be read by the second object, and then the thread can be notified by writing a response message in the first object as described in step S12, so that the thread can read the response message written in the first object through the second object; or the thread may be notified by writing the storage location of the response message into the first object so that the thread can read the storage location written into the first object through the second object and retrieve the response message through the storage location.
For example, the first object corresponding to the request message may be a plan object, the second object may be a future object, and the value transfer may be implemented through the plan-future object. After a value is written into the recipe object, the value can be read through the recipe object, and a thread to which the recipe object belongs can read the value at a required time, so that asynchronous value transfer is realized through the recipe-recipe object.
The message processing method provided by the present disclosure is described below with reference to a more specific example.
The flow chart of the interaction between the client and the server 1 in this example can be shown in fig. 2.
In order to send a request message to the server 1, the client first needs to establish one or more asynchronous connections with the server 1, and generate a corresponding message queue for each asynchronous connection. Taking the established asynchronous connection a as an example:
a certain thread 1 of the client needs to send a request message to the server 1, send the request content to a preset buffer, initialize a premium object for the request content, form a request message based on the request content and the premium object, and place the request message in a message queue a of an asynchronous connection a.
Then, the future object corresponding to the plan object is returned to thread 1.
The I/O thread takes the request message from the message queue A, sends the request message to the server 1 through the asynchronous connection A, and waits for the server 1 to return a response message. After receiving the response message returned by the server 1, the I/O thread takes out the corresponding request message from the queue, and writes the preset parameters into the premium object included in the request message.
Meanwhile, the thread 1 can process other services, and after the processing of other services is completed, the value in the premium object is read through the future object, so as to obtain a response message.
Fig. 3 is a block diagram illustrating a message processing apparatus according to an example embodiment, which may include an object generation module 110, a message acquisition module 120, and a message delivery module 130.
The object generating module 110 is configured to execute, in a case that a request message of any thread is received, generating a first object and a second object corresponding to the request message, and returning the second object to the thread; the request message is a message which needs to be sent to a server by the thread, and the first object and the second object have an association relation;
the message obtaining module 120 is configured to execute obtaining, by the first object, a response message returned by the server for the request message;
the message passing module 130 is configured to execute notifying the thread to obtain a response message obtained by the first object through the second object based on the association relationship between the first object and the second object.
In one possible implementation, referring to fig. 4, the apparatus further includes:
a connection establishing module 140 configured to establish at least one asynchronous connection between the client and the server in response to a trigger operation characterizing establishment of a connection before sending the request message to the server;
and the queue generating module 150 is configured to generate a message queue corresponding to the asynchronous connection, and put the request message and the first object into a queue, so that the I/O thread acquires the request message from the message queue and sends the request message to the server through the asynchronous connection.
In one possible implementation manner, referring to fig. 5, the message obtaining module 120 includes:
a message receiving unit 121 configured to execute receiving a response message returned by the server;
an object obtaining unit 122, configured to perform determining a request message corresponding to the response message, and obtain the first object generated for the request message;
a parameter writing unit 123 configured to perform writing the parameter of the response message into the first object.
In one possible implementation, the parameters of the response message include:
data of the response message or a storage location of the response message.
In one possible implementation, the first object is: a remise target; the second object is: future objects.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 6 is a block diagram illustrating an electronic device in accordance with an example embodiment. For example, the electronic device 60 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, a server, and the like.
Referring to fig. 6, electronic device 60 may include one or more of the following components: processing component 610, memory 620, power component 630, multimedia component 640, audio component 650, input/output (I/O) interface 660, sensor component 670, and communication component 680.
The processing component 610 generally controls overall operation of the electronic device 60, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 610 may include one or more processors 611 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 610 can include one or more modules that facilitate interaction between the processing component 610 and other components. For example, the processing component 610 may include a multimedia module to facilitate interaction between the multimedia component 640 and the processing component 610.
The memory 620 is configured to store various types of data to support operations at the electronic device 60. Examples of such data include instructions for any application or method operating on the electronic device 60, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 620 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 630 provides power to the various components of the electronic device 60. Power components 630 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 60.
The multimedia component 640 includes a screen that provides an output interface between the electronic device 60 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 640 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 60 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 650 is configured to output and/or input audio signals. For example, the audio component 650 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 60 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in memory 620 or transmitted via communications component 680. In some embodiments, audio component 650 further includes a speaker for outputting audio signals.
The I/O interface 660 provides an interface between the processing component 610 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 670 includes one or more sensors for providing status assessment of various aspects of electronic device 60. For example, sensor assembly 670 may detect an open/closed status of electronic device 60, the relative positioning of components, such as a display and keypad of electronic device 60, sensor assembly 670 may also detect a change in the position of electronic device 60 or a component of electronic device 60, the presence or absence of user contact with electronic device 60, the orientation or acceleration/deceleration of electronic device 60, and a change in the temperature of electronic device 60. The sensor assembly 670 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 670 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 670 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 680 is configured to facilitate wired or wireless communication between the electronic device 60 and other devices. The electronic device 60 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 680 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 680 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an embodiment of the present disclosure, the electronic device 60 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an embodiment of the present disclosure, a non-transitory computer-readable storage medium comprising instructions, such as the memory 620 comprising instructions, executable by the processor 611 of the electronic device 60 to perform the method of message processing described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an embodiment of the present disclosure, an application program is further provided, and when the application program is executed by a processor of an electronic device, the electronic device is enabled to execute the message processing method, so as to obtain the same technical effect.
In an embodiment of the present disclosure, a computer program product is further provided, which, when executed by a processor of an electronic device, enables the electronic device to execute the above message processing method to obtain the same technical effect.
Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A message processing method is applied to a client, and the method comprises the following steps:
under the condition that a request message of any thread is received, generating a first object and a second object corresponding to the request message, and returning the second object to the thread; the request message is a message which needs to be sent to a server by the thread, and the first object and the second object have an association relation;
acquiring a response message returned by the server aiming at the request message through the first object;
and informing the thread to acquire a response message acquired by the first object through the second object based on the incidence relation between the first object and the second object.
2. The method of claim 1, wherein prior to sending the request message to the server, the method further comprises:
responding to a triggering operation for representing connection establishment, and establishing at least one asynchronous connection between the client and the server;
and generating a message queue corresponding to the asynchronous connection, and putting the request message and the first object into a queue, so that an I/O thread acquires the request message from the message queue and sends the request message to the server through the asynchronous connection.
3. The method according to claim 1, wherein the obtaining, by the first object, a response message returned by the server for the request message includes:
receiving a response message returned by the server;
determining a request message corresponding to the response message, and acquiring the first object correspondingly generated for the request message;
writing parameters of the response message to the first object.
4. The method of claim 3, wherein the parameters of the response message comprise:
data of the response message or a storage location of the response message.
5. The method of claim 1,
the first object is: a remise target;
the second object is: future objects.
6. A message processing apparatus, applied to a client, the apparatus comprising:
the object generation module is configured to generate a first object and a second object corresponding to a request message of any thread and return the second object to the thread when the request message of the thread is received; the request message is a message which needs to be sent to a server by the thread, and the first object and the second object have an association relation;
the message acquisition module is configured to execute the step of acquiring a response message returned by the server aiming at the request message through the first object;
and the message transmission module is configured to execute informing the thread of acquiring the response message acquired by the first object through the second object based on the incidence relation between the first object and the second object.
7. The apparatus of claim 6, further comprising:
the connection establishing module is configured to respond to a triggering operation for representing connection establishment before the request message is sent to the server, and establish at least one asynchronous connection between the client and the server;
and the queue generating module is configured to generate a message queue corresponding to the asynchronous connection, and place the request message and the first object into a queue, so that an I/O thread acquires the request message from the message queue and sends the request message to the server through the asynchronous connection.
8. The apparatus of claim 6, wherein the message acquisition module comprises:
the message receiving unit is configured to execute receiving of a response message returned by the server;
an object obtaining unit, configured to perform determining a request message corresponding to the response message, and obtain the first object generated for the request message;
a parameter writing unit configured to perform writing of a parameter of the response message to the first object.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement the message processing method of any of claims 1 to 5.
10. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the message processing method of any one of claims 1 to 5.
CN201911175594.9A 2019-11-26 2019-11-26 Message processing method and device, electronic equipment and storage medium Pending CN110908814A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911175594.9A CN110908814A (en) 2019-11-26 2019-11-26 Message processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911175594.9A CN110908814A (en) 2019-11-26 2019-11-26 Message processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110908814A true CN110908814A (en) 2020-03-24

Family

ID=69819731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911175594.9A Pending CN110908814A (en) 2019-11-26 2019-11-26 Message processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110908814A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112040402A (en) * 2020-08-31 2020-12-04 北京小米移动软件有限公司 Positioning method and device and computer storage medium
CN113282954A (en) * 2021-05-27 2021-08-20 北京达佳互联信息技术有限公司 Service execution method and device based on service platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453420A (en) * 2016-12-08 2017-02-22 郑州云海信息技术有限公司 Request processing device and method and terminal
US20170168843A1 (en) * 2012-04-03 2017-06-15 Microsoft Technology Licensing, Llc Thread-agile execution of dynamic programming language programs
CN107239334A (en) * 2017-05-31 2017-10-10 清华大学无锡应用技术研究院 Handle the method and device irregularly applied
CN109726014A (en) * 2018-12-29 2019-05-07 武汉斗鱼网络科技有限公司 Implementation method, system, server and storage medium of the Rpc client based on Netty in Testing Platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170168843A1 (en) * 2012-04-03 2017-06-15 Microsoft Technology Licensing, Llc Thread-agile execution of dynamic programming language programs
CN106453420A (en) * 2016-12-08 2017-02-22 郑州云海信息技术有限公司 Request processing device and method and terminal
CN107239334A (en) * 2017-05-31 2017-10-10 清华大学无锡应用技术研究院 Handle the method and device irregularly applied
CN109726014A (en) * 2018-12-29 2019-05-07 武汉斗鱼网络科技有限公司 Implementation method, system, server and storage medium of the Rpc client based on Netty in Testing Platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈洋CY: ""folly教程系列之:future/promise"", 《HTTPS://WWW.CNBLOGS.COM/CHENYANGYAO/P/FOLLY-FUTURE.HTML》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112040402A (en) * 2020-08-31 2020-12-04 北京小米移动软件有限公司 Positioning method and device and computer storage medium
CN112040402B (en) * 2020-08-31 2022-08-19 北京小米移动软件有限公司 Positioning method and device, and computer storage medium
CN113282954A (en) * 2021-05-27 2021-08-20 北京达佳互联信息技术有限公司 Service execution method and device based on service platform
CN113282954B (en) * 2021-05-27 2024-02-23 北京达佳互联信息技术有限公司 Service execution method and device based on service platform

Similar Documents

Publication Publication Date Title
CN109274510B (en) Message processing method, device, client, server and storage medium
CN112367554B (en) Message interaction method and device, electronic equipment and storage medium
CN108804244B (en) Data transmission method, device and storage medium
US20170249513A1 (en) Picture acquiring method, apparatus, and storage medium
CN108965611B (en) Shooting interface switching method, device, equipment and storage medium
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN111246278B (en) Video playing method and device, electronic equipment and storage medium
CN113259226A (en) Information synchronization method and device, electronic equipment and storage medium
CN110908814A (en) Message processing method and device, electronic equipment and storage medium
CN106506808B (en) Method and device for prompting communication message
CN106878654B (en) Video communication method and device
CN106535147B (en) Communication signal processing method and device
CN106528247B (en) Data refreshing method and device
CN110913276B (en) Data processing method, device, server, terminal and storage medium
CN110764847B (en) User information processing method, device, electronic equipment and storage medium
CN109245992B (en) Request processing method and device, electronic equipment and storage medium
CN108012258B (en) Data traffic management method and device for virtual SIM card, terminal and server
CN106790450B (en) Method for caching and processing, device and server
CN112035246B (en) Method, device and system for acquiring virtual resources, electronic equipment and storage medium
CN114567790A (en) Information display method and device, electronic equipment and storage medium
CN109992937B (en) Identity authentication method and identity authentication device
CN107257384B (en) Service state monitoring method and device
CN111526084A (en) Information processing method, device, equipment and storage medium
CN112769677A (en) Data synchronization method, data synchronization device, electronic equipment, storage medium and program product
CN112102009A (en) Advertisement display method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200324