CN110134523A - It is a kind of using message system as the system architecture of core - Google Patents

It is a kind of using message system as the system architecture of core Download PDF

Info

Publication number
CN110134523A
CN110134523A CN201811583756.8A CN201811583756A CN110134523A CN 110134523 A CN110134523 A CN 110134523A CN 201811583756 A CN201811583756 A CN 201811583756A CN 110134523 A CN110134523 A CN 110134523A
Authority
CN
China
Prior art keywords
message
subsystem
system architecture
queue
message queue
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
CN201811583756.8A
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.)
Anhui Dingzhong Financial Information Consulting Service Co Ltd
Original Assignee
Anhui Dingzhong Financial Information Consulting Service 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 Anhui Dingzhong Financial Information Consulting Service Co Ltd filed Critical Anhui Dingzhong Financial Information Consulting Service Co Ltd
Priority to CN201811583756.8A priority Critical patent/CN110134523A/en
Publication of CN110134523A publication Critical patent/CN110134523A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multi Processors (AREA)

Abstract

The invention discloses a kind of using message system as the system architecture of core, steps are as follows: taking out various businesses event type to be processed in system, the each theme being defined as in message queue, by business processing logic by must handle and can be classified with the standard of asynchronous process in real time, and it disassembles and arrives different subsystems, a kind of support message is selected to store, the Distributed Message Queue of message subscribing mode, infrastructure as each intersubsystem communication, the one or more subsystem open to outside, it is mainly used for confirming transaction request, and complete the business processing logic that must be returned the result in real time, one or more of the other subsystem, it is connected to message queue, etc. message to be treated to be received, such system solves coupling common in the system of quick evolution with the reliability of message queue itself and message distribution mode In close problem complicated, reliability consistency is poor, overall complexity is excessively high, better prospect of the application is brought.

Description

It is a kind of using message system as the system architecture of core
Technical field
The invention belongs to message system framework fields, are using Message Queuing system as core in particular to a kind of System framework method and device.
Background technique
Module or subsystem in current large and medium-sized computer system mainly combine in several ways: each in monomer applications Function or method call are used between module, are realized between the subsystem of distributed system by following methods and are called mutually: The traditional middlewares such as transaction bus system, HTTP message, the socket message of class ISO8583, RPC calling, Tuxedo calling, There is certain business complexity, and always in fast-changing business scope, cost, the speed of building major comonomer application Degree is difficult to meet the needs of business development, and is difficult to control system variation bring risk, and for sub in distributed system The mutual method of calling of system, and more complexities, risk point are introduced, or even there are abnormal conditions such as message losss, cause System mode consistency is difficult to control, it is necessary to introduce more other technologies or mechanism is guaranteed, further improve system Overall complexity and fragility.
Summary of the invention
The main purpose of the present invention is to provide a kind of using message system as the system architecture of core, can effectively solve to carry on the back The problems in scape technology.
To achieve the above object, the technical scheme adopted by the invention is as follows:
It is a kind of using message system as the system architecture of core, follow the steps below to implement:
Step S1: various businesses event type to be processed in system, each master being defined as in message queue are taken out Topic;
Step S2: it by business processing logic by must handle and can be classified with the standard of asynchronous process in real time, and tears open Solve different subsystems;
Step S3: a kind of Distributed Message Queue for supporting message storage, message subscribing mode is selected, as each subsystem Between the infrastructure that communicates;
Step S4: one or more subsystems open to outside are mainly used for confirming transaction request, and completing must be real When the business processing logic that returns the result;
Step S5: one or more of the other subsystem is connected to message queue, waits message to be treated to be received.
2. a kind of using message system as the system architecture of core according to right 1, which is characterized in that described to external-open The business event type of itself triggering is published to the difference of message queue by the subsystem put after the business processing for completing itself Theme.
3. a kind of using message system as the system architecture of core according to right 1, which is characterized in that other sons System is connected to message queue, and subscribes to the theme mutually applied according to the needs of itself, waits disappearing for other subsystem push Breath.
4. a kind of using message system as the system architecture of core according to right 1, which is characterized in that the reception disappears Even if the subsystem of breath collapses, the stability and performance of the subsystem externally serviced will not be influenced.
5. a kind of using message system as the system architecture of core according to right 1, which is characterized in that described by message The message that queue ensures to generate during collapsing still can be handled normally in consumption after subsystem recovery.
6. a kind of using message system as the system architecture of core according to right 1, wherein other subsystems are in message New business event is triggered in treatment process, can same PUSH message to corresponding theme.
7. a kind of using message system as the system architecture of core according to right 1, wherein close message and automatically confirm that Afterwards, subsystem throw exception in business procession causes message not handle normally, and abnormal conditions still can be with after repairing It obtains message again from message queue and is handled.
Compared with prior art, the invention has the following beneficial effects:
In the present invention, a kind of system architecture method based on message queue in a distributed manner is provided, with message queue itself Reliability and message distribution mode solve in the system of quick evolution it is common it is too tightly coupled it is complicated, reliability is consistent The problem that property is poor, overall complexity is excessively high, brings better prospect of the application.
Detailed description of the invention
Structural relation figure of the Fig. 1 between overall system of the present invention;
Fig. 2 is prior-art illustration of the present invention.
Fig. 3 is the subsystem flow chart that the present invention opens to the outside world.
Fig. 4 is the other subsystem basic flow charts of the present invention.
Specific embodiment
In a specific embodiment, the system architecture using message system as core will be described clear and completely in conjunction with attached drawing Detailed process.It should be pointed out that these descriptions are example, the range being not intended to limit the present invention.In addition, following In explanation, descriptions of well-known structures and technologies are omitted, obscures idea of the invention to avoid unnecessary.
Specific step is as follows:
The main process flow of the subsystem of opening includes step S301: recording specific time, step after receiving request S302: globally unique transaction id is generated, step S303: by transaction journal data-in library (or other storage), step S304: It is normally carried out business processing, step S305: given out information to the message queue of corresponding theme, message content includes when receiving request Between, news release time, global transaction id, service processing result etc., step S306: according to service processing result by step S303 The transaction journal of registration be revised as successfully, failure or other corresponding states, step S307: according to service processing result and transaction flow Water state is returned the result to client, and message basic format is approximately as example (json format):
Other main process flows of subsystem include:
Step S401: it is connected to the message that corresponding theme is waited on message queue;
Step S402: checking whether message is processed, and S407 is entered step if processed according to global transaction id, S403 is entered step if untreated;
Step S403: registration message handles flowing water;
Step S404: it is examined according to the Timeout policy of this service reservation justice using transaction request time or news release time Look into whether time-out, if time-out if enter step S407, have not timed out enter S405;
Step S405: business processing is carried out according to message content;
6. step S406: according to service processing result by the step S403 transaction journal registered be revised as successfully, failure or Other corresponding states;
Step S407: confirmation message has been consumed.
The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention.The technology of the industry Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and the above embodiments and description only describe this The principle of invention, without departing from the spirit and scope of the present invention, various changes and improvements may be made to the invention, these changes Change and improvement all fall within the protetion scope of the claimed invention.The claimed scope of the invention by appended claims and its Equivalent thereof.

Claims (7)

1. it is a kind of using message system as the system architecture of core, it follows the steps below to implement:
Step S1: various businesses event type to be processed in system, each theme being defined as in message queue are taken out;
Step S2: it by business processing logic by must handle and can be classified with the standard of asynchronous process in real time, and disassembles and arrives Different subsystems;
Step S3: a kind of Distributed Message Queue for supporting message storage, message subscribing mode is selected, is led to as between each subsystem The infrastructure of letter;
Step S4: one or more subsystems open to outside are mainly used for confirming transaction request, and complete to return in real time Return the business processing logic of result;
Step S5: one or more of the other subsystem is connected to message queue, waits message to be treated to be received.
2. a kind of using message system as the system architecture of core according to right 1, which is characterized in that the opening The business event type of itself triggering is published to the different themes of message queue by subsystem after the business processing for completing itself.
3. a kind of using message system as the system architecture of core according to right 1, which is characterized in that other subsystems System is connected to message queue, and subscribes to the theme mutually applied according to the needs of itself, waits the message of other subsystem push.
4. a kind of using message system as the system architecture of core according to right 1, which is characterized in that the reception message Even if subsystem collapses, the stability and performance of the subsystem externally serviced will not be influenced.
5. a kind of using message system as the system architecture of core according to right 1, which is characterized in that described by message queue The message for ensuring to generate during collapsing still can be handled normally in consumption after subsystem recovery.
6. a kind of using message system as the system architecture of core according to right 1, wherein other subsystems are in Message Processing Trigger new business event in the process, can same PUSH message to corresponding theme.
7. a kind of using message system as the system architecture of core according to right 1, wherein after closing message automatically confirms that, Subsystem throw exception in business procession causes message not handle normally, still can be from disappearing after abnormal conditions reparation Breath queue obtains message again and is handled.
CN201811583756.8A 2018-12-24 2018-12-24 It is a kind of using message system as the system architecture of core Pending CN110134523A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811583756.8A CN110134523A (en) 2018-12-24 2018-12-24 It is a kind of using message system as the system architecture of core

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811583756.8A CN110134523A (en) 2018-12-24 2018-12-24 It is a kind of using message system as the system architecture of core

Publications (1)

Publication Number Publication Date
CN110134523A true CN110134523A (en) 2019-08-16

Family

ID=67568385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811583756.8A Pending CN110134523A (en) 2018-12-24 2018-12-24 It is a kind of using message system as the system architecture of core

Country Status (1)

Country Link
CN (1) CN110134523A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111224814A (en) * 2019-11-19 2020-06-02 中国联合网络通信集团有限公司 Message processing method and device
CN113301558A (en) * 2020-06-29 2021-08-24 阿里巴巴集团控股有限公司 Message transmission method, device, system and storage medium
CN113709505A (en) * 2020-09-25 2021-11-26 天翼智慧家庭科技有限公司 System and method for implementing unified management and injection of media assets

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118138A (en) * 2013-03-04 2013-05-22 中国信息安全测评中心 Cloud service based message queue stream processing method
CN104092767A (en) * 2014-07-21 2014-10-08 北京邮电大学 Posting/subscribing system for adding message queue models and working method thereof
CN106453136A (en) * 2016-09-05 2017-02-22 深圳前海微众银行股份有限公司 Method and device for establishing message queue
CN107423142A (en) * 2017-06-28 2017-12-01 北京明朝万达科技股份有限公司 It is a kind of based on issue, the database message Notification Method of subscribing mode and system
CN108089915A (en) * 2016-11-22 2018-05-29 北京京东尚科信息技术有限公司 The method and system of business controlization processing based on message queue

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118138A (en) * 2013-03-04 2013-05-22 中国信息安全测评中心 Cloud service based message queue stream processing method
CN104092767A (en) * 2014-07-21 2014-10-08 北京邮电大学 Posting/subscribing system for adding message queue models and working method thereof
CN106453136A (en) * 2016-09-05 2017-02-22 深圳前海微众银行股份有限公司 Method and device for establishing message queue
CN108089915A (en) * 2016-11-22 2018-05-29 北京京东尚科信息技术有限公司 The method and system of business controlization processing based on message queue
CN107423142A (en) * 2017-06-28 2017-12-01 北京明朝万达科技股份有限公司 It is a kind of based on issue, the database message Notification Method of subscribing mode and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111224814A (en) * 2019-11-19 2020-06-02 中国联合网络通信集团有限公司 Message processing method and device
CN113301558A (en) * 2020-06-29 2021-08-24 阿里巴巴集团控股有限公司 Message transmission method, device, system and storage medium
CN113301558B (en) * 2020-06-29 2022-09-27 阿里巴巴集团控股有限公司 Message transmission method, device, system and storage medium
CN113709505A (en) * 2020-09-25 2021-11-26 天翼智慧家庭科技有限公司 System and method for implementing unified management and injection of media assets

Similar Documents

Publication Publication Date Title
CN110134523A (en) It is a kind of using message system as the system architecture of core
CN110995678B (en) Industrial control network-oriented efficient intrusion detection system
US20140222887A1 (en) Generic distributed processing unit for multi-agent systems
US20110153581A1 (en) Method for Providing Connections for Application Processes to a Database Server
CN109062982B (en) Financial data interaction method and device, computer equipment and storage medium
CN107766175B (en) Data processing system for bank
CN112328362B (en) Method for realizing function calculation service based on container technology
US20220343424A1 (en) Stock exchange trading platform
CN109634764A (en) Work-flow control method, apparatus, equipment, storage medium and system
CN109858772A (en) A kind of processing method of work order, device and system
WO2020006902A1 (en) Batch payment method and apparatus, computer device, and storage medium
CN104079624A (en) Message access layer framework based on service and implementing method thereof
US10135944B2 (en) Processing a unit of work
US8086671B2 (en) Systems and methods that facilitate in-order serial processing of related messages
US9201745B2 (en) Method of improving replica server performance and a replica server system
CN103019848A (en) Method for realizing peripheral component interconnect (PCI) bus non-vector interrupt
US6832268B2 (en) Mechanism to guarantee forward progress for incoming coherent input/output (I/O) transactions for caching I/O agent on address conflict with processor transactions
CN117033033B (en) Method for efficient configuration and interaction of public service in service bus
CN102404786B (en) Method and device for controlling service jam
CN100471171C (en) Establishment of TCP data flow connection by hardware
CN110515749B (en) Method, device, server and storage medium for queue scheduling of information transmission
CN104021196A (en) I/O multiplexing method for System V message queue
CN111866157A (en) Cloud service gateway and cloud service internal and external request format conversion method
CN111447273A (en) Cloud processing system and data processing method based on cloud processing system
CN116319810A (en) Flow control method, device, equipment, medium and product of distributed system

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 230000 Room 601, Building D, Six Floors, Phase I, Anhui Youth E-Commerce Industrial Park, No. 88 Lanzhou Road, Baohe Economic Development Zone, Hefei City, Anhui Province

Applicant after: Anhui dingzhongshuke Information Technology Co., Ltd

Address before: 230000 Room 601, Building D, Six Floors, Phase I, Anhui Youth E-Commerce Industrial Park, No. 88 Lanzhou Road, Baohe Economic Development Zone, Hefei City, Anhui Province

Applicant before: ANHUI DINGZHONG FINANCE INFORMATION CONSULTATION SERVICE Co.,Ltd.