CN115297446B - Short message service access optimization processing method, system and computer equipment - Google Patents

Short message service access optimization processing method, system and computer equipment Download PDF

Info

Publication number
CN115297446B
CN115297446B CN202210754181.1A CN202210754181A CN115297446B CN 115297446 B CN115297446 B CN 115297446B CN 202210754181 A CN202210754181 A CN 202210754181A CN 115297446 B CN115297446 B CN 115297446B
Authority
CN
China
Prior art keywords
short message
service provider
service
new
sending
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.)
Active
Application number
CN202210754181.1A
Other languages
Chinese (zh)
Other versions
CN115297446A (en
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.)
Shanghai Qiyue Information Technology Co Ltd
Original Assignee
Shanghai Qiyue Information 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 Shanghai Qiyue Information Technology Co Ltd filed Critical Shanghai Qiyue Information Technology Co Ltd
Priority to CN202210754181.1A priority Critical patent/CN115297446B/en
Publication of CN115297446A publication Critical patent/CN115297446A/en
Application granted granted Critical
Publication of CN115297446B publication Critical patent/CN115297446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a short message service access optimization processing method, a system and computer equipment. The method comprises the following steps: when determining that a new short message service provider is accessed, calling a short message to send service outwards and reconstructing code analysis of the short message to send service outwards to update an implementation class for the new short message service provider; configuring a corresponding callback path based on the reconstructed code analysis; based on the reconstructed code analysis, carrying out message asynchronous analysis on the result data of the short message callback sent by the new short message service provider and received through the callback path; the analyzed result data is stored in a warehouse after being consumed; the invention can access to external partner more efficiently, change service codes and resources less, reduce frequent online risk and reduce the affected range of service.

Description

Short message service access optimization processing method, system and computer equipment
Technical Field
The present invention relates to the field of information transmission processing, and in particular, to a short message service access optimization process, a system, a computer device, and a computer readable medium.
Background
The prior system message platform GNS needs to receive the request from the internal service party every day, searches the supported short message provider according to the short message file splicing, and then sends the short message according to the interface provided by the short message provider. But the processing efficiency of the platform for accessing the short message to the external short message service provider is lower. For example, each time a new service provider is accessed, the implementation class of the sms content processing service GNS-app of the GNS and various splicing, parameters, parsing and the like of the sms to the outbound service gws-sms-app are required, that is, the two kinds of service codes must be modified and the production flow must be rebuilt before the new service provider is online, which is difficult to expand and has low processing efficiency. In addition, in the short message reaching result and the uplink callback flow, the production flow of the short message to the external receiving service (gws-web) needs to be rebuilt, and the old short message provider service needs to be manually deleted or kept all the time, so that inconvenience and low processing efficiency are brought to the subsequent expansion, and even after the old short message service provider is not used any more, the white list configuration operated on the old short message provider brings potential safety hazard. In addition, after the new short message service provider is accessed again and stabilized each time, the corresponding code of the old short message service provider needs to be deleted, and if the corresponding code is not deleted in time or is not deleted, the subsequent code becomes more and more bulky, so that technical liabilities are formed. The processing efficiency of the system in the prior art for accessing the external short message provider needs to be optimized, the period is shortened, the cost is reduced, and the like.
Therefore, there is a need for improved short message service access optimization.
Disclosure of Invention
In order to solve the following problems: how to optimize the architecture reconfiguration to improve the efficiency of access processing of the new short message service provider; how to reconstruct the architecture by abstracting the logic needing to be changed, so as to effectively reduce the excessive changed logic part and avoid excessive external dependence, thereby improving the access efficiency and the subsequent expansion capability of the new short message service provider, and further guaranteeing the safety of the information transmission access processing.
In order to solve the above problems, effectively improve the processing efficiency of accessing to external short message service providers and shorten the processing period, the first aspect of the present invention provides a short message service access optimization processing method, when determining that a new short message service provider accesses, invoking a short message to send service to the outside and reconstructing code analysis of the short message to send service to update an implementation class for the new short message service provider; configuring a corresponding callback path based on the reconstructed code analysis; based on the reconstructed code analysis, carrying out message asynchronous analysis on the result data of the short message callback sent by the new short message service provider and received through the callback path; and consuming the analyzed result data and then warehousing and storing the result data.
According to an alternative embodiment of the present invention, when it is determined that a new sms service provider accesses, invoking an external sms service and reconstructing a code resolution of the external sms service to update an implementation class for the new sms service provider, including: when determining that a new short message service provider exists according to the received internal interface call, the short message template and the source, calling the short message service provider to send the short message to the outside; the reconstructed code analysis adopts a strategy mode to construct a new interface implementation class for the new short message service provider; and the short message external sending service sends the short message to the new short message service provider through a unified interface according to the sending strategy based on the sending strategy which is matched with the interface in class.
According to an alternative embodiment of the present invention, when it is determined that a new sms service provider exists according to a received internal interface call, a sms template, and a source, the call for the sms to send-out service includes:
according to an alternative embodiment of the invention, the short message content processing service receives the internal interface call, performs text splicing of short messages according to a short message template and a channel source, and searches for a supported short message service provider according to a communication number operator and a signature to determine whether the short message service provider is a new short message service provider; and if the service provider is a new short message service provider, calling the short message service.
According to an alternative embodiment of the present invention, externally configuring a corresponding callback path based on reconstructed code parsing includes: and based on the reconstructed code analysis and updated implementation class, configuring a corresponding http path interface for the new short message service provider in time through the appointed configuration of the short message to the external receiving service, wherein the updated implementation class comprises the implementation class for adding the message subscription.
According to an optional embodiment of the present invention, through the designated configuration of the short message to the external receiving service, a corresponding http path interface is configured for the new short message service provider in time, which specifically includes: and configuring the corresponding http path interface and white list for realizing callback for the new short message service provider in time by adding the apollo configuration.
According to an optional embodiment of the present invention, the parsing, based on the reconstructed code, of the result data of the short message callback sent by the new short message service provider and received via the callback path includes: the new short message service provider calls back the sending state result and the uplink result to the short message external receiving service through an external configured http path interface based on the callback request; and the short message pair external receiving service asynchronously stores the received sending state result and the uplink result into the middleware, and the short message pair external sending service asynchronously analyzes the message based on the reconstructed code analysis.
According to an optional embodiment of the present invention, the short message external receiving service asynchronously stores the received sending status result and the uplink result into the middleware, which specifically includes: and carrying the sending state result and the uplink result into the corresponding identification of the new short message service provider, and storing the identification into the middleware through asynchronous sending of the MQ message.
According to an alternative embodiment of the present invention, the message asynchronous parsing of the external sending service by the short message based on the reconstructed code parsing specifically includes: when the short message sends service consumption to the outside and asynchronously stores the MQ message of the middleware, analyzing corresponding short message data based on a data format of a short message service provider corresponding to the updated implementation class of the reconstructed code analysis; and the short message pair external sending service converts the analyzed data into MQ information with a unified data format and forwards the MQ information to the middleware.
According to an alternative embodiment of the present invention, the storing after consuming the parsed result data includes: and the short message content processing service consumes the MQ message after the analysis in the middleware is completed, and stores the short message result after the consumption in a warehouse.
In addition, a second aspect of the present invention provides a short message service access optimization processing system, including: the reconfiguration module is used for calling the short message to send service outwards and reconstructing the code analysis of the short message to send service outwards when the new short message service provider is determined to be accessed, and updating the implementation class for the new short message service provider; configuring a corresponding callback path based on the reconstructed code analysis; the analysis module is used for carrying out message asynchronous analysis on the result data of the short message callback sent by the new short message service provider and received through the callback path based on the reconstructed code analysis; and the storage module is used for storing the parsed result data after being consumed in a warehouse.
According to an alternative embodiment of the present invention, further comprising: the calling module is used for calling the short message service provider to send the service outwards when the existence of the new short message service provider is determined according to the received internal interface call, the short message template and the source; and/or the number of the groups of groups,
the reconfiguration module is used for reconstructing the code analysis of the short message to the external sending service and updating the realization class of the new short message service provider, and specifically comprises the following steps: the reconstructed code analysis adopts a strategy mode to construct a new interface implementation class for the new short message service provider; the short message external sending service sends short messages to the new short message service provider through a unified interface according to the sending strategy based on the sending strategy which is matched with the interface in class; and/or the number of the groups of groups,
the reconfiguration module is used for externally configuring a corresponding callback path based on the reconstructed code analysis, and specifically comprises the following steps: and based on the reconstructed code analysis and updated implementation class, configuring a corresponding http path interface for the new short message service provider in time through the appointed configuration of the short message to the external receiving service, wherein the updated implementation class comprises the implementation class for adding the message subscription.
According to an alternative embodiment of the invention, the parsing module comprises: the new short message service provider calls back the sending state result and the uplink result to the short message external receiving service through an external configured http path interface based on the callback request; and the short message pair external receiving service asynchronously stores the received sending state result and the uplink result into the middleware, and the short message pair external sending service asynchronously analyzes the message based on the reconstructed code analysis.
According to an optional embodiment of the present invention, the parsing module is configured to asynchronously store the received sending status result and the uplink result in the middleware by using the short message external receiving service, and specifically includes: carrying the sending state result and the uplink result into the corresponding identification of the new short message service provider, asynchronously sending the results through the MQ message, and storing the results into the middleware; the analysis module is used for carrying out message asynchronous analysis on the external sending service of the short message based on the reconstructed code analysis, and specifically comprises the following steps: when the short message sends service consumption to the outside and asynchronously stores the MQ message of the middleware, analyzing corresponding short message data based on a data format of a short message service provider corresponding to the updated implementation class of the reconstructed code analysis; and the short message pair external sending service converts the analyzed data into MQ information with a unified data format and forwards the MQ information to the middleware.
Furthermore, a third aspect of the invention provides a computer device comprising a processor and a memory for storing a computer executable program which, when executed by the processor, performs the method of the first aspect.
Furthermore, a fourth aspect of the invention provides a computer readable storage medium storing one or more programs which, when executed by a processor, implement a method as described in the foregoing first aspect of the invention.
Advantageous effects
Based on the scheme of the invention, when the message platform needs to change the short message service and provide the access service to the outside, the risk of frequent online can be effectively avoided, the dependence on the outside and the reconstruction of each production flow of the message platform architecture can be reduced, and the subsequent expansion can be facilitated; the technical liability is not formed by the code bloating caused by the code mode of the coupling short message provider in the follow-up process; the method has the advantages of avoiding potential safety hazards caused by the fact that corresponding white list configuration is not deleted in time when new and old short message providers change due to the fact that the affected range of service is enlarged.
Specifically, compared with the prior art, the invention provides an implementation class for each new short message service provider through the analysis reconstruction or reconstruction of the short message to the server of the external sending service (gws-sms-app service), and the server of the short message content processing service (gns-app service) is not required to be synchronously called and changed in cooperation with the corresponding path configuration, and the external receiving service (gws-web service) of the short message is not required to be updated, so that the external partner can be accessed more efficiently, the service codes and resources can be changed less, the frequent online risk can be reduced, and the affected range of the service can be reduced. And carrying out asynchronous analysis on the result data of the short message callback sent by the new short message service provider and received through the callback path through the short message service, and matching with a message middleware, so that the message data can be cached, and the asynchronous decoupling can be carried out, and the message processing capacity of the short message service can be greatly improved.
In addition, by analyzing the development efficiency of the newly accessed short message service provider after reconstruction or transformation, the time of 1/2 can be saved, so that the access and the online time of accessing the new short message service provider are obviously improved.
In addition, after the reconstructed or modified short message is online to an external sending service (gws-sms-app service), synchronous online of the new short message service provider can be realized by only adding a callback address, a white list, json of a parsing format and the like corresponding to the new short message service provider.
Drawings
In order to make the technical problems solved by the present invention, the technical means adopted and the technical effects achieved more clear, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted, however, that the drawings described below are merely illustrative of exemplary embodiments of the present invention and that other embodiments of the present invention may be derived from these drawings by those skilled in the art without undue effort.
Fig. 1 is a flowchart of an example of a short message service access optimization processing method of embodiment 1 of the present invention.
Fig. 2 is a schematic diagram showing a judging process of determining a new sms service provider in the sms service access optimization processing method of the present invention.
Fig. 3 is an exemplary diagram illustrating an implementation class of each short message service provider in a short message service to external transmission service in the short message service access optimization processing method of the present invention.
Fig. 4 is a flowchart showing another example of the short message service access optimization processing method of the present invention.
Fig. 5 is a block diagram showing an example of the short message service access optimization processing system according to embodiment 2 of the present invention.
Fig. 6 is a block diagram showing another example of the short message service access optimization processing system of embodiment 2 of the present invention.
Fig. 7 is a block diagram of an exemplary embodiment of a computer device in accordance with the present invention.
Fig. 8 is a block diagram of an exemplary embodiment of a computer readable storage medium according to the present invention.
Detailed Description
Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art. The same reference numerals in the drawings denote the same or similar elements, components or portions, and thus a repetitive description thereof will be omitted.
The features, structures, characteristics or other details described in a particular embodiment do not exclude that may be combined in one or more other embodiments in a suitable manner, without departing from the technical idea of the invention.
In the description of specific embodiments, features, structures, characteristics, or other details described in the present invention are provided to enable one skilled in the art to fully understand the embodiments. However, it is not excluded that one skilled in the art may practice the present invention without one or more of the specific features, structures, characteristics, or other details.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various devices, elements, components or portions, this should not be limited by these terms. These words are used to distinguish one from the other. For example, a first device may also be referred to as a second device without departing from the spirit of the invention.
The term "and/or" and/or "includes all combinations of any of the associated listed items and one or more.
In view of the above problems, the present invention is to reconstruct the way of calling the short message to the external sending service (gws-sms-app service) by the short message content processing service (gns-app service), and to add codes corresponding to the new short message service provider to the short message content processing service (gns-app service) and the short message to the external sending service (gws-sms-app service) by each new short message service provider, and to implement the online use function of the newly accessed short message service provider by only reconstructing the codes of the short message to the external sending service (gws-sms-app service) after the above reconstruction. The invention can access to external cooperators more efficiently, change service codes and resources less, and have higher expandability.
It should be noted that the innovation of the method is that the call is changed, specifically, by analyzing and changing the server of the short message service provider (gws-sms-app service), an implementation class is provided for each new short message service provider, and the specific processing is performed on the short message service server in cooperation with the corresponding path configuration, so that the server of the short message content processing service is not required to be changed by synchronous call, and the change is also not required. For convenience, the implementation of the short message service access optimization processing method is described by taking the short message service as an example in the invention, but the invention is not limited by the description. The specific procedure of the short message service access optimization processing method will be described in detail below.
Example 1
Next, an embodiment of the short message service access optimization processing method of the present invention will be described with reference to fig. 1 to 4.
Fig. 1 is a flowchart of an example of a short message service access optimization processing method according to the present invention. As shown in fig. 1, the method includes the following steps.
And step S101, when the access of a new short message service provider is determined, the short message outward sending service is called, and the code analysis of the short message outward sending service is reconstructed to update the implementation class of the new short message service provider.
Step S102, corresponding callback paths are externally configured based on the reconstructed code analysis.
And step S103, carrying out message asynchronous analysis on the result data of the short message callback sent by the new short message service provider and received through the callback path based on the reconstructed code analysis.
And step S104, the analyzed result data is stored in a warehouse after being consumed.
Among them, gns-app service: a short message content processing service; gws-sms-app service: short message sending service; gws-web service: the short message is received to the outside. In this embodiment, the calling mode of gns-app calling gws-sms-app is reconfigured, and each new short message provider (i.e. short message service provider) is added from the original, the codes of the corresponding short message service providers need to be added to gns-app and gws-sms-app, and the function of accessing the new short message provider can be realized by modifying the codes of gws-sms-app.
First, in step S101, when it is determined that a new short message service provider is accessed, a short message service to send to the outside is invoked, and code analysis of the short message service to send to the outside is reconstructed to update the implementation class for the new short message service provider.
In particular, the updated implementation class may further include an implementation class that increases message subscriptions.
More specifically, when it is determined that a new short message service provider exists according to the received internal interface call, the short message template and the source, the short message service provider is called, for example: the short message content processing service receives the call of the internal interface, performs text splicing of the short message according to a short message template and a channel source, searches a supported short message service provider according to a communication number operator and a signature, and determines whether the short message service provider is a new short message service provider; and if the service provider is a new short message service provider, calling the short message service. Further, the reconstructed code analysis adopts a strategy mode to construct a new interface realization class for the new short message service provider; and the short message external sending service sends the short message through an interface provided for the new short message service provider based on the interface implementation class.
In the process of sending the short message, the short message content processing service (gns-app service) receives an internal interface call, for example, performs document splicing processing according to a short message template and a source, determines a transmittable short message service provider, and determines whether the short message service provider is a new short message service provider.
Fig. 2 is a schematic diagram showing a judging process of determining a new sms service provider in the sms service access optimization processing method of the present invention.
As shown in fig. 2, the determining process of determining the new sms service provider includes determining whether the new sms service provider and its transmission interface exist. Specifically, a new short message service provider exists according to the received internal interface call, the short message template and the source.
In one embodiment, whether the short message service provider is a new short message service provider is determined based on the communication number operator and the signature lookup support short message service provider (e.g., short message provider A, B, C, D, etc.).
For example, a gns-app server through a short message content processing service (gns-app service) determines a short message service provider and a transmission interface in accordance with an internal interface call.
In other embodiments, the short message service provider that can support the sending of the short message may be determined according to information such as a communication number operator and a short message service providing identifier. The foregoing is illustrative only and is not to be construed as limiting the invention.
Further, when it is determined that a new short message service provider exists (or exists) according to the received internal interface call, the short message template and the source, that is, when it is determined that the new short message service provider exists, the short message out-to-out sending service is called to send a short message through the determined sending interface.
Optionally, when it is determined that a new short message service provider is accessed, updating a service code of the short message service provider for the external sending service to reconstruct the service code, thereby implementing the access function of the new short message service provider. For example, the risk provider is newly accessed, and only the risk configuration parameters need to be increased.
Specifically, the short message service provider updates the implementation class of the new short message service provider based on the reconstructed code analysis, and for the implementation class corresponding to the short message service provider in the short message service provider, see fig. 3. The implementation class can implement access functions and online functions for specified interfaces or for providing content agreed in interfaces, such as new short message service providers.
More specifically, for the reconstructed code analysis, a policy mode is adopted to construct a new interface implementation class for the new short message service provider, namely, an implementation class corresponding to the new short message service provider is obtained, and an interface for callback is realized. In the policy mode, the behavior of a class or its algorithm may be changed at runtime, which belongs to the behavioral model. The policy mode includes changing service codes (such as newly-built service codes, updated service codes, etc.) of the short message service, reconstructing or modifying an analysis module of the service codes, and establishing a mapping relation between each short message service provider and an implementation class. Therefore, the reconstruction of service codes is realized by adopting a strategy mode reconstruction gws-sms-app analysis module part, namely a logic part, a new interface realization class is constructed for the new short message service provider, the short message outward sending service is based on the interface realization class, and short messages are sent to the new short message service provider, such as an http path interface request and the like, according to the sending strategy of the new short message service provider of the realization class of the matching interface through a unified calling interface, so that service codes and resources can be changed less, the risk of frequent online can be reduced, and the update and modification of logic and service codes of the gns-app corresponding to the new short message service provider are not needed.
Therefore, the analysis and reconstruction or transformation are realized through the analysis module of the server of the short message service-outside sending service (gws-sms-app service), one realization class is provided for each new short message service provider, the server of the short message content processing service (gns-app service) is not required to be synchronously called and changed, and the short message service-outside receiving service (gws-web service) is not required to be updated, so that the external partner can be accessed more efficiently, the service codes and resources can be changed less, the frequent online risk can be reduced, and the affected range of the service can be reduced.
Next, in step S102, a corresponding callback path is externally configured based on the reconstructed code parsing.
Specifically, the method for externally configuring the corresponding callback path based on the reconstructed code analysis specifically comprises the following steps: and configuring a corresponding callback path for the corresponding http path interface in time by the new short message service provider through the appointed configuration of the short message external receiving service based on the updated implementation class of the reconstructed code analysis. Wherein the updated implementation class includes an implementation class that may include an increased message subscription. Specifically, for example: and configuring a corresponding http path interface (for example, a Facade interface and the like) for the new short message service provider in time.
Further, for example, by adding the apollo configuration, the http path interface and the whitelist for realizing the callback are configured for the new short message service provider in time.
Optionally, an http path interface corresponding to the new short message service provider is configured in the apollo configuration center. The http path interface is used as a path interface of a short message callback result, so that the http path interface for realizing callback is increased.
Optionally, a white list corresponding to the new short message service provider is configured in the apollo configuration center.
In another embodiment, when it is determined that a new sms service provider does not exist (or it is determined that there is no new sms service provider), the sms outbound service (gws-sms-app service) calls an old interface or an original interface (one for each original sms service provider or old sms service provider), and sends a sms, http path interface request of the corresponding sms service provider using the old interface or the original interface.
By means of the access logic (such as updated interface realization class) based on the system architecture after analysis and reconstruction or transformation, corresponding callback path configuration is carried out for the new short message service provider, the http path interface capable of realizing callback is increased, the efficiency can be further improved by matching with the subsequent MQ asynchronous decoupling, and safety is guaranteed. In the application of the actual test scene, the development efficiency of the operator of the new short message service provider can save 1/2 time, so that the access and online time of accessing the new short message service provider is obviously shortened.
The foregoing is illustrative only, and is not to be construed as limiting the present invention.
In order to further optimize the short message service access processing, the callback message is changed from the original interface call to the MQ for asynchronous decoupling, so that the message receiving processing amount can be increased, and the message processing efficiency can be improved. The specific explanation will be made below in connection with step S103.
Next, in step S103, message asynchronous parsing is performed on the result data of the short message callback sent by the new short message service provider and received via the callback path based on the reconstructed code parsing.
And carrying out message asynchronous analysis on the callback result data of the short message sent by the new short message service provider and received through the callback path.
Further, the new short message service provider calls back the sending state result and the uplink result to the short message external receiving service through an http path interface configured externally based on a callback request; the short message external receiving service asynchronously stores the received sending state result and the uplink result into the middleware, for example: and carrying the sending state result and the uplink result into the corresponding identification of the new short message service provider, and storing the identification into the middleware through asynchronous sending of the MQ message.
Further, the short message pair external sending service performs message asynchronous analysis based on reconstructed code analysis, for example: when the short message sends service consumption to the outside and asynchronously stores the MQ message of the middleware, analyzing corresponding short message data based on a data format of a short message service provider corresponding to the updated implementation class of the reconstructed code analysis; and the short message pair external sending service converts the analyzed data into MQ information with a unified data format and forwards the MQ information to the middleware. The updated implementation class based on the reconstructed code parsing may also include an implementation class that increases message subscriptions.
In one embodiment, the short message external receiving service (gws-web service) receives callback result data of the sent short message (when the callback path is determined to be a new short message service provider, the callback result data of the short message sent by the new short message service provider) through the configured callback path, that is, based on the callback request, the sending state result and the uplink result are callback to the short message external receiving service through an http path interface configured externally, and the short message external receiving service further asynchronously stores the sending state result and the uplink result into the middleware, and performs message asynchronous analysis on the external sending service through the short message.
The unified external service is realized by utilizing gws-web, service description is provided at the beginning, namely, the short message is received to the outside, and the short message result data actively recalled by each short message service provider is received through a configured http path interface (i.e. callback path).
More specifically, each short message service provider receives a short message, i.e. returns a touch result and a callback http path interface path externally configured by an uplink according to a short message external receiving service (gws-web service), and stores the callback http path interface path in middleware, such as: and carrying the sending state result and the uplink result into the corresponding identification of the new short message service provider, and storing the identification into the middleware through asynchronous sending of the MQ message. A message may also be given to the gws-sms-app server for the server to parse, for example: when the short message sends service consumption to the outside and asynchronously stores the MQ message of the middleware, analyzing corresponding short message data based on a data format of a short message service provider corresponding to the updated implementation class of the reconstructed code analysis; and the short message pair external sending service converts the analyzed data into MQ information with a unified data format and forwards the MQ information to the middleware. Wherein the updated implementation class based on the reconstructed code parsing includes an implementation class that increases message subscriptions.
Preferably, the middleware is a dockmq. The locktMQ can buffer message data, asynchronously decouple, and serve as a distributed message and stream data platform, in particular, serve as an open source message middleware of java, distributed and queue models, support transaction messages, sequence messages, batch messages, timing messages, message backtracking and the like, and further improve the message processing capability of services in the architecture logic optimization of the embodiment.
More specifically, when the sms-to-send service (gws-sms-app service) consumes MQ messages asynchronously stored in the middleware (in this embodiment, a dockmq), data parsing is performed according to formats (for example json formats) of different sms service providers. The data formats of callback status reports are different due to the fact that the data formats of sending data of different short message service providers are different, and therefore analysis is needed according to the specified adaptive codes. In this embodiment, for the new sms service provider, the data format of each sms service provider is different, and in the asynchronous decoupling or parsing process of the MQ message, the data parsing is performed on the sms data based on the data format of the new sms service provider corresponding to the implementation class updated by the reconstructed code parsing. And the short message external sending service converts the analyzed data into a unified data format and forwards the unified data format to the middleware.
Further, the short message pair external sending service converts the analyzed data into MQ messages with a unified data format, and the analyzed MQ messages are fed back to the return middleware after being analyzed. Meanwhile, the parsed data content is sent to a gns-app server of a short message content processing service (gns-app service).
And the message callback result data sent by the new short message service provider and received through the callback path are subjected to message asynchronous analysis, and are matched with the message middleware, so that the message data can be cached, and the message processing capacity of the short message service can be greatly improved through asynchronous decoupling.
The foregoing is illustrative only, and is not to be construed as limiting the present invention.
Next, in step S104, the parsed result data is consumed and stored in a warehouse.
Specifically, the short message content processing service consumes the MQ message after the analysis in the middleware is completed, and stores the short message result after the consumption in a warehouse. For example, the gns-app server of the short message content processing service (gns-app service) consumes the MQ message in the middleware with the unified data format after parsing, and stores the consumed short message result in a database.
In another embodiment, as shown in fig. 4, the method for optimizing the access of the sms further includes step S301 of performing transmission policy matching on the new sms provider.
In step S301, the determined new short message service provider is subjected to transmission policy matching for short message transmission or message pushing.
Specifically, when a new short message service provider is determined, an http path interface is determined for the new short message service provider, and short message transmission or message pushing is performed based on an http path interface request and a matched transmission strategy.
More specifically, the transmission policy includes transmission content, transmission format, transmission time, and the like.
The foregoing is illustrative only, and is not to be construed as limiting the present invention.
In an example of an application scenario, in the GNS platform system architecture, a server of a sms content processing service (GNS-app service) receives an internal interface call to perform sms document splicing according to a sms template and a channel, and then searches for a supported sms provider (a sms service provider) according to a mobile phone number operator and a signature, to determine whether an old sms provider exists:
if yes, then call the short message pair Gws-sms-app server of outbound service (gws-sms-app service) calls old facede (old each sms provider sp corresponds to one) according to the interface provided by the sms provider
Figure BDA0003719193610000141
facede or interface) to send http path interface requests such as short messages, for example: the short message provider A has an http path interface with a first sending format for short message pushing, the short message provider B has an http path interface with a second sending format, the short message provider C has an http path interface with a third sending format for short message pushing, the short message provider D has an http path interface with a fourth sending format, and so on. See fig. 3.
Otherwise, no old but new short message provider (i.e. short message service provider) is indicated.
And if not, the called gws-sms-app server can adopt a strategy mode to reconstruct the service code, and the reconstruction of the code analysis is performed only by modifying the analysis module of the code. The reconfiguration mainly updates the implementation class of the new short message service provider, specifically constructs a new interface implementation class for the new short message service provider through a policy mode, only changes the interface implementation class corresponding to the new short message service provider of the gws-sms-app server, and sends short messages, http path interface requests and the like through a unified call interface facede based on the sending policy of the corresponding new short message service provider matched by the interface implementation class. The update interface implementation class also includes an implementation class that increases message subscriptions.
The transmission policy is as follows: specifically, for the new sms service provider, the gws-sms-app server makes a call to the interface facede, where the new sms service provider makes a call to the interface facede, that is, when the new and old new sms service providers need to be replaced, because the updated implementation class includes the implementation class of the added message subscription, the gws-web server implements unified external service, and at the beginning, service description, that is, external receiving service of the sms, performs sending policy matching on the new sms service provider through the unified call interface, such as the http path interface. Specifically, when the gws-sms-app server starts, a new short message service provider sp and a mapping file of a new short message service provider sp implementation class loaded to a memory, and when an http path interface request, a short message and the like are sent through a unified call interface, the gws-sms-app server sends the http path interface request short message to the new short message provider through the unified interface according to a sending strategy of the implementation class corresponding to the update of the new short message service provider.
When the message is reconstructed, the updated implementation class comprises an implementation class of message subscription added by the gws-sms-app server, so that the unified external service of the gws-web server can externally configure the http path interface path of the callback of the corresponding new short message service provider. Such as: the apollo configuration is added, and the corresponding http path interface and the white list are configured, so that the http path interface for realizing callback can be added, gws-web codes do not need to be changed, and the operation and maintenance plus physical white list do not need to be found.
The new short message service provider such as the new short message service provider to be replaced uses an http path interface to send back a status result and an uplink result callback request, wherein the unified external service gws-web server receives the callback request through a callback path interface configured by an uplink short message callback interface, a general receipt short message callback interface, a general ivr voice callback interface and the like, such as an http path interface, and the identifier of the new short message service provider is brought into the fcketmq for asynchronous storage (such as message pushing according to the identifier).
Therefore, after the reconstructed or modified short message is online to the external sending service (gws-sms-app service), the synchronous online of the new short message service provider can be realized by only adding a callback address, a white list, json of a parsing format and the like corresponding to the new short message service provider. Specifically, through code abstraction, code logic which is easy to change frequently is concentrated on one gws-sms-app server (namely, specific processing is carried out on an external sending service server by a short message), the configuration of an external http path interface address is related to the configuration of an external http path interface address and a white list is related to the configuration of an apollo configuration center, after a resolving module of a service code of an external sending service (gws-sms-app service) is reconstructed or modified by the short message, synchronous online of a new short message service provider can be realized by only adding callback addresses, a white list, json in a resolving format and the like corresponding to the new short message service provider.
The foregoing is illustrative only, and is not to be construed as limiting the present invention.
The procedure of the above method is merely for explanation of the present invention, in which the order and the number of steps are not particularly limited. In addition, the steps in the method can be split into two, three or some steps can be combined into one step, and the adjustment is performed according to practical examples.
Those skilled in the art will appreciate that all or part of the steps implementing the above-described embodiments are implemented as a program (computer program) executed by a computer data processing apparatus. The above-described method provided by the present invention can be implemented when the computer program is executed. Moreover, the computer program may be stored in a computer readable storage medium, which may be a readable storage medium such as a magnetic disk, an optical disk, a ROM, a RAM, or a storage array composed of a plurality of storage media, for example, a magnetic disk or a tape storage array. The storage medium is not limited to a centralized storage, but may be a distributed storage, such as cloud storage based on cloud computing.
Compared with the prior art, the invention provides an implementation class for each new short message service provider through the analysis reconstruction or reconstruction of the server of the short message service provider (gws-sms-app service), and the server of the short message content processing service (gns-app service) does not need to be synchronously called or updated, and the short message service provider (gws-web service) does not need to be updated, so that the external partner can be accessed more efficiently, the service codes and resources can be changed less, the risk of frequent online can be reduced, and the affected range of the service can be reduced. And the external sending service carries out asynchronous analysis on the message callback result data received by the callback path and sent by the new short message service provider through the short message, and is matched with a message middleware for use, so that the message data can be cached, and the asynchronous decoupling can be carried out, and the message processing capacity of the short message service can be greatly improved.
In addition, by analyzing the development efficiency of the newly accessed short message service provider after reconstruction or transformation, the time of 1/2 can be saved, so that the access and the online time of accessing the new short message service provider are obviously improved.
In addition, after the reconstructed or modified short message is online to an external sending service (gws-sms-app service), synchronous online of the new short message service provider can be realized by only adding a callback address, a white list, json of a parsing format and the like corresponding to the new short message service provider.
Example 2
The following describes system embodiments of the invention, which may be used to perform method embodiments of the invention. Details described in relation to the system embodiments of the present invention should be considered as additions to the method embodiments described above; for details not disclosed in the system embodiments of the present invention, reference may be made to the method embodiments described above.
Referring to fig. 5 and 6, the short message service access optimization processing system of the present invention will be described.
Specifically, as shown in fig. 5, the sms access optimization processing system 400 includes: a reconstruction module 401, a parsing module 402 and a storage module 403.
Specifically, the reconfiguration module 401 is configured to, when it is determined that a new sms service provider accesses, invoke a sms to send service to the outside and reconfigure a code analysis of the sms to send service to the outside, so as to update an implementation class for the new sms service provider; configuring a corresponding callback path based on the reconstructed code analysis; the parsing module 402 is configured to perform message asynchronous parsing on the result data of the short message callback sent by the new short message service provider and received via the callback path based on the reconstructed code parsing; the storage module 403 is configured to store the parsed result data after consuming.
In one embodiment, the reconfiguration module 401 is configured to invoke the sms-to-external sending service when it is determined that a new sms service provider exists according to the received internal interface call, the sms template, and the source, and invoke the sms-to-external sending service when it is determined that a new sms service provider exists according to the received internal interface call, the sms template, and the source. Further, the reconfiguration module 401 may further include a calling module 501 that calls the sms to send service when it is determined that a new sms service provider exists according to the received internal interface call, sms template and source.
In one embodiment, the reconstructed code analysis adopts a policy mode to construct a new interface implementation class for the new short message service provider, and the short message outward sending service determines a sending policy of the new short message service provider based on the interface implementation class, and sends the short message to the new short message service provider through a unified calling interface such as an http path interface according to the sending policy.
In one embodiment, the implementation class updated based on the reconstructed code analysis (including the implementation class for adding the message subscription) timely configures a corresponding http path interface for the new short message service provider through the designated configuration of the short message external receiving service. For example: and configuring the corresponding http path interface and white list for realizing callback for the new short message service provider in time by adding the apollo configuration.
The specific processing function of the reconstruction module 401 corresponds to step S101 of the method of embodiment 1.
And the analysis module 402 performs message asynchronous analysis on the result data of the short message callback sent by the new short message service provider and received through the callback path based on the reconstructed code analysis.
In one embodiment, the new short message service provider calls back the sending status result and the uplink result to the short message external receiving service through an http path interface configured externally based on the call back request. The short message pair external receiving service asynchronously stores the received sending state result and the uplink result into the middleware, and the short message pair external sending service asynchronously analyzes the message based on the reconstructed code analysis, for example: carrying the sending state result and the uplink result into the corresponding identification of the new short message service provider, asynchronously sending the results through the MQ message, and storing the results into the middleware; when the short message sends service consumption to the outside and asynchronously stores the MQ message of the middleware, analyzing corresponding short message data based on a data format of a short message service provider corresponding to the updated implementation class of the reconstructed code analysis; and the short message pair external sending service converts the analyzed data into MQ information with a unified data format and forwards the MQ information to the middleware.
The specific processing function of the parsing module 402 corresponds to step S102 of the method of embodiment 1.
The storage module 403 stores the parsed result data after consuming, specifically, the MQ message after parsing in the middleware is consumed by the sms content processing service, and stores the consumed sms result in a database.
The specific processing function of the memory module 403 corresponds to step S103 of the method of embodiment 1.
In another embodiment, as shown in fig. 6, the sms access optimization processing system 400 includes the calling module 501, where the calling module 501 calls the sms to send service when it is determined that a new sms service provider exists according to a received internal interface call, a sms template, and a source.
Specifically, the reconfiguration module is configured to reconfigure code analysis of the short message service provider to update the implementation class of the new short message service provider, where the reconfiguration module specifically includes: the reconstructed code analysis adopts a strategy mode to construct a new interface implementation class for the new short message service provider; and the short message external sending service sends the short message to the new short message service provider through a unified interface according to the sending strategy based on the sending strategy which is matched with the interface in class.
Note that, since the reconstruction module 401, the analysis module 402, and the storage module 403 in fig. 6 are the same as the reconstruction module 401, the analysis module 402, and the storage module 403 in fig. 5, repeated descriptions of the portions are omitted.
Further, the short message out-of-service updates the implementation class for the new short message service provider based on the reconstructed code parsing.
Preferably, the short message content processing service receives the call of the internal interface, performs text splicing of the short message according to a short message template and a channel source, searches a supported short message service provider according to a communication number operator and a signature, and determines whether the short message service provider is a new short message service provider; and when the service provider is a new short message service provider, calling the short message service.
Specifically, the reconstructed code analysis adopts a strategy mode to construct a new interface implementation class for the new short message service provider.
More specifically, for the reconstructed code analysis, a policy mode is adopted to construct a new interface implementation class for the new short message service provider, namely, an implementation class corresponding to the new short message service provider is obtained, and an interface for callback is realized. The policy mode includes changing service codes (such as newly-built service codes, updated service codes, etc.) of the short message service, reconstructing or modifying an analysis module of the service codes, and establishing a mapping relation between each short message service provider and an implementation class. This can reduce the number of service codes and resources to be changed, and can reduce the risk of frequent online.
Further, through the appointed configuration of the short message to the external receiving service, a corresponding callback path is configured, and particularly, a corresponding http path interface (for example, a Facade interface) is configured in time for the new short message service provider. For example, an http path interface corresponding to the new short message service provider is configured through the apollo configuration center. The http path interface is used as a sending interface of the short message and is used for pushing information or sending an http path interface request.
Optionally, a white list corresponding to the new short message service provider is configured in the apollo configuration center.
In another embodiment, when it is determined that a new sms service provider does not exist (or it is determined that there is no new sms service provider), the sms outbound service (gws-sms-app service) calls an old interface or an original interface (one for each original sms service provider or old sms service provider), and sends an http path interface request using the old interface or the original interface.
Therefore, by analyzing and reconstructing or reforming the server of the short message service (gws-sms-app service), an implementation class is provided for each new short message service provider, and the server of the short message content processing service (gns-app service) does not need to be synchronously called and changed, and the short message service (gws-web service) does not need to be updated, so that an external partner can be accessed more efficiently, service codes and resources can be changed less, the risk of frequent online can be reduced, and the affected range of the service can be reduced. In addition, by analyzing the development efficiency of the newly accessed short message service provider after reconstruction or transformation, the time of 1/2 can be saved, so that the access and the online time of accessing the new short message service provider are obviously improved.
In example 2, the same parts as those in example 1 are omitted.
Those skilled in the art will appreciate that the modules in the above-described embodiments of the system may be distributed throughout a system as described, or may be distributed in one or more systems other than the above-described embodiments with corresponding variations. The modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
Compared with the prior art, the invention provides an implementation class for each new short message service provider through the analysis reconstruction or reconstruction of the server of the short message service provider (gws-sms-app service), and the server of the short message content processing service (gns-app service) does not need to be synchronously called or updated, and the short message service provider (gws-web service) does not need to be updated, so that the external partner can be accessed more efficiently, the service codes and resources can be changed less, the risk of frequent online can be reduced, and the affected range of the service can be reduced. And through the short message outside-facing sending service, the new short message service provider receives the callback result data of the sent short message callback through the callback path, performs asynchronous analysis on the message data, and cooperates with a message middleware to cache the message data, and performs asynchronous decoupling, so that the message processing capability of the short message service can be greatly improved.
In addition, by analyzing the development efficiency of the newly accessed short message service provider after reconstruction or transformation, the time of 1/2 can be saved, so that the access and the online time of accessing the new short message service provider are obviously improved.
In addition, after the reconstructed or modified short message is online to an external sending service (gws-sms-app service), synchronous online of the new short message service provider can be realized by only adding a callback address, a white list, json of a parsing format and the like corresponding to the new short message service provider.
Example 3
Computer device embodiments of the present invention are described below, which may be regarded as specific physical implementations for the method and system embodiments of the present invention described above. Details described in relation to the embodiments of the computer apparatus of the present invention should be considered supplementary to the above-described method or system embodiments; for details not disclosed in the embodiments of the computer apparatus of the present invention, reference may be made to the above-described method or system embodiments.
Fig. 7 is a block diagram of an exemplary embodiment of a computer device in accordance with the present invention. A computer apparatus 200 according to this embodiment of the present invention is described below with reference to fig. 7. The computer device 200 shown in fig. 7 is only an example and should not be construed as limiting the functionality and scope of use of embodiments of the invention.
As shown in fig. 7, the computer device 200 is in the form of a general purpose computing device. Components of computer device 200 may include, but are not limited to: at least one processing unit 210, at least one memory unit 220, a bus 230 connecting the different device components (including the memory unit 220 and the processing unit 210), a display unit 240, and the like.
Wherein the storage unit stores program code that is executable by the processing unit 210 such that the processing unit 210 performs the steps according to various exemplary embodiments of the present invention described in the processing method section of the computer device described above in the present specification. For example, the processing unit 210 may perform the steps shown in fig. 1.
The memory unit 220 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 2201 and/or cache memory 2202, and may further include Read Only Memory (ROM) 2203.
The storage unit 220 may also include a program/utility 2204 having a set (at least one) of program modules 2205, such program modules 2205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 230 may be a bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The computer device 200 may also communicate with one or more external devices 300 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the computer device 200, and/or any devices (e.g., routers, modems, etc.) that enable the computer device 200 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 250. Moreover, computer device 200 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 260. Network adapter 260 may communicate with other modules of computer device 200 via bus 230. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with computer device 200, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the exemplary embodiments described herein may be implemented in software, or may be implemented in software in combination with necessary hardware. Thus, the technical solution according to the embodiments of the present invention may be embodied in the form of a software product, which may be stored in a computer readable storage medium (may be a CD-ROM, a usb disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, or a network device, etc.) to perform the above-mentioned method according to the present invention. The computer program, when executed by a data processing device, enables the computer readable storage medium to carry out the above-described method of the present invention.
Fig. 8 is a block diagram of an exemplary embodiment of a computer readable storage medium according to the present invention.
As shown in fig. 8, the computer program may be stored on one or more computer readable storage media. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable storage medium may transmit, 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 storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like 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 computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
In summary, the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components in accordance with embodiments of the present invention may be implemented in practice using a general purpose data processing device such as a microprocessor or Digital Signal Processor (DSP). The present invention can also be embodied as a device or apparatus program (e.g., a computer program and a computer readable storage medium) for performing a portion or all of the methods described herein. Such a program embodying the present invention may be stored on a computer readable storage medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
The embodiment of the invention aims at the defects of a system message platform GNS in the prior art: (1) For a short message access external short message provider, each time a new short message provider is accessed, a realization class of a newly added short message content processing service (gns-app service) such as configuration of a short message provider sp realization class script is required, a newly added request parameter analysis, an http path interface sent splicing and return parameter analysis are required for invoking a short message to an external server sending service (gws-sms-app service), and even a short message state receipt analysis and an uplink short message callback analysis are required to be provided, that is, the newly accessed short message provider can be required to reconstruct the whole flow of gns-app and gws-sms-app on line, the subsequent expansion is inconvenient, and the processing efficiency is low; (2) gns-app and gws-sms-app are coupled with codes of old short message providers, and the codes of the old short message providers need to be deleted after re-access and stabilization each time to avoid technical liabilities caused by code bloating, so that service access processing is complex, tedious, low in efficiency and easy to make mistakes; (3) In each new short message provider, the analysis realization class of the short message callback and the callback address of the short message provided externally are required to be developed in the uplink callback process, namely, the flow of the short message to the external receiving service (gws-web service) is rebuilt, the old short message provider service is manually deleted or always reserved, the subsequent expansion is inconvenient, the processing efficiency is low, and the external safety hidden trouble caused by non-use such as the nginx white list configuration and the like is also involved. From the whole system architecture, optimization is performed, from the short message docking flow, frequently-changed logic parts are reduced, the changed logic parts are abstracted, external dependence is reduced, a new provider can be accessed online only by modifying the service code of the gws-sms-app, and meanwhile, callback information is changed from the original interface call to MQ information asynchronous decoupling, so that the receiving processing capacity can be greatly increased, the processing efficiency of a system information platform GNS when the system information platform GNS is accessed to the external short message provider is improved, and the whole processing efficiency is optimized.
The foregoing description of the specific embodiments provides further details of the objects, aspects and advantages of the present invention, and it should be understood that the present invention is not inherently related to any particular computer, virtual device or computer apparatus, and various general purpose devices may also implement the present invention. The foregoing description of the embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the invention.

Claims (15)

1. The short message service access optimization processing method is characterized by comprising the following steps:
when determining that a new short message service provider is accessed, calling a short message to send service outwards and reconstructing code analysis of the short message to send service outwards to update an implementation class for the new short message service provider;
configuring a corresponding callback path based on the reconstructed code analysis;
based on the reconstructed code analysis, carrying out message asynchronous analysis on the result data of the short message callback sent by the new short message service provider and received through the callback path;
and consuming the analyzed result data and then warehousing and storing the result data.
2. The method according to claim 1, wherein when it is determined that a new short message service provider is accessed, invoking a short message outbound service and reconstructing a code resolution of the short message outbound service to update an implementation class for the new short message service provider, specifically comprising:
when determining that a new short message service provider exists according to the received internal interface call, the short message template and the source, calling the short message service provider to send the short message to the outside;
the reconstructed code analysis adopts a strategy mode to construct a new interface implementation class for the new short message service provider;
and the short message external sending service sends the short message to the new short message service provider through a unified interface according to the sending strategy based on the sending strategy which is matched with the interface in class.
3. The method of claim 2, wherein invoking the sms out-to-send service when it is determined that a new sms service provider exists based on the received internal interface call, sms template, and source comprises:
the short message content processing service receives the call of the internal interface, performs text splicing of the short message according to a short message template and a channel source, searches a supported short message service provider according to a communication number operator and a signature, and determines whether the short message service provider is a new short message service provider;
And if the service provider is a new short message service provider, calling the short message service.
4. The method of claim 1, wherein externally configuring the respective callback paths based on the reconstructed code parsing comprises:
and based on the reconstructed code analysis and updated implementation class, configuring a corresponding http path interface for the new short message service provider in time through the appointed configuration of the short message to the external receiving service, wherein the updated implementation class comprises the implementation class for adding the message subscription.
5. The method according to claim 4, wherein the configuring the corresponding http path interface for the new sms service provider in time through the designated configuration of the sms to the external receiving service specifically includes:
and configuring the corresponding http path interface and white list for realizing callback for the new short message service provider in time by adding the apollo configuration.
6. The method according to claim 1, wherein the parsing based on the reconstructed code asynchronously parses the result data of the sms callback sent by the new sms service provider and received via the callback path, includes:
the new short message service provider calls back the sending state result and the uplink result to the short message external receiving service through an external configured http path interface based on the callback request;
And the short message pair external receiving service asynchronously stores the received sending state result and the uplink result into the middleware, and the short message pair external sending service asynchronously analyzes the message based on the reconstructed code analysis.
7. The method of claim 6, wherein the short message outbound receiving service asynchronously stores the received sending status result and the uplink result in the middleware, and specifically comprises:
and carrying the sending state result and the uplink result into the corresponding identification of the new short message service provider, and storing the identification into the middleware through asynchronous sending of the MQ message.
8. The method according to claim 7, wherein the message asynchronous parsing by the short message-to-out service based on the reconstructed code parsing, specifically comprises:
when the short message sends service consumption to the outside and asynchronously stores the MQ message of the middleware, analyzing corresponding short message data based on a data format of a short message service provider corresponding to the updated implementation class of the reconstructed code analysis;
and the short message pair external sending service converts the analyzed data into MQ information with a unified data format and forwards the MQ information to the middleware.
9. The method of claim 1, wherein storing the parsed result data in a warehouse after consuming it comprises:
The short message content processing service consumption middleware analyzes the MQ message, and stores the consumed short message result in a warehouse.
10. The short message service access optimizing processing system is characterized by comprising:
the reconfiguration module is used for calling the short message to send service outwards and reconstructing the code analysis of the short message to send service outwards when the new short message service provider is determined to be accessed, and updating the implementation class for the new short message service provider; configuring a corresponding callback path based on the reconstructed code analysis;
the analysis module is used for carrying out message asynchronous analysis on the result data of the short message callback sent by the new short message service provider and received through the callback path based on the reconstructed code analysis;
and the storage module is used for storing the parsed result data after being consumed in a warehouse.
11. The system of claim 10, wherein the system further comprises a controller configured to control the controller,
further comprises: the calling module is used for calling the short message service provider to send the service outwards when the existence of the new short message service provider is determined according to the received internal interface call, the short message template and the source;
and/or the number of the groups of groups,
the reconfiguration module is used for reconstructing the code analysis of the short message to the external sending service and updating the realization class of the new short message service provider, and specifically comprises the following steps: the reconstructed code analysis adopts a strategy mode to construct a new interface implementation class for the new short message service provider; the short message external sending service sends short messages to the new short message service provider through a unified interface according to the sending strategy based on the sending strategy which is matched with the interface in class;
And/or the number of the groups of groups,
the reconfiguration module is used for externally configuring a corresponding callback path based on the reconstructed code analysis, and specifically comprises the following steps: and based on the reconstructed code analysis and updated implementation class, configuring a corresponding http path interface for the new short message service provider in time through the appointed configuration of the short message to the external receiving service, wherein the updated implementation class comprises the implementation class for adding the message subscription.
12. The system of claim 10, wherein the parsing module comprises:
the new short message service provider calls back the sending state result and the uplink result to the short message external receiving service through an external configured http path interface based on the callback request;
and the short message pair external receiving service asynchronously stores the received sending state result and the uplink result into the middleware, and the short message pair external sending service asynchronously analyzes the message based on the reconstructed code analysis.
13. The system of claim 12, wherein the system further comprises a controller configured to control the controller,
the analysis module is used for asynchronously storing the received sending state result and the uplink result into the middleware by the short message external receiving service, and specifically comprises the following steps: carrying the sending state result and the uplink result into the corresponding identification of the new short message service provider, asynchronously sending the results through the MQ message, and storing the results into the middleware;
The method comprises the steps of,
the analysis module is used for carrying out message asynchronous analysis on the external sending service by the short message based on the reconstructed code analysis, and specifically comprises the following steps: when the short message sends service consumption to the outside and asynchronously stores the MQ message of the middleware, analyzing corresponding short message data based on a data format of a short message service provider corresponding to the updated implementation class of the reconstructed code analysis; and the short message pair external sending service converts the analyzed data into MQ information with a unified data format and forwards the MQ information to the middleware.
14. A computer device comprising a processor and a memory for storing a computer executable program which, when executed by the processor, performs the method of any one of claims 1 to 9.
15. A computer-readable medium storing one or more programs, wherein the computer-readable medium is characterized by: the method of any one of claims 1 to 9 is implemented when the one or more programs are executed by a processor.
CN202210754181.1A 2022-06-28 2022-06-28 Short message service access optimization processing method, system and computer equipment Active CN115297446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210754181.1A CN115297446B (en) 2022-06-28 2022-06-28 Short message service access optimization processing method, system and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210754181.1A CN115297446B (en) 2022-06-28 2022-06-28 Short message service access optimization processing method, system and computer equipment

Publications (2)

Publication Number Publication Date
CN115297446A CN115297446A (en) 2022-11-04
CN115297446B true CN115297446B (en) 2023-06-27

Family

ID=83820146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210754181.1A Active CN115297446B (en) 2022-06-28 2022-06-28 Short message service access optimization processing method, system and computer equipment

Country Status (1)

Country Link
CN (1) CN115297446B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873449A (en) * 2021-09-15 2021-12-31 北京仁科互动网络技术有限公司 Short message sending method, cloud service system, electronic device and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008098410A1 (en) * 2007-02-12 2008-08-21 Shanghai Anble Information Technology Co. Ltd. Gateway, system and method of providing composite information for mobile terminals
CN103425462B (en) * 2012-05-14 2016-12-14 阿里巴巴集团控股有限公司 A kind of method and apparatus of workflow data persistence
US9654581B2 (en) * 2014-05-30 2017-05-16 Apple Inc. Proxied push
CN106648858A (en) * 2016-11-29 2017-05-10 深圳市捷顺科技实业股份有限公司 Interactive management system for C# interface data
CN113795001B (en) * 2021-09-18 2023-01-31 上海中通吉网络技术有限公司 Method and device for sending system short message based on SPI

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873449A (en) * 2021-09-15 2021-12-31 北京仁科互动网络技术有限公司 Short message sending method, cloud service system, electronic device and storage medium

Also Published As

Publication number Publication date
CN115297446A (en) 2022-11-04

Similar Documents

Publication Publication Date Title
CN111158818B (en) Page rendering method and device
CN110324169B (en) Interface management method and device
KR20050091027A (en) System and method of creating and communicating with component based wireless applications
US20100005410A1 (en) Mobile device application framework
US20230297362A1 (en) Voice scene update method and device, terminal, server and system
JP2022520690A (en) Server-based segmentation of subscriber information and content format conversion for target content provisioning
US20130239231A1 (en) Communication Between Web Applications
US20080313267A1 (en) Optimize web service interactions via a downloadable custom parser
CN112261101B (en) Method for introducing rule engine into MQTT message center
CN113760324A (en) Method and device for constructing micro front-end application
CN113468067B (en) Application program debugging method and device, electronic equipment and computer readable medium
CN113076164B (en) Webpage language management method and device
CN114500481A (en) Service request processing method, system and device
CN112015469B (en) System reconstruction method and device and electronic equipment
CN115297446B (en) Short message service access optimization processing method, system and computer equipment
CN110807535A (en) Construction method and construction device of unified reservation platform and unified reservation platform system
US7908397B1 (en) Application server gateway technology
CN112035270A (en) Interface adaptation method, system, device, computer readable medium and electronic equipment
US20220311662A1 (en) Network configuring method for cloud mobile phone, device and storage medium
CN113961194A (en) Engineering construction method, system, terminal and medium based on FLUTTER cross-application
CN113708955A (en) Equipment configuration method, device and system
CN110012040B (en) Multi-state pendant updating method and system in mobile terminal
CN113779018A (en) Data processing method and device
US20110151848A1 (en) System and method for simplification of data structure in wireless communications
CN109981320A (en) A kind of management method and device of configuration information

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