CN114358770B - System architecture with multiplexing function - Google Patents
System architecture with multiplexing function Download PDFInfo
- Publication number
- CN114358770B CN114358770B CN202111551414.XA CN202111551414A CN114358770B CN 114358770 B CN114358770 B CN 114358770B CN 202111551414 A CN202111551414 A CN 202111551414A CN 114358770 B CN114358770 B CN 114358770B
- Authority
- CN
- China
- Prior art keywords
- unit
- compensation mechanism
- transaction
- adapter
- processing
- 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
Links
- 230000007246 mechanism Effects 0.000 claims abstract description 56
- 238000011144 upstream manufacturing Methods 0.000 claims abstract description 36
- 238000012545 processing Methods 0.000 claims description 72
- 230000006978 adaptation Effects 0.000 claims description 7
- 238000012423 maintenance Methods 0.000 claims description 6
- 238000012795 verification Methods 0.000 claims description 6
- 238000012216 screening Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 abstract description 22
- 238000011161 development Methods 0.000 abstract description 6
- 238000000034 method Methods 0.000 abstract description 4
- 230000008569 process Effects 0.000 abstract description 4
- 230000000694 effects Effects 0.000 abstract description 2
- 238000002347 injection Methods 0.000 abstract description 2
- 239000007924 injection Substances 0.000 abstract description 2
- 239000013589 supplement Substances 0.000 abstract 1
- 230000005856 abnormality Effects 0.000 description 4
- 210000001503 joint Anatomy 0.000 description 2
- 239000000243 solution Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Hardware Redundancy (AREA)
- Stored Programmes (AREA)
Abstract
The invention belongs to the technical field of software architecture, and particularly relates to a system architecture with multiplexing function, which comprises a system initialization module, a system transaction module and a system compensation mechanism module, wherein the system initialization module is used as an initial stage of system operation, and object instantiation, configuration parameter injection, loading adapter and other loading functions are realized. And the system transaction module processes the real-time transaction data to complete normal execution of the service and realize the established service target. And finally, the system compensation mechanism module is used as the supplement of the transaction module, processes unfinished business targets by multiplexing general business branches, and reaches a final business state. The invention connects with the upstream system through the adapter, and the access realization logic of the upstream system is independently and separately realized, thereby effectively realizing the target effect of plug and play, avoiding the technical frame of the upstream system and the logic being deeply embedded into the system, reducing the complexity of the system which is rapidly iterated and is rapidly increased, and meeting the rapid development of the service.
Description
Technical Field
The invention belongs to the technical field of software architecture, and particularly relates to a system architecture with multiplexing function.
Background
With the gradual development of payment technology, various diversified payment scenes such as two-dimensional code payment, quick payment, gateway payment, public payment and the like are formed in society, so that payment companies and systems with different capacities are generated. In order to keep business steadily evolving and orderly advancing, the payment system has to access to many upstream systems of different capabilities and functions, thus enriching the payment capabilities of the system.
At present, in the field of payment architecture design, a payment system is simply built by stacking an open source frame; however, with continuous iteration of service functions, the technical architecture becomes more and more complex, portability, expansibility, gradually decreasing system stability, gradually increasing learning and later maintenance costs, and the period of accessing a new upstream payment system becomes longer and longer, thereby affecting the service development of the company.
Disclosure of Invention
The invention discloses a system architecture with multiplexing function, which aims to solve the technical problems that the current payment architecture is more and more complex, portability, expansibility, system stability is gradually reduced, and learning and later maintenance costs are gradually increased in the background art.
In order to solve the technical problems, the invention adopts the following technical scheme:
a system architecture with multiplexing function comprises a system initialization module and a system transaction module;
the system initialization module comprises an adapter loading unit and a function loading unit;
The adapter loading unit is used for automatically scanning the adapter interface of the adapter and storing the scanned implementation mode of the adapter interface into a newly-built storage space in the storage;
The function loading unit is used for instantiating the object, injecting configuration parameters and loading other function options for guaranteeing the operation of the whole system; other functional options for guaranteeing the operation of the whole system are exemplified as follows: initializing links of middleware such as cache equipment, storage equipment and the like, and detecting network connectivity between the system and other systems.
The system transaction module comprises a parameter verification unit, a front-end service implementation unit, an intelligent routing unit, an executor processing unit and an executor result processing unit;
The parameter verification unit is used for verifying and checking the interface input parameters;
the front-end service implementation unit is used for processing the warehouse entry of the transaction, the judgment of the transaction protocol and the transaction authority;
The intelligent routing unit is used for calling an adapter interface corresponding to the adapter stored in the storage and automatically screening out an adapter type matched with an upstream system;
The executor processing unit is used for selecting logic of the adapter processing service according to the adaptation type which is selected by the intelligent route selection unit and is adapted to the upstream system;
And the actuator result processing unit is used for carrying out unified subsequent processing on the results returned by the actuator processing unit. The follow-up processing refers to transaction state processing, accounting processing, three-party system linkage notification and the like. The three-party system refers to a downstream system, a system and an upstream system.
The invention connects with the upstream system through the adapter, effectively isolates the access function of the upstream system, realizes the decoupling of the general logic of the upstream system and the system, prevents the technical architecture of the upstream system from being deeply embedded into the system, and effectively reduces the complexity of the system.
Further, the system also comprises a system compensation mechanism module, wherein the system compensation mechanism module comprises a front-end service logic unit, an executor processing unit and an executor result processing unit;
the front-end service logic unit is used for acquiring data to be compensated, processing front-end transaction logic and calling the executor processing unit for processing;
The executor processing unit is used for selecting logic of the adapter processing service according to the adaptation type which is selected by the intelligent route selection unit and is adapted to the upstream system;
The actuator result processing unit is used for uniformly processing the results returned by the actuator processing unit.
The system compensation mechanism module and the system transaction module adopt the same actuator processing unit and the same actuator result processing unit, thereby realizing the multiplexing function of a plurality of units of a plurality of modules and reducing redundancy and complexity.
According to the invention, by setting the system compensation mechanism module, when the transaction does not reach a preset result, the system can call the compensation mechanism in the whole period of the transaction, so that the transaction reaches a final state; the problem that the transaction is not in a final state due to the scenes of system abnormality, network abnormality and the like can be avoided.
Further, the system compensation mechanism module comprises a real-time transaction compensation mechanism unit, wherein the real-time transaction compensation mechanism unit is used for triggering the compensation mechanism to obtain a final result when the real-time transaction does not reach a preset result.
Further, the system compensation mechanism module comprises an asynchronous notification compensation mechanism unit, wherein the asynchronous notification compensation mechanism unit is used for notifying the system of the result when the real-time transaction is asynchronous logic or does not reach the preset result, and triggering the compensation mechanism by an upstream system with the asynchronous logic or the failure to reach the preset result.
Further, the system compensation mechanism module comprises a system start trigger compensation mechanism unit, and the system start trigger compensation mechanism unit is used for actively calling a compensation mechanism when the system is restarted after maintenance, triggering a transaction which does not reach a preset result, and obtaining a final result.
In summary, due to the adoption of the technical scheme, the beneficial effects of the invention are as follows:
1. the invention is connected with the upstream system through the adapter, so that for a developer, only the adapter corresponding to the access system is needed to be focused and realized, other modules of the system are not needed to be understood, and the upstream system architecture is not deeply embedded into the access system; therefore, the complexity of the system is greatly reduced and the expandability, portability and stability of the system are improved by the way of connecting the adapter to the upstream system.
2. The invention, by means of the adaptor butt-connection of the upstream system, independently and separately isolates the access realization logic of the upstream system, can effectively realize the plug-and-play effect, reduces the system complexity of rapid iteration and rapid increase of the service, and satisfies the rapid development of the service.
Drawings
The invention will now be described by way of example and with reference to the accompanying drawings in which:
Fig. 1 is a system block diagram of the present invention.
FIG. 2 is a flow chart of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
An embodiment of the present invention will be described in detail with reference to fig. 1;
a system architecture with multiplexing function comprises a system initialization module and a system transaction module;
the system initialization module comprises an adapter loading unit and a function loading unit;
The adapter loading unit is used for automatically scanning the adapter interface of the adapter and storing the scanned implementation mode of the adapter interface into a newly-built storage space in the storage;
The function loading unit is used for instantiating the object, injecting configuration parameters and loading other function options for guaranteeing the operation of the whole system; other functional options for guaranteeing the operation of the whole system are exemplified as follows: initializing links of middleware such as cache equipment, storage equipment and the like, and detecting network connectivity between the system and other systems.
The system transaction module comprises a parameter verification unit, a front-end service implementation unit, an intelligent routing unit, an executor processing unit and an executor result processing unit;
The parameter verification unit is used for verifying and checking the interface input parameters;
the front-end service implementation unit is used for processing the warehouse entry of the transaction, the judgment of the transaction protocol and the transaction authority;
The intelligent routing unit is used for calling an adapter interface corresponding to the adapter stored in the storage and automatically screening out an adapter type matched with an upstream system;
The executor processing unit is used for selecting logic of the adapter processing service according to the adaptation type which is selected by the intelligent route selection unit and is adapted to the upstream system;
And the actuator result processing unit is used for carrying out unified subsequent processing on the results returned by the actuator processing unit. The follow-up processing refers to transaction state processing, accounting processing, three-party system linkage notification and the like. The three-party system refers to an upstream system, a system and a downstream system.
The system also comprises a system compensation mechanism module, wherein the system compensation mechanism module comprises a front-end service logic unit, an executor processing unit and an executor result processing unit;
the front-end service logic unit is used for acquiring data to be compensated, processing front-end transaction logic and calling the executor processing unit for processing;
The executor processing unit is used for selecting logic of the adapter processing service according to the adaptation type which is selected by the intelligent route selection unit and is adapted to the upstream system;
the actuator result processing unit is used for uniformly processing the results returned by the actuator processing unit. For example: and processing accounting logic, updating transaction state and notifying a downstream system on the successful or failed result of the transaction.
According to the invention, by setting the system compensation mechanism module, when the transaction does not reach a preset result, the system can call the compensation mechanism in the whole period of the transaction, so that the transaction reaches a final state; the problem that the transaction reaches the final state due to the scenes of system abnormality, network abnormality and the like can be avoided.
The system compensation mechanism module comprises a real-time transaction compensation mechanism unit, wherein the real-time transaction compensation mechanism unit is used for triggering a compensation mechanism to obtain a final result when the real-time transaction does not reach a preset result.
The system compensation mechanism module comprises an asynchronous notification compensation mechanism unit, wherein the asynchronous notification compensation mechanism unit is used for notifying the system of the result when the real-time transaction is asynchronous logic or does not reach the preset result, and triggering the compensation mechanism by an upstream system with the asynchronous logic or the preset result.
The system compensation mechanism module comprises a system start trigger compensation mechanism unit, wherein the system start trigger compensation mechanism unit is used for actively calling a compensation mechanism when the system is restarted after maintenance, triggering a transaction which does not reach a preset result, and obtaining a final result.
The system compensation mechanism module, the executor processing unit adopted by the system transaction module and the executor result processing unit are the same, so that the multiplexing function of a plurality of units of a plurality of modules is realized, and the redundancy and the complexity are reduced; the invention is connected with the upstream system through the adapter, effectively isolates the access function of the upstream system, realizes decoupling with the general logic of the system, prevents the technical architecture of the upstream system from being deeply embedded into the system, and effectively reduces the complexity of the system; the multiplexing system realizes the butt joint with the upstream system, and as the adapter is adopted to butt joint the upstream system, other functional modules of the system do not need to be concerned, the development period cannot be increased along with the increase of the number of the accessed upstream systems, and the development efficiency can also ensure that the service is developed rapidly.
Referring to fig. 2, the execution steps of the whole system of the present invention will be described in detail;
step 1, after the multiplexed system is started, the system automatically scans an adapter interface of an adapter through an adapter loading unit and stores the scanned implementation mode of the adapter interface into a storage;
Step 2: the function loading unit carries out object instantiation, configuration parameter injection and other function options loading, so that the normal operation of other functions of the system is ensured;
step 3: the parameter checking unit checks and checks the interface input parameters, and refuses the parameter transaction which does not meet the specification;
step 4: the front-end service implementation unit is used for processing the warehouse entry of the transaction, the judgment of the transaction protocol and the transaction authority;
Step 5: the intelligent routing unit automatically screens out the adaptation type of the upstream system according to the configured routing rule;
Step 6: the executor processing unit selects an adapter to process service logic according to the adaptation type screened by the intelligent route;
Step 7: and the actuator result processing unit performs unified processing according to the processing result of the actuator processing unit.
The steps 1 to 7 further include obtaining data to be compensated in the whole system executing process and processing necessary front transaction logic through a front service logic unit, and waiting for processing of an executor processing unit;
Triggering the data to be compensated based on a preset triggering condition; the triggering conditions include:
real-time transaction compensation mechanism: triggering a compensation mechanism to acquire a final result when the real-time transaction does not reach a preset result;
Asynchronous notification compensation mechanism: when the real-time transaction is asynchronous logic or does not reach a preset result, other upstream systems actively trigger to inform the result of the system and trigger a compensation mechanism;
the system starts a trigger compensation mechanism: when the upstream system is restarted after maintenance, the compensation mechanism is actively invoked to trigger the transaction which does not reach the preset result, and the final transaction result is obtained.
The above examples merely illustrate specific embodiments of the application, which are described in more detail and are not to be construed as limiting the scope of the application. It should be noted that it is possible for a person skilled in the art to make several variants and modifications without departing from the technical idea of the application, which fall within the scope of protection of the application.
Claims (1)
1. The system architecture with multiplexing function is characterized by comprising a system initialization module and a system transaction module;
the system initialization module comprises an adapter loading unit and a function loading unit;
The adapter loading unit is used for automatically scanning the adapter interface of the adapter and storing the scanned implementation mode of the adapter interface into a newly-built storage space in the storage;
the function loading unit is used for instantiating the object, injecting configuration parameters and loading other function options for guaranteeing the operation of the system;
the system transaction module comprises a parameter verification unit, a front-end service implementation unit, an intelligent routing unit, an executor processing unit and an executor result processing unit;
The parameter verification unit is used for verifying and checking the interface input parameters;
the front-end service implementation unit is used for processing the warehouse entry of the transaction, the judgment of the transaction protocol and the transaction authority;
The intelligent routing unit is used for calling an adapter interface corresponding to the adapter stored in the storage and automatically screening out an adapter type matched with an upstream system;
The executor processing unit is used for selecting logic of the adapter processing service according to the adaptation type which is selected by the intelligent route selection unit and is adapted to the upstream system;
the actuator result processing unit is used for carrying out unified subsequent processing on the results returned by the actuator processing unit;
The system also comprises a system compensation mechanism module, wherein the system compensation mechanism module comprises a front-end service logic unit, an executor processing unit and an executor result processing unit;
the front-end service logic unit is used for acquiring data to be compensated, processing front-end transaction logic and calling the executor processing unit for processing;
the actuator result processing unit is used for uniformly processing the results returned by the actuator processing unit;
The system compensation mechanism module comprises a real-time transaction compensation mechanism unit, wherein the real-time transaction compensation mechanism unit is used for triggering a compensation mechanism to obtain a final result when the real-time transaction does not reach a preset result;
The system compensation mechanism module comprises an asynchronous notification compensation mechanism unit, wherein the asynchronous notification compensation mechanism unit is used for notifying the system of the result when the real-time transaction is asynchronous logic or does not reach a preset result by an upstream system which has asynchronous logic or does not reach the preset result, and triggering a compensation mechanism;
The system compensation mechanism module comprises a system start trigger compensation mechanism unit, wherein the system start trigger compensation mechanism unit is used for actively calling a compensation mechanism when the system is restarted after maintenance, triggering a transaction which does not reach a preset result, and obtaining a final result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111551414.XA CN114358770B (en) | 2021-12-17 | 2021-12-17 | System architecture with multiplexing function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111551414.XA CN114358770B (en) | 2021-12-17 | 2021-12-17 | System architecture with multiplexing function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114358770A CN114358770A (en) | 2022-04-15 |
CN114358770B true CN114358770B (en) | 2024-07-16 |
Family
ID=81098877
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111551414.XA Active CN114358770B (en) | 2021-12-17 | 2021-12-17 | System architecture with multiplexing function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114358770B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119151686B (en) * | 2024-11-19 | 2025-03-18 | 杭银消费金融股份有限公司 | A method and system for measuring the complexity of online transaction processing system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0643546A2 (en) * | 1993-09-09 | 1995-03-15 | Nec Corporation | ISDN terminal adapter using reduced memory for time difference compensation |
CN107392766A (en) * | 2017-07-25 | 2017-11-24 | 上海壹账通金融科技有限公司 | Method for processing business, adapter and computer-readable recording medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112445860B (en) * | 2019-09-02 | 2023-11-03 | 北京京东振世信息技术有限公司 | Method and device for processing distributed transaction |
CN111984447B (en) * | 2020-08-10 | 2022-06-28 | 江苏苏宁银行股份有限公司 | Registration compensation system and method in overtime or abnormal situation of bank transaction |
-
2021
- 2021-12-17 CN CN202111551414.XA patent/CN114358770B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0643546A2 (en) * | 1993-09-09 | 1995-03-15 | Nec Corporation | ISDN terminal adapter using reduced memory for time difference compensation |
CN107392766A (en) * | 2017-07-25 | 2017-11-24 | 上海壹账通金融科技有限公司 | Method for processing business, adapter and computer-readable recording medium |
Also Published As
Publication number | Publication date |
---|---|
CN114358770A (en) | 2022-04-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8151277B2 (en) | Method and system for dynamic remote injection of in-process agents into virtual machine based applications | |
US20170126597A1 (en) | Intelligent electronic mail server manager, and system and method for coordinating operation of multiple electronic mail servers | |
CN110673938B (en) | Task processing method, system, server and storage medium | |
CN111782233B (en) | Micro-service multi-scene deployment adaptation design model | |
CN114358770B (en) | System architecture with multiplexing function | |
CN110210845B (en) | Method, apparatus, medium, and computing device for blockchain data migration | |
CN102243655B (en) | Method and device for managing database connections | |
CN115292010A (en) | Method and system for automatically generating service through process configuration | |
CN111666088A (en) | Pod replacement method and device, electronic equipment and computer-readable storage medium | |
CN114143373A (en) | BPMN specification-based capability arrangement engine optimization system and method | |
CN102243653A (en) | Method and device for managing database connections | |
US5321844A (en) | Method for error correction of software errors in a communication system | |
CN107491298A (en) | A kind of button object automatic scanning method and system | |
Poizat et al. | Adaptation of open component-based systems | |
CN112330202B (en) | Control intention work order processing method based on arrangement control flow service fulfillment | |
CN114489585A (en) | Micro-service development framework for managing functional plugins and implementation method | |
CN117033033B (en) | Method for efficient configuration and interaction of public service in service bus | |
CN113296959A (en) | Service processing method and device based on AOP functional component and computer equipment | |
EP0940047B1 (en) | A service management system for use in communications | |
US20050132039A1 (en) | Data processing system with automatable administration and method for automated administration of a data processing system | |
CN113485795A (en) | Automatic container starting method based on multiple types of projects | |
US6456707B2 (en) | Feature implementation and provisioning by injection | |
CN112132592A (en) | Complaint processing method, complaint processing device, complaint processing medium and terminal equipment | |
Cetina et al. | A model-driven approach for developing self-adaptive pervasive systems | |
CN118860346B (en) | Dynamic strategy generation method based on JSON |
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 |