CN116055472A - Multi-terminal unified service access system and method - Google Patents

Multi-terminal unified service access system and method Download PDF

Info

Publication number
CN116055472A
CN116055472A CN202310075894.XA CN202310075894A CN116055472A CN 116055472 A CN116055472 A CN 116055472A CN 202310075894 A CN202310075894 A CN 202310075894A CN 116055472 A CN116055472 A CN 116055472A
Authority
CN
China
Prior art keywords
message
unified
terminal
adapter
format
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310075894.XA
Other languages
Chinese (zh)
Inventor
戴鹏飞
周春姐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yantai Cloud Software Co ltd
Original Assignee
Yantai Cloud Software 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 Yantai Cloud Software Co ltd filed Critical Yantai Cloud Software Co ltd
Priority to CN202310075894.XA priority Critical patent/CN116055472A/en
Publication of CN116055472A publication Critical patent/CN116055472A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

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

Abstract

The invention discloses a multi-terminal unified service access system and a method, wherein the system comprises: the server is used for receiving the message and sending the message to the message sensing module; the message perception module is used for taking out a message format required by AcceptX in the header of the message and sending the identification result to the unified scheduling and processing module; the unified scheduling and processing module is used for converting the message into a unified format; the unified message is transmitted to a back-end application service, and the returned message is sent to a message processing module; the message processing module is used for acquiring a proper adapter from the conversion adapter cluster according to a receiving format appointed in the HTTP header of the return message; the adapter generates a processed message according to different input specifications and return result requirements; and sending the processed message to the request terminal. The method can effectively solve the problem of heterogeneous communication of messages of different terminals, reduce the complexity of multi-terminal self-adaptive application development and improve the terminal access efficiency.

Description

Multi-terminal unified service access system and method
Technical Field
The present invention relates to the field of data packet technologies, and in particular, to a system and a method for accessing unified services of multiple terminals.
Background
With the development of technology, various platforms and systems provide open API service interfaces, but when different terminals or third party platforms integrate data and services, compatibility requirements are often required on data packets exchanged by the API interfaces, for example: some platforms want to receive XML data, some platforms want to receive JSON data, some platforms want to directly provide Key-Value formatted data, some platforms may want to directly provide raw object data, which is especially apparent in the scenarios of SOAP-based WebService service docking, restful-based service docking, RPC-based service docking, object middleware-based service docking, etc., respectively.
How to solve the problem that service call among heterogeneous different-demand systems becomes a pain point by solving one-time logic coding and unified service release, currently, the industry generally adopts a mode of releasing multiple sets of services based on different service containers and notes, and the problem of waste of a series of resources is brought due to unbalanced request, multiple sets of service environments are required to be maintained, multiple sets of service codes are generated, and challenges are brought to development efficiency and service consistency guarantee.
Therefore, on the basis of the existing data message technology exchanged by the API interface, how to uniformly issue the services under the requirement of multi-language heterogeneous messages of the same service becomes a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above problems, the present invention provides a multi-terminal unified service access system and method for at least solving some of the above technical problems, which can overcome or at least partially solve the problem of returning a message of a required structure as required when different using terminals or service terminals call the same service.
The embodiment of the invention provides a multi-terminal unified service access system, which comprises the following steps:
the server is used for receiving the message and sending the message to the message sensing module;
the message perception module is used for taking out a message format required by AcceptX in the header of the message and sending the identification result to the unified scheduling and processing module;
the unified scheduling and processing module is used for converting the messages into a unified format according to different message specifications and different message parsing and converting adapters; transmitting the unified message to a back-end application service, and transmitting a return message to a message processing module after finishing business processing;
the message processing module is used for acquiring a proper adapter from the conversion adapter cluster according to the receiving format appointed in the HTTP header of the returned message; the adapter generates a processed message according to different input specifications and return result requirements; and sending the processed message to a request terminal.
Further, the server is further configured to receive a receivable message format sent by any terminal.
Further, the server is further configured to receive a canonical message sent by any terminal; the standard message request header is defined with an AcceptX header.
Further, the server is further configured to respectively establish conversion adapters for messages in different formats, and an adapter management device; the adapter management device is used for establishing a quick index and mapping relation between the message format and the conversion adapter.
Further, the adapter is further configured to process the data to be returned according to different input specifications and return result requirements by using a unified process method, convert the data to a format required by the terminal, and generate a processed message.
The embodiment of the invention also provides a multi-terminal unified service access method which is applied to the multi-terminal unified service access system, and the method comprises the following steps:
receiving a message through a server side, and sending the message to a message sensing module;
the message perception module takes out the message format required by AcceptX in the header of the message and sends the identification result to the unified scheduling and processing module;
the unified scheduling and processing module converts the message into a unified format according to different message specifications and different message parsing and converting adapters;
transmitting the unified message to a back-end application service;
after the back-end application service finishes business processing, sending a return message to a message processing module;
the message processing module acquires a proper adapter from the conversion adapter cluster according to a receiving format appointed in the HTTP header of the returned message;
the adapter generates a processed message according to different input specifications and return result requirements;
and the message processing module sends the processed message to a request terminal.
Further, before receiving the message through the server, the method further includes:
and sending the receivable message format to the server through any terminal.
Further, the sending, by any terminal, the receivable message format to the server includes:
any terminal sends a standard message to the server, and an AcceptX header is defined in a message request header of the standard to inform the server that the message format can be received.
Further, before receiving the message through the server, the method further includes:
establishing conversion adapters aiming at messages with different formats through the server side, and establishing an adapter management device; the adapter management device establishes a quick index and mapping relation between the message format and the conversion adapter.
Further, the adapter generates a processed message according to different input specifications and returned result requirements, including:
the adapter processes the data to be returned according to different input specifications and return result requirements by a unified process method, converts the data to be returned into a format required by a terminal and generates a processed message.
The technical scheme provided by the embodiment of the invention has the beneficial effects that at least:
the embodiment of the invention provides a multi-terminal unified service access system, which comprises the following components: the server is used for receiving the message and sending the message to the message sensing module; the message perception module is used for taking out a message format required by AcceptX in the header of the message and sending the identification result to the unified scheduling and processing module; the unified scheduling and processing module is used for converting the message into a unified format; the unified message is transmitted to the back-end application service, and the returned message is sent to the message processing module; the message processing module is used for acquiring a proper adapter from the conversion adapter cluster according to a receiving format appointed in the HTTP header of the return message; the adapter generates a processed message according to different input specifications and return result requirements; and sending the processed message to the request terminal. The method can effectively solve the problem of heterogeneous communication of messages of different terminals, reduce the complexity of multi-terminal self-adaptive application development and improve the terminal access efficiency.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
fig. 1 is a flowchart of a method for providing a multi-terminal unified service access method according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The embodiment of the invention provides a multi-terminal unified service access method, which comprises the following steps:
receiving the message through the server side and sending the message to the message sensing module;
the message perception module takes out the message format required by AcceptX in the header of the message and sends the identification result to the unified scheduling and processing module;
the unified scheduling and processing module converts the message into a unified format according to different message specifications and different message parsing and converting adapters;
transmitting the unified message to a back-end application service;
after the back-end application service finishes business processing, the back-end application service sends a return message to the message processing module;
the message processing module obtains a proper adapter from the conversion adapter cluster according to a receiving format appointed in an HTTP header of the return message;
the adapter generates a processed message according to different input specifications and return result requirements;
the message processing module sends the processed message to the request terminal.
The method provided by the embodiment can effectively solve the problem of heterogeneous communication of messages of different terminals, reduce the complexity of multi-terminal self-adaptive application development and improve the terminal access efficiency. The method can simultaneously realize the acquisition of the message demands of different terminals, and ensure the message structure, namely message perception, required by the opposite party when returning; the one-time writing of the service is realized, and the message structure adaptation of various communications is realized; and flexible expansion, such as the built-in message conversion adapter can not meet the conversion requirement, can customize the converter, and carry on the active registration.
Referring to fig. 1, the specific flow of the method is as follows:
1) Any terminal sends a message with a certain specification to the server, and an AcceptX header is defined in the request header to inform the server of a self-receivable message format, for example: XML, JSON, BINARY, RAW, KV, etc., initiate a request to a server;
2) The server defines conversion adapters for messages with different formats, establishes an adapter management device, and establishes a quick index and mapping relation of the message format and the conversion adapters as < message format, adapter >;
3) After receiving the message, the server sends the message to the message sensing module;
4) The message perception module acquires a message format required by AcceptX in the head and sends an identification result to the unified scheduling and processing module;
5) The unified scheduling and processing module converts the message into a unified format according to different message specifications and different message parsing and converting adapters;
6) The unified message is transmitted to a back-end application service;
7) After the back-end application service finishes business processing, the back-end application service sends a return message to the message processing module;
8) The message processing module obtains a proper adapter from a conversion adapter cluster (message conversion adapter cluster) according to a receiving format appointed in the HTTP header;
9) The adapter realizes the processing of the data to be returned through a unified process method according to different input specifications and return result requirements, converts the data to be returned into a format required by a terminal and generates a processed message;
10 The message processing module sends the processed message to the request terminal.
Specifically, the packet conversion adapter cluster includes: the embodiment is not limited to the customizable authentication expansion module such as the XML message conversion adapter, JSON message conversion adapter, BINARY message conversion adapter, RAW message conversion adapter, KV message conversion adapter, probuff message conversion adapter, and the like.
The multi-terminal unified service access method provided by the embodiment is a multi-terminal different-demand request unified service access method, and by establishing a unified access layer, a message perception layer (message perception module), a unified scheduling and processing module and a dynamic conversion adapter device, unified release of services under the requirement of multi-language heterogeneous messages of the same service is realized, so that the problem that messages with required structures are returned as required when different using terminals or business terminals call the same service is effectively solved, the service response adaptation capability is greatly improved, the consistency of service logic and codes is ensured, the development and maintenance cost is reduced, the service reliability is improved, and the resource consumption is saved.
Based on the same inventive concept, the embodiment of the invention also provides a multi-terminal unified service access system, and because the principle of the problem solved by the system is similar to that of the multi-terminal unified service access method, the implementation of the system can refer to the implementation of the method, and the repetition is omitted.
The embodiment of the invention also provides a multi-terminal unified service access system, which comprises:
the server is used for receiving the message and sending the message to the message sensing module;
the message perception module is used for taking out a message format required by AcceptX in the header of the message and sending the identification result to the unified scheduling and processing module;
the unified scheduling and processing module is used for converting the message into a unified format according to different message specifications and different message parsing and converting adapters; transmitting the unified message to a back-end application service, and transmitting the returned message to a message processing module after finishing business processing;
the message processing module is used for acquiring a proper adapter from the conversion adapter cluster according to a receiving format appointed in the HTTP header of the return message; the adapter generates a processed message according to different input specifications and return result requirements; and sending the processed message to the request terminal.
Specifically, the server is further configured to receive a format of a receivable message sent by any terminal, and receive a canonical message sent by any terminal; the standard message request header is defined with an AcceptX header; the adapter management device is also used for respectively establishing conversion adapters aiming at messages with different formats; the adapter management device is used for establishing a quick index and mapping relation between the message format and the conversion adapter.
The adapter is also used for processing the data to be returned according to different input specifications and return result requirements through a unified process method, converting the data to be returned into a format required by the terminal and generating a processed message.
The multi-terminal unified service access system and the method provided by the embodiment can dynamically sense the message demands of different terminals and automatically perform message conversion, so that repeated development is avoided, the consistency of service logic is ensured, the running stability of the system is improved, and the use cost is reduced; meanwhile, the developer only needs to pay attention to specific service implementation, and does not need to consider service release and external message contract requirements. The development amount can be reduced by 30%, and the service maintenance cost can be reduced by 50%.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. A multi-terminal unified service access system, comprising:
the server is used for receiving the message and sending the message to the message sensing module;
the message perception module is used for taking out a message format required by AcceptX in the header of the message and sending the identification result to the unified scheduling and processing module;
the unified scheduling and processing module is used for converting the messages into a unified format according to different message specifications and different message parsing and converting adapters; transmitting the unified message to a back-end application service, and transmitting a return message to a message processing module after finishing business processing;
the message processing module is used for acquiring a proper adapter from the conversion adapter cluster according to the receiving format appointed in the HTTP header of the returned message; the adapter generates a processed message according to different input specifications and return result requirements; and sending the processed message to a request terminal.
2. The multi-terminal unified service access system of claim 1 wherein the server is further configured to receive a receivable message format sent by any one of the terminals.
3. The multi-terminal unified service access system according to claim 2, wherein the server is further configured to receive a canonical packet sent by any terminal; the standard message request header is defined with an AcceptX header.
4. The multi-terminal unified service access system according to claim 2, wherein the server is further configured to respectively establish conversion adapters for messages of different formats, and an adapter management device; the adapter management device is used for establishing a quick index and mapping relation between the message format and the conversion adapter.
5. The multi-terminal unified service access system of claim 1, wherein the adapter is further configured to process the data to be returned by a unified process method according to different input specifications and return result requirements, convert the processed data into a format required by the terminal, and generate the processed message.
6. A multi-terminal unified service access method, characterized in that it is applied to a multi-terminal unified service access system according to any one of claims 1 to 5, the method comprising:
receiving a message through a server side, and sending the message to a message sensing module;
the message perception module takes out the message format required by AcceptX in the header of the message and sends the identification result to the unified scheduling and processing module;
the unified scheduling and processing module converts the message into a unified format according to different message specifications and different message parsing and converting adapters;
transmitting the unified message to a back-end application service;
after the back-end application service finishes business processing, sending a return message to a message processing module;
the message processing module acquires a proper adapter from the conversion adapter cluster according to a receiving format appointed in the HTTP header of the returned message;
the adapter generates a processed message according to different input specifications and return result requirements;
and the message processing module sends the processed message to a request terminal.
7. The method for accessing unified service for multiple terminals as recited in claim 6, wherein before receiving the message through the service end, further comprising:
and sending the receivable message format to the server through any terminal.
8. The method for accessing multi-terminal unified service according to claim 7, wherein transmitting the receivable message format to the service terminal through any terminal comprises:
any terminal sends a standard message to the server, and an AcceptX header is defined in a message request header of the standard to inform the server that the message format can be received.
9. The method for accessing unified service for multiple terminals as recited in claim 7, wherein before receiving the message through the service end, further comprising:
establishing conversion adapters aiming at messages with different formats through the server side, and establishing an adapter management device; the adapter management device establishes a quick index and mapping relation between the message format and the conversion adapter.
10. The method for accessing unified service of multiple terminals as recited in claim 6, wherein the adapter generates the processed message according to different input specifications and return result requirements, comprising:
the adapter processes the data to be returned according to different input specifications and return result requirements by a unified process method, converts the data to be returned into a format required by a terminal and generates a processed message.
CN202310075894.XA 2023-02-07 2023-02-07 Multi-terminal unified service access system and method Pending CN116055472A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310075894.XA CN116055472A (en) 2023-02-07 2023-02-07 Multi-terminal unified service access system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310075894.XA CN116055472A (en) 2023-02-07 2023-02-07 Multi-terminal unified service access system and method

Publications (1)

Publication Number Publication Date
CN116055472A true CN116055472A (en) 2023-05-02

Family

ID=86116254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310075894.XA Pending CN116055472A (en) 2023-02-07 2023-02-07 Multi-terminal unified service access system and method

Country Status (1)

Country Link
CN (1) CN116055472A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116720520A (en) * 2023-08-07 2023-09-08 烟台云朵软件有限公司 Text data-oriented alias entity rapid identification method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116720520A (en) * 2023-08-07 2023-09-08 烟台云朵软件有限公司 Text data-oriented alias entity rapid identification method and system
CN116720520B (en) * 2023-08-07 2023-11-03 烟台云朵软件有限公司 Text data-oriented alias entity rapid identification method and system

Similar Documents

Publication Publication Date Title
AU2021266359A1 (en) Edge computing-based internet of things proxy apparatus and data decision-making method
CN101917385B (en) Dispatch server and distributed system for multimedia trans-coding
CN102810069A (en) JAVA object requesting and responding methods, devices and systems and terminal
WO2011130940A1 (en) Multi-service integration processing method and service integration platform
CN102946425B (en) Based on the Uniform Communication Platform service integration framework of OSGi
CN108184208B (en) Communication method and core network equipment in broadband cluster system
WO2018157732A1 (en) Data transmission method and apparatus
US11948021B2 (en) Method for inter-core communication, processor, inter-core communication system and computer readable storage medium
US20220408499A1 (en) Data transmission method and device
CN116055472A (en) Multi-terminal unified service access system and method
CN103209392A (en) Cross-process and multi-application massage pushing method and device
CN114157537A (en) System and method for realizing multi-source heterogeneous data access by general equipment gateway
CN103532959A (en) Cross-platform network communication method
CN111240858A (en) Event scheduling method and component
CN103782278A (en) System and method for providing dynamic invocation and service interface for use in middleware or other environment
CN110166485B (en) Protocol scheduling and using method and device
CN113010381A (en) Method and equipment for managing components
CN106936937B (en) Method and device for realizing universal interface for internet service interaction
CN102238505B (en) Method and system for processing multi-user parallel signalling tracking at client
CN111314213A (en) Communication gateway system of cross-local area network
CN114745564B (en) Service scheduling method and device
CN108289165B (en) Method and device for realizing camera control based on mobile phone and terminal equipment
CN104135414A (en) Method for secondary safety protection of synchronous cross-district services based on information exchange bus
CN109582481B (en) Transmission method, device and equipment of call result and storage medium
CN113992641A (en) Data processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination