CN111641690A - Session message processing method and device and electronic equipment - Google Patents
Session message processing method and device and electronic equipment Download PDFInfo
- Publication number
- CN111641690A CN111641690A CN202010431667.2A CN202010431667A CN111641690A CN 111641690 A CN111641690 A CN 111641690A CN 202010431667 A CN202010431667 A CN 202010431667A CN 111641690 A CN111641690 A CN 111641690A
- Authority
- CN
- China
- Prior art keywords
- message
- session
- database
- identifier
- identification
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the disclosure provides a method and a device for processing a session message and an electronic device, belonging to the technical field of data processing, wherein the method comprises the following steps: based on an obtained access request of a client visitor, creating a session identifier corresponding to the access request in a database interface; acquiring a session message corresponding to the session identifier so as to create a message identifier in a gateway interface where the database is located based on the session message; after the message identification is successfully created, storing the session message into a message storage table in the database based on the message identification; after the conversation message is successfully stored in the message storage table, the message identification is stored in a preset message zipper in the database, so that the conversation message can be quickly searched based on the message zipper. By the processing scheme, the efficiency of processing the session message can be improved.
Description
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing a session message, and an electronic device.
Background
The customer service system is a module which is very important for the clue collection of the advertising system. The advertiser touches a real C-end visitor by putting advertisements, and if the visitor is interested in the advertisement content, the visitor can choose to enter a consultation page, so that a message channel with customer service is established, and the consultation of the visitor and the customer service is realized. The common customer service system message storage mainly comprises two schemes 1. the message storage realized based on the traditional relational database has the defect of performance bottleneck. 2. If the message volume is large, the storage is realized based on hbase. When the inquiry is needed, scanning inquiry is carried out through the hbase. According to the scheme, the performance can meet the requirement when writing is carried out, but the information in one session is aggregated when reading, the key value needs to be scanned and inquired, and the performance is not ideal enough.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide a method and an apparatus for processing a session message, and an electronic device, so as to at least partially solve the problems in the prior art.
In a first aspect, an embodiment of the present disclosure provides a method for processing a session message, including:
based on an obtained access request of a client visitor, creating a session identifier corresponding to the access request in a database interface;
acquiring a session message corresponding to the session identifier so as to create a message identifier in a gateway interface where the database is located based on the session message;
after the message identification is successfully created, storing the session message into a message storage table in the database based on the message identification;
after the conversation message is successfully stored in the message storage table, the message identification is stored in a preset message zipper in the database, so that the conversation message can be quickly searched based on the message zipper.
According to a specific implementation manner of the embodiment of the present disclosure, after the message identifier is stored in a message zipper preset in the database, the method further includes:
and returning the message of successful message storage to the visitor of the client.
According to a specific implementation manner of the embodiment of the present disclosure, after the message identifier is stored in a message zipper preset in the database, the method further includes:
acquiring a target session message of a user through a user identifier;
searching the latest session identification from the database interface based on the target session message;
determining a target session identifier corresponding to the latest session identifier;
searching all related target session message identifications from the message zipper based on the target session identifications;
searching all target session messages related to the target session message identification from the message storage table based on the target session message identification;
and sending all the searched target session messages to the target users.
According to a specific implementation manner of the embodiment of the present disclosure, before creating the session identifier corresponding to the access request in the database interface, the method further includes:
acquiring an access request created by a client browser by using the gateway interface;
forwarding the access request to the database interface.
According to a specific implementation manner of the embodiment of the present disclosure, the acquiring the session message corresponding to the session identifier includes:
receiving a synchronous user message sent by a client browser by using the gateway interface;
and determining a session message corresponding to the session identification based on the synchronous user message.
According to a specific implementation manner of the embodiment of the present disclosure, before storing the session message into the message storage table in the database based on the message identifier, the method further includes:
and setting up a message storage table related to the session message in the database in advance.
According to a specific implementation manner of the embodiment of the present disclosure, the storing the message identifier in a message zipper preset in the database includes:
setting the message identification as an independent database key value;
and sequentially storing the message identifications set as the database key values in the message zipper.
According to a specific implementation manner of the embodiment of the present disclosure, after the message identifier is stored in a message zipper preset in the database, the method further includes:
and establishing an index for the message identification and the session message corresponding to the message identification, so as to quickly search the session message corresponding to the message identification based on the index.
In a second aspect, an embodiment of the present disclosure provides a session message processing apparatus, including:
the creation module is used for creating a session identifier corresponding to an access request in a database interface based on the acquired access request of the client visitor;
an obtaining module, configured to obtain a session message corresponding to the session identifier, so as to create a message identifier in a gateway interface where the database is located based on the session message;
the first storage module is used for storing the session message into a message storage table in the database based on the message identification after the message identification is successfully created;
and the second storage module is used for storing the message identification into a preset message zipper in the database after the conversation message is successfully stored in the message storage table, so that the conversation message can be quickly searched based on the message zipper.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of processing a conversation message in any of the implementations of the first aspect or the first aspect.
In a fourth aspect, the disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the session message processing method in the first aspect or any implementation manner of the first aspect.
In a fifth aspect, the disclosed embodiments also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method of processing a conversation message in the foregoing first aspect or any implementation manner of the first aspect.
The session message processing scheme in the embodiment of the disclosure comprises the steps of establishing a session identifier corresponding to an access request in a database interface based on the acquired access request of a client visitor; acquiring a session message corresponding to the session identifier so as to create a message identifier in a gateway interface where the database is located based on the session message; after the message identification is successfully created, storing the session message into a message storage table in the database based on the message identification; after the conversation message is successfully stored in the message storage table, the message identification is stored in a preset message zipper in the database, so that the conversation message can be quickly searched based on the message zipper. By the processing scheme, the efficiency of processing the session message is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a session message processing method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of another session message processing method provided in the embodiment of the present disclosure;
fig. 3 is a flowchart of another session message processing method provided in the embodiment of the present disclosure;
fig. 4 is a flowchart of another session message processing method provided in the embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a session message processing apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present disclosure, and the drawings only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the disclosure provides a session message processing method. The session message processing method provided by the embodiment may be executed by a computing device, which may be implemented as software or implemented as a combination of software and hardware, and may be integrally provided in a server, a client, and the like.
Referring to fig. 1 and fig. 2, a session message processing method in the embodiment of the present disclosure may include the following steps:
s101, based on the obtained access request of the client visitor, a session identifier corresponding to the access request is created in a database interface.
When a visitor of a client side is used as a session user to access a server side, an access request can be created in a browser of the client side, and after the access request is obtained through a gateway of the server side, the access request can be transmitted to a database interface arranged on the server side.
The database interface is an interface for data interaction of the server database, and a session identifier corresponding to the access request can be created through the database interface, so that the access request of the client user can be marked through the session identifier.
S102, obtaining the session message corresponding to the session identifier, so as to create a message identifier in the gateway interface where the database is located based on the session message.
After the session identifier is obtained, all session messages corresponding to the session identifier can be searched through the session identifier, and the session messages are messages sent by the user to the server at the client. In this way, the gateway interface provided at the server becomes able to create a message identifier based on the triggering of the session message, the message identifier being used to identify each session content sent by the user.
S103, after the message identification is successfully created, the session message is stored in a message storage table in the database based on the message identification.
In order to store the session messages, a message storage table is created in the database, and each message identifier is stored in the system as a separate key value because the data size of the message storage table is much smaller than that of the messages.
As an application scenario, the database may adopt a rocksDB database, which is a key-value based distributed storage system. As they can easily expand them. High concurrent writing and mass storage of data no longer become bottlenecks.
In the process of data query, the session message can be flexibly queried, the corresponding session can be very easily found out from the database table, and then all the message identifications corresponding to the session can be conveniently found out according to the session identification. We then take the value out of the library directly from the message identity. Since rocksDB is a data store of one key-value structure, it is very efficient and simple to implement, and is very little stressed on the library.
S104, after the conversation message is successfully stored in the message storage table, storing the message identification into a preset message zipper in the database so as to conveniently and quickly search the conversation message based on the message zipper.
Aiming at conversation scenes, the present disclosure provides a scheme of a conversation message zipper. Besides the message storage table, the whole system sets a corresponding message zipper for each conversation, and the specific storage form is as follows: the conversation mark [ message mark 1, message mark 2, message mark 3, … ], each message mark is stored in the system as an independent key value. Therefore, the conversation message can be conveniently and quickly inquired based on the message zipper.
Through the content of the embodiment, the scheme disclosed by the invention can be based on a three-layer message storage and reading framework of a session, a message zipper and a message, and can ensure that the reading and the writing have very high performance. Meanwhile, the reasonable use based on the distributed key-value database is adopted, and the accurate addressing is realized.
According to a specific implementation manner of the embodiment of the present disclosure, after the message identifier is stored in a message zipper preset in the database, the method further includes: and returning the message of successful message storage to the visitor of the client.
Referring to fig. 3 and 4, according to a specific implementation manner of the embodiment of the present disclosure, after the storing the message identifier into a message zipper preset in the database, the method further includes:
s401, obtaining the target session message of the user through the user identification.
The user can be a visitor from the client, and the target session message corresponding to the user identification can be found through the user identification.
S402, based on the target session message, searching the latest session identification from the database interface.
S403, determining the target session identifier corresponding to the latest session identifier.
S404, based on the target session identification, all relevant target session message identifications are searched from the message zipper.
Because the conversation message identification is stored in the message zipper, the conversation message identification can be quickly searched, and the searching speed of the conversation message is improved.
S405, based on the target session message identification, all target session messages related to the target session message identification are searched from the message storage table.
S406, all the searched target session messages are sent to the target users.
Through the content of the embodiment, all the conversation messages related to the target user can be quickly searched based on the set message zipper
According to a specific implementation manner of the embodiment of the present disclosure, before creating the session identifier corresponding to the access request in the database interface, the method further includes: acquiring an access request created by a client browser by using the gateway interface; forwarding the access request to the database interface.
According to a specific implementation manner of the embodiment of the present disclosure, the acquiring the session message corresponding to the session identifier includes: receiving a synchronous user message sent by a client browser by using the gateway interface; and determining a session message corresponding to the session identification based on the synchronous user message.
According to a specific implementation manner of the embodiment of the present disclosure, before storing the session message into the message storage table in the database based on the message identifier, the method further includes: and setting up a message storage table related to the session message in the database in advance.
According to a specific implementation manner of the embodiment of the present disclosure, the storing the message identifier in a message zipper preset in the database includes: setting the message identification as an independent database key value; and sequentially storing the message identifications set as the database key values in the message zipper.
According to a specific implementation manner of the embodiment of the present disclosure, after the message identifier is stored in a message zipper preset in the database, the method further includes: and establishing an index for the message identification and the session message corresponding to the message identification, so as to quickly search the session message corresponding to the message identification based on the index.
Corresponding to the above method embodiment, referring to fig. 5, an embodiment of the present disclosure further provides a session message processing apparatus 50, including:
a creating module 501, configured to create, based on an obtained access request of a client visitor, a session identifier corresponding to the access request in a database interface;
an obtaining module 502, configured to obtain a session message corresponding to the session identifier, so as to create a message identifier in a gateway interface where the database is located based on the session message;
a first storage module 503, configured to store the session message into a message storage table in the database based on the message identifier after the message identifier is successfully created;
a second storage module 504, configured to, after the conversation message is successfully stored in the message storage table, store the message identifier in a message zipper preset in the database, so as to facilitate quick search of the conversation message based on the message zipper.
For parts not described in detail in this embodiment, reference is made to the contents described in the above method embodiments, which are not described again here.
Referring to fig. 6, an embodiment of the present disclosure also provides an electronic device 60, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of processing conversational messages in the above method embodiments.
The disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the conversation message processing method in the foregoing method embodiments.
The disclosed embodiments also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the conversation message processing method in the aforementioned method embodiments.
Referring now to FIG. 6, a schematic diagram of an electronic device 60 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 60 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 60 are also stored. The processing device 601, the ROM602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 60 to communicate with other devices wirelessly or by wire to exchange data. While the figures illustrate an electronic device 60 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.
Claims (11)
1. A method for processing a session message, comprising:
based on an obtained access request of a client visitor, creating a session identifier corresponding to the access request in a database interface;
acquiring a session message corresponding to the session identifier so as to create a message identifier in a gateway interface where the database is located based on the session message;
after the message identification is successfully created, storing the session message into a message storage table in the database based on the message identification;
after the conversation message is successfully stored in the message storage table, the message identification is stored in a preset message zipper in the database, so that the conversation message can be quickly searched based on the message zipper.
2. The method of claim 1, wherein after storing the message identifier in a preset message zipper in the database, the method further comprises:
and returning the message of successful message storage to the visitor of the client.
3. The method of claim 1, wherein after storing the message identifier in a preset message zipper in the database, the method further comprises:
acquiring a target session message of a user through a user identifier;
searching the latest session identification from the database interface based on the target session message;
determining a target session identifier corresponding to the latest session identifier;
searching all related target session message identifications from the message zipper based on the target session identifications;
searching all target session messages related to the target session message identification from the message storage table based on the target session message identification;
and sending all the searched target session messages to the target users.
4. The method of claim 1, wherein prior to creating the session identifier corresponding to the access request in the database interface, the method further comprises:
acquiring an access request created by a client browser by using the gateway interface;
forwarding the access request to the database interface.
5. The method of claim 1, wherein the obtaining the session message corresponding to the session identifier comprises:
receiving a synchronous user message sent by a client browser by using the gateway interface;
and determining a session message corresponding to the session identification based on the synchronous user message.
6. The method of claim 1, wherein prior to storing the session message in a message storage table in the database based on the message identification, the method further comprises:
and setting up a message storage table related to the session message in the database in advance.
7. The method of claim 1, wherein the storing the message identifier in a preset message zipper in the database comprises:
setting the message identification as an independent database key value;
and sequentially storing the message identifications set as the database key values in the message zipper.
8. The method of claim 1, wherein after storing the message identifier in a preset message zipper in the database, the method further comprises:
and establishing an index for the message identification and the session message corresponding to the message identification, so as to quickly search the session message corresponding to the message identification based on the index.
9. A session message processing apparatus, comprising:
the creation module is used for creating a session identifier corresponding to an access request in a database interface based on the acquired access request of the client visitor;
an obtaining module, configured to obtain a session message corresponding to the session identifier, so as to create a message identifier in a gateway interface where the database is located based on the session message;
the first storage module is used for storing the session message into a message storage table in the database based on the message identification after the message identification is successfully created;
and the second storage module is used for storing the message identification into a preset message zipper in the database after the conversation message is successfully stored in the message storage table, so that the conversation message can be quickly searched based on the message zipper.
10. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of conversational message processing as claimed in any one of claims 1-8.
11. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the conversation message processing method of any one of the preceding claims 1 to 8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010431667.2A CN111641690B (en) | 2020-05-20 | 2020-05-20 | Session message processing method and device and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010431667.2A CN111641690B (en) | 2020-05-20 | 2020-05-20 | Session message processing method and device and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111641690A true CN111641690A (en) | 2020-09-08 |
| CN111641690B CN111641690B (en) | 2022-09-02 |
Family
ID=72332732
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010431667.2A Active CN111641690B (en) | 2020-05-20 | 2020-05-20 | Session message processing method and device and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111641690B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113905080A (en) * | 2021-09-27 | 2022-01-07 | 深信服科技股份有限公司 | A management method, device, system and storage medium |
| CN115277647A (en) * | 2022-08-03 | 2022-11-01 | 康键信息技术(深圳)有限公司 | Method and device for processing real-time session message, storage medium and terminal |
| CN115422129A (en) * | 2022-09-19 | 2022-12-02 | 青岛中科曙光科技服务有限公司 | A session processing method, device, electronic equipment and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1953386A (en) * | 2006-11-01 | 2007-04-25 | 华为技术有限公司 | A method to manage the session, universal information client side and server |
| US20150188701A1 (en) * | 2012-08-24 | 2015-07-02 | Los Alamos National Security, Llc | Scalable software architecture for quantum cryptographic key management |
| CN107832336A (en) * | 2017-10-10 | 2018-03-23 | 北京京东尚科信息技术有限公司 | Data processing method and its system |
| CN109446204A (en) * | 2018-11-27 | 2019-03-08 | 北京微播视界科技有限公司 | A kind of date storage method of instant messaging, device, electronic equipment and medium |
| CN110442578A (en) * | 2019-07-30 | 2019-11-12 | 新华三大数据技术有限公司 | Zipper table updating method, device, server and computer readable storage medium |
-
2020
- 2020-05-20 CN CN202010431667.2A patent/CN111641690B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1953386A (en) * | 2006-11-01 | 2007-04-25 | 华为技术有限公司 | A method to manage the session, universal information client side and server |
| US20150188701A1 (en) * | 2012-08-24 | 2015-07-02 | Los Alamos National Security, Llc | Scalable software architecture for quantum cryptographic key management |
| CN107832336A (en) * | 2017-10-10 | 2018-03-23 | 北京京东尚科信息技术有限公司 | Data processing method and its system |
| CN109446204A (en) * | 2018-11-27 | 2019-03-08 | 北京微播视界科技有限公司 | A kind of date storage method of instant messaging, device, electronic equipment and medium |
| CN110442578A (en) * | 2019-07-30 | 2019-11-12 | 新华三大数据技术有限公司 | Zipper table updating method, device, server and computer readable storage medium |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113905080A (en) * | 2021-09-27 | 2022-01-07 | 深信服科技股份有限公司 | A management method, device, system and storage medium |
| CN115277647A (en) * | 2022-08-03 | 2022-11-01 | 康键信息技术(深圳)有限公司 | Method and device for processing real-time session message, storage medium and terminal |
| CN115422129A (en) * | 2022-09-19 | 2022-12-02 | 青岛中科曙光科技服务有限公司 | A session processing method, device, electronic equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111641690B (en) | 2022-09-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12056440B2 (en) | Document update method and apparatus, device, and medium | |
| CN112906394B (en) | Address identification method, device, equipment and storage medium | |
| CN111400625B (en) | Page processing method and device, electronic equipment and computer readable storage medium | |
| CN110097397B (en) | Feedback-based information pushing method and device and electronic equipment | |
| CN111641690B (en) | Session message processing method and device and electronic equipment | |
| US12190049B2 (en) | Document processing method, apparatus and device, and medium | |
| CN111738316A (en) | Image classification method and device for zero sample learning and electronic equipment | |
| CN111309228A (en) | Multimedia processing method and device and electronic equipment | |
| CN116680485A (en) | Text marking method and device based on social media entity location and search matching | |
| CN109767257B (en) | Advertisement putting method and system based on big data analysis and electronic equipment | |
| CN111241137A (en) | Data processing method and device, electronic equipment and storage medium | |
| CN112732652A (en) | Information display method and device and electronic equipment | |
| CN111753238A (en) | Data mapping method and device and electronic equipment | |
| JP2025508593A (en) | VIDEO GENERATION METHOD, APPARATUS, STORAGE MEDIUM AND PROGRAM PRODUCT | |
| CN107480269B (en) | Object display method and system, medium and computing equipment | |
| CN114239501A (en) | Contract generation method, apparatus, device and medium | |
| CN112492399B (en) | Information display method and device and electronic equipment | |
| CN113347276A (en) | Mobile access system based on GIS | |
| JP7788562B2 (en) | Group member addition method, apparatus, device, and medium | |
| CN111176957A (en) | Log browsing method and device including timely search and electronic equipment | |
| CN110060099B (en) | Information pushing method and device based on historical records and electronic equipment | |
| CN111914713A (en) | Recording method and device of dot matrix writing content and electronic equipment | |
| CN111641691A (en) | Session message transmission method and device and electronic equipment | |
| CN118261135A (en) | Document rendering processing method, device, equipment and medium | |
| CN111260445A (en) | House resource information display method, device, terminal 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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |