CN108306815A - A kind of method, apparatus, equipment and computer readable storage medium obtaining message - Google Patents

A kind of method, apparatus, equipment and computer readable storage medium obtaining message Download PDF

Info

Publication number
CN108306815A
CN108306815A CN201711459948.3A CN201711459948A CN108306815A CN 108306815 A CN108306815 A CN 108306815A CN 201711459948 A CN201711459948 A CN 201711459948A CN 108306815 A CN108306815 A CN 108306815A
Authority
CN
China
Prior art keywords
message
service
information gateway
type
library
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
CN201711459948.3A
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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201711459948.3A priority Critical patent/CN108306815A/en
Publication of CN108306815A publication Critical patent/CN108306815A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

Invention describes a kind of method, apparatus, equipment and computer readable storage medium obtaining message, this method includes:Information gateway receives the solicited message from application APP, and determines the type of the requested service message of request message;The information gateway obtains service message from message library corresponding with the type of the service message;Wherein, the message library is used for the service message that storage service side generates;The service message got is sent to the APP by the information gateway.Information gateway can reliably obtain various types of service messages in time, improve the process performance of information gateway.

Description

A kind of method, apparatus, equipment and computer readable storage medium obtaining message
Technical field
The present invention relates to communication technique fields more particularly to a kind of method, apparatus, equipment and computer obtaining message can Read storage medium.
Background technology
Message center is the core message informing function of APP (Application, application program), is used for terminal user Carry out prompting message.In the prior art, the information gateway in message center directly invokes business side, to obtain the industry of business side Business message.Due to the high coupling of information gateway and business side, cause the process performance of information gateway and business side poor, and expands Malleability is bad.
Invention content
The main purpose of the embodiment of the present invention is to propose that a kind of method, apparatus, equipment and the computer obtaining message can Storage medium is read, various types of service messages is reliably obtained in time, improves the process performance of information gateway.
To achieve the above object, an embodiment of the present invention provides it is a kind of obtain message method, the method includes:
Information gateway receives the solicited message from application APP, and determines the requested business of request message The type of message;
The information gateway obtains service message from message library corresponding with the type of the service message;Wherein, institute State service message of the message library for the generation of storage service side;
The service message got is sent to the APP by the information gateway.
Optionally, the type of the service message, including:
PUSH message, system message or real-time messages.
Optionally, when the type of the service message be PUSH message when, the information gateway from the service message The corresponding message library of type in obtain service message, including:
The information gateway obtains PUSH message from preset PUSH message library.
Optionally, when the type of the service message be real-time messages when, the information gateway from the service message The corresponding message library of type in obtain service message, including:
The information gateway obtains real-time messages from preset real-time messages library.
Optionally, when the type of the service message be system message when, the information gateway from the service message The corresponding message library of type in obtain service message, including:
The information gateway obtains system message by system message service from preset system message library.
Optionally, in the information gateway service message is obtained from message library corresponding with the type of the service message Later, the method further includes:
Whether the information gateway judges in setting time from message library corresponding with the type of the service message Service message is got, if it is not, then interrupting the operation for obtaining the service message.
In addition, to achieve the above object, the embodiment of the present invention also proposes a kind of device obtaining message, described device packet It includes:
Receiving module receives the solicited message from application APP for information gateway, and determines the request message The type of requested service message;
Acquisition module obtains business for the information gateway from message library corresponding with the type of the service message Message;Wherein, the message library is used for the service message that storage service side generates;
The service message got is sent to the APP by sending module for the information gateway.
Optionally, the type of the service message, including:
PUSH message, system message or real-time messages.
In addition, to achieve the above object, the embodiment of the present invention also proposes a kind of equipment obtaining message, the equipment packet It includes:Processor, memory and communication bus;
The communication bus is for realizing the connection communication between the processor and the memory;
The processor is used to execute the program of the acquisition message stored in the memory, to realize obtaining for above-mentioned introduction The step of taking the method for message.
In addition, to achieve the above object, the embodiment of the present invention also proposes a kind of computer readable storage medium, the calculating Machine readable storage medium storing program for executing is stored with the program for obtaining message;
When the program for obtaining message is executed by least one processor, at least one processor is caused to execute The step of method of the acquisition message of above-mentioned introduction.
Method, apparatus, equipment and the computer readable storage medium for the acquisition message that the embodiment of the present invention proposes are various Corresponding message library is arranged in the service message of type, and various types of service messages that business side is generated are stored to corresponding class In the message library of type;Information gateway obtains service message from preset be directed in different types of message library, and no longer needs straight It connects from business side and obtains service message.Information gateway can reliably obtain various types of service messages in time, improve and disappear Cease the process performance of gateway.
Description of the drawings
Fig. 1 is the flow chart of the method for the acquisition message of first embodiment of the invention;
Fig. 2 is the flow chart of the method for the acquisition message of second embodiment of the invention;
Fig. 3 is the composed structure schematic diagram of the device of the acquisition message of third embodiment of the invention;
Fig. 4 is the composed structure schematic diagram of the equipment of the acquisition message of fourth embodiment of the invention.
Specific implementation mode
Further to illustrate that the embodiment of the present invention is to reach the technological means and effect that predetermined purpose is taken, tie below Attached drawing and preferred embodiment are closed, the embodiment of the present invention is described in detail as rear.
First embodiment of the invention, it is proposed that a method of message being obtained, as shown in Figure 1, the method specifically includes Following steps:
Step S101:Information gateway receives the solicited message from application APP, and determines that the request message is asked The type for the service message asked.
Wherein, the type of the service message includes:PUSH message, system message or real-time messages.
Step S102:The information gateway obtains business from message library corresponding with the type of the service message and disappears Breath;Wherein, the message library is used for the service message that storage service side generates.
Specifically, in embodiments of the present invention, corresponding message library is arranged for various types of service messages.For push Message, setting PUSH message library, the PUSH message generated for storage service side.For real-time messages, real-time data base is set, The real-time messages generated for storage service side.For system message, system database is set, is generated for storage service side System message.
It should be noted that the system message that business side generates needs to rely on system message service and messaging bus is deposited It stores up in system message library.Business side, which is called, creates message approach, and system message is sent to message by system message service Bus, messaging bus receive system message and store into system message library.
Further, step S102, including:
The information gateway obtains PUSH message from PUSH message library;Alternatively,
The information gateway obtains real-time messages from real-time messages library;Alternatively,
The information gateway obtains system message by system message server from system message library.
It should be noted that when information gateway obtains system message, calling system messenger service is needed, to pass through system Messenger service obtains the system message in system message library.
When storage system message, is decoupled into line asynchronous using messaging bus, the pressure of write-in system message can be buffered; When read system message, system message library is directly read by system message service, improves the efficiency for obtaining message.
Step S103:The service message got is sent to the APP by the information gateway.
Compared with prior art, the embodiment of the present invention is the corresponding message library of various types of service messages setting, and will In the service message storage to the message library of corresponding types that each business side generates.When information gateway receives solicited message, no It needs to obtain service message from each business side again, and service message can be obtained from each message library.Improve acquisition The efficiency and reliability of service message.
Second embodiment of the invention, it is proposed that a method of message being obtained, as shown in Fig. 2, the method specifically includes Following steps:
Step S201:Information gateway receives the solicited message from application APP, and determines that the request message is asked The type for the service message asked.
Wherein, the type of the service message includes:PUSH message, system message or real-time messages.
Step S202:The information gateway obtains business from message library corresponding with the type of the service message and disappears Breath;Wherein, the message library is used for the service message that storage service side generates.
Specifically, in embodiments of the present invention, corresponding message library is arranged for various types of service messages.For push Message, setting PUSH message library, the PUSH message generated for storage service side.For real-time messages, real-time data base is set, The real-time messages generated for storage service side.For system message, system database is set, is generated for storage service side System message.
It should be noted that the system message that business side generates needs to rely on system message service and messaging bus is deposited It stores up in system message library.Business side, which is called, creates message approach, and system message is sent to message by system message service Bus, messaging bus receive system message and store into system message library.
Further, the step S202, including:
The information gateway is by the message link established between information gateway and PUSH message library, from the PUSH message PUSH message is obtained in library;Alternatively,
The information gateway is by the message link established between information gateway and real-time messages library, from the real-time messages Real-time messages are obtained in library;Alternatively,
The information gateway is by the message link established between information gateway and system message service, and by described System message service obtains system message from the system message library.
Step S203:Whether the information gateway judges in setting time from corresponding with the type of the service message Service message is got in message library, if so, thening follow the steps S204;If it is not, thening follow the steps S205.
Step S204:The service message got is sent to the APP by the information gateway.
Step S205:The information gateway interrupts the operation for obtaining the service message.
Specifically, step S205, including:
Interrupt the message link between the information gateway and the PUSH message library;Alternatively,
Interrupt the message link between the information gateway and the real-time messages library;Alternatively,
Interrupt the message link between the information gateway and system message service.
When information gateway does not receive service message in setting time, illustrate business side corresponding with the service message Process performance occur it is abnormal, in order to ensure treatment effeciency and the load of information gateway, when the process performance of business side occur it is different Chang Shi takes fusing strategy, that is, interrupts the operation for obtaining service message.
Third embodiment of the invention, it is proposed that a kind of device obtaining message, as shown in figure 3, described device specifically includes Consisting of part:
Receiving module 301 receives the solicited message from application APP for information gateway, and determines the request The type of the requested service message of message;
Acquisition module 302 is obtained for the information gateway from message library corresponding with the type of the service message Service message;Wherein, the message library is used for the service message that storage service side generates;
The service message got is sent to the APP by sending module 303 for the information gateway.
Specifically, the type of the service message, including:
PUSH message, system message or real-time messages.
Further, acquisition module 302 are specifically used for:
The information gateway obtains PUSH message from PUSH message library;Alternatively,
The information gateway obtains real-time messages from real-time messages library;Alternatively,
The information gateway obtains system message by system message server from system message library.
Further, described device further includes:
Fuse module, for obtaining industry from message library corresponding with the type of the service message in the information gateway After message of being engaged in, whether the information gateway judges in setting time from message library corresponding with the type of the service message In get service message, if it is not, then interrupting the operation for obtaining the service message.
Fourth embodiment of the invention, it is proposed that a kind of equipment obtaining message, as shown in figure 4, the equipment includes:Processing Device 401, memory 402 and communication bus;
The communication bus is for realizing the connection communication between processor 401 and memory 402;
Processor 401 is used to execute the program of the acquisition message stored in memory 402, to realize following steps:
Information gateway receives the solicited message from application APP, and determines the requested business of request message The type of message;
The information gateway obtains service message from message library corresponding with the type of the service message;Wherein, institute State service message of the message library for the generation of storage service side;
The service message got is sent to the APP by the information gateway.
Specifically, the type of the service message, including:
PUSH message, system message or real-time messages.
Further, processor 401 is executing the information gateway from message corresponding with the type of the service message When obtaining the step of service message in library, specifically include:
The information gateway obtains PUSH message from PUSH message library;Alternatively,
The information gateway obtains real-time messages from real-time messages library;Alternatively,
The information gateway obtains system message by system message server from system message library.
Further, processor 401 is additionally operable to execute the program of the acquisition message stored in memory 402, to realize Following steps:
In the information gateway after obtaining service message in message library corresponding with the type of the service message, institute It states information gateway and judges in setting time whether from message library corresponding with the type of the service message to get business Message, if it is not, then interrupting the operation for obtaining the service message.
Fifth embodiment of the invention, it is proposed that a kind of computer readable storage medium, the computer readable storage medium It is stored with the program for obtaining message;
When the program for obtaining message is executed by least one processor, at least one processor is caused to execute Following steps operate:
Information gateway receives the solicited message from application APP, and determines the requested business of request message The type of message;
The information gateway obtains service message from message library corresponding with the type of the service message;Wherein, institute State service message of the message library for the generation of storage service side;
The service message got is sent to the APP by the information gateway.
Method, apparatus, equipment and the computer readable storage medium for the acquisition message introduced in the embodiment of the present invention, are each Corresponding message library is arranged in the service message of type, and various types of service messages that business side is generated are stored to correspondence In the message library of type;Information gateway obtains service message from preset be directed in different types of message library, and no longer needs Directly service message is obtained from business side.Information gateway can reliably obtain various types of service messages in time, improve The process performance of information gateway.
Should be able to be the technology reached predetermined purpose and taken to the embodiment of the present invention by the explanation of specific implementation mode Means and effect are able to more go deep into and specifically understand, however appended diagram is only to provide reference and description and is used, and not uses To be limited to the embodiment of the present invention.

Claims (10)

1. a kind of method obtaining message, which is characterized in that the method includes:
Information gateway receives the solicited message from application APP, and determines the requested service message of request message Type;
The information gateway obtains service message from message library corresponding with the type of the service message;Wherein, described to disappear It ceases library and is used for the service message that storage service side generates;
The service message got is sent to the APP by the information gateway.
2. the method according to claim 1 for obtaining message, which is characterized in that the type of the service message, including:
PUSH message, system message or real-time messages.
3. the method according to claim 2 for obtaining message, which is characterized in that when the type of the service message is push When message, the information gateway obtains service message from message library corresponding with the type of the service message, including:
The information gateway obtains PUSH message from preset PUSH message library.
4. the method according to claim 2 for obtaining message, which is characterized in that when the type of the service message is real-time When message, the information gateway obtains service message from message library corresponding with the type of the service message, including:
The information gateway obtains real-time messages from preset real-time messages library.
5. the method according to claim 2 for obtaining message, which is characterized in that when the type of the service message is system When message, the information gateway obtains service message from message library corresponding with the type of the service message, including:
The information gateway obtains system message by system message service from preset system message library.
6. the method according to any one of claims 1 to 5 for obtaining message, which is characterized in that in the information gateway After obtaining service message in message library corresponding with the type of the service message, the method further includes:
The information gateway judges whether obtained from message library corresponding with the type of the service message in setting time To service message, if it is not, then interrupting the operation for obtaining the service message.
7. a kind of device obtaining message, which is characterized in that described device includes:
Receiving module receives the solicited message from application APP for information gateway, and determines that the request message is asked The type for the service message asked;
Acquisition module obtains business from message library corresponding with the type of the service message for the information gateway and disappears Breath;Wherein, the message library is used for the service message that storage service side generates;
The service message got is sent to the APP by sending module for the information gateway.
8. the device according to claim 7 for obtaining message, which is characterized in that the type of the service message, including:
PUSH message, system message or real-time messages.
9. a kind of equipment obtaining message, which is characterized in that the equipment includes:Processor, memory and communication bus;
The communication bus is for realizing the connection communication between the processor and the memory;
The processor is used to execute the program of the acquisition message stored in the memory, is appointed with realizing in claim 1 to 6 The step of method of acquisition message described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has acquisition message Program;
When the program for obtaining message is executed by least one processor, lead at least one processor perform claim It is required that the step of method of acquisition message described in any one of 1 to 6.
CN201711459948.3A 2017-12-28 2017-12-28 A kind of method, apparatus, equipment and computer readable storage medium obtaining message Pending CN108306815A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711459948.3A CN108306815A (en) 2017-12-28 2017-12-28 A kind of method, apparatus, equipment and computer readable storage medium obtaining message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711459948.3A CN108306815A (en) 2017-12-28 2017-12-28 A kind of method, apparatus, equipment and computer readable storage medium obtaining message

Publications (1)

Publication Number Publication Date
CN108306815A true CN108306815A (en) 2018-07-20

Family

ID=62867575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711459948.3A Pending CN108306815A (en) 2017-12-28 2017-12-28 A kind of method, apparatus, equipment and computer readable storage medium obtaining message

Country Status (1)

Country Link
CN (1) CN108306815A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314189A (en) * 2020-01-17 2020-06-19 支付宝(杭州)信息技术有限公司 Service message sending method and device
CN112084042A (en) * 2019-06-13 2020-12-15 北京京东振世信息技术有限公司 Message processing method and device
CN114513483A (en) * 2022-01-14 2022-05-17 上海万物新生环保科技集团有限公司 Message notification method and device based on service system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215177A (en) * 2011-05-31 2011-10-12 广州华多网络科技有限公司 Method and device for processing system message of instant communication software
CN104796322A (en) * 2015-03-25 2015-07-22 腾讯科技(深圳)有限公司 Message processing method and equipment
US20160330109A1 (en) * 2015-05-08 2016-11-10 Oracle International Corporation Triggered-actions network processor
CN106850402A (en) * 2017-01-16 2017-06-13 腾讯科技(深圳)有限公司 The transmission method and device of message

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215177A (en) * 2011-05-31 2011-10-12 广州华多网络科技有限公司 Method and device for processing system message of instant communication software
CN104796322A (en) * 2015-03-25 2015-07-22 腾讯科技(深圳)有限公司 Message processing method and equipment
US20160330109A1 (en) * 2015-05-08 2016-11-10 Oracle International Corporation Triggered-actions network processor
CN106850402A (en) * 2017-01-16 2017-06-13 腾讯科技(深圳)有限公司 The transmission method and device of message

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112084042A (en) * 2019-06-13 2020-12-15 北京京东振世信息技术有限公司 Message processing method and device
CN112084042B (en) * 2019-06-13 2023-09-22 北京京东振世信息技术有限公司 Message processing method and device
CN111314189A (en) * 2020-01-17 2020-06-19 支付宝(杭州)信息技术有限公司 Service message sending method and device
CN111314189B (en) * 2020-01-17 2022-02-25 蚂蚁财富(上海)金融信息服务有限公司 Service message sending method and device
CN114513483A (en) * 2022-01-14 2022-05-17 上海万物新生环保科技集团有限公司 Message notification method and device based on service system

Similar Documents

Publication Publication Date Title
CN108306815A (en) A kind of method, apparatus, equipment and computer readable storage medium obtaining message
CN106878197A (en) A kind of management system and method for the transmission of cloud platform message
EP3007066A1 (en) Method for using shared device in apparatus capable of operating two operating systems
CN103401714A (en) Method for detecting network connection state and client side
CN109358867B (en) Automatic upgrading method, device and system for unmanned vehicle application and storage medium
CN105809817A (en) ATM fault monitoring method and device
CN113791792B (en) Method, device and storage medium for acquiring application call information
CN104821889B (en) A kind of processing method and equipment of backup message
CN115955437B (en) Data transmission method, device, equipment and medium
CN108243397B (en) Short message sending method and short message gateway equipment
CN110134419A (en) A kind of method for upgrading system, device, equipment and the storage medium of two-sided cabinet
CN113645316B (en) Upgrade data processing method, upper computer, lower computer, device and storage medium
JP5979719B2 (en) ATM system and method
CN116828044A (en) Remote sensing transmission method and system for message queue based on data plane development suite
CN105790975A (en) Service processing operation execution method and device
CN104519062A (en) Method and system for creating connection of multiple pairs of socket ports
CN104348711A (en) Apparatus and method for receiving messages
CN114500237A (en) Communication method and system
CN107872495B (en) Information processing method and terminal equipment
CN112333262A (en) Data updating prompting method and device, computer equipment and readable storage medium
CN112732660A (en) Intervention type file transmission method, device and system
CN107704557B (en) Processing method and device for operating mutually exclusive data, computer equipment and storage medium
CN112613955A (en) Order processing method and device, electronic equipment and storage medium
CN104468514B (en) Information processing method, electronic equipment and server
CN116456292B (en) Signaling interaction method and device for user plane and control plane separation architecture

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

Application publication date: 20180720

RJ01 Rejection of invention patent application after publication