WO2021227636A1 - 微服务处理方法及装置、存储介质及电子设备 - Google Patents
微服务处理方法及装置、存储介质及电子设备 Download PDFInfo
- Publication number
- WO2021227636A1 WO2021227636A1 PCT/CN2021/080303 CN2021080303W WO2021227636A1 WO 2021227636 A1 WO2021227636 A1 WO 2021227636A1 CN 2021080303 W CN2021080303 W CN 2021080303W WO 2021227636 A1 WO2021227636 A1 WO 2021227636A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- project
- shared
- unit
- units
- item
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 22
- 230000002776 aggregation Effects 0.000 claims abstract description 128
- 238000004220 aggregation Methods 0.000 claims abstract description 128
- 230000006870 function Effects 0.000 claims abstract description 39
- 238000000034 method Methods 0.000 claims abstract description 30
- 238000012545 processing Methods 0.000 claims description 17
- 238000013475 authorization Methods 0.000 claims description 10
- 238000006243 chemical reaction Methods 0.000 claims description 10
- 238000012795 verification Methods 0.000 claims description 6
- 230000010354 integration Effects 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims description 2
- 238000001914 filtration Methods 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 6
- 238000011161 development Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000004931 aggregating effect Effects 0.000 description 3
- 230000003044 adaptive effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000000739 chaotic effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 238000005315 distribution function Methods 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
- G06F16/284—Relational databases
- G06F16/285—Clustering or classification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
Definitions
- the present disclosure relates to the technical field of microservice architecture, and in particular, to a microservice processing method and device, computer-readable storage medium, and electronic equipment.
- the monolithic architecture cannot support a large number of users to access, and its scalability is relatively poor, and various shortcomings are not suitable for the iterative pace of today's projects, and the system is stable. High concurrency and high concurrency have been severely challenged. How to use effective technology to serve users and provide users with continuous value has gradually become one of the concerns of the Internet.
- a microservice processing method including:
- a plurality of the shared function units are integrated into a shared service aggregation unit, wherein the initial service aggregation unit can access the shared service aggregation unit.
- determining whether the item content meets the first condition includes:
- splitting the item content that meets the first condition into a shared functional unit and an initial functional unit according to a preset rule includes:
- the content of each item is split into a shared functional unit and an initial functional unit.
- integrating a plurality of the shared function units into a shared service aggregation unit includes:
- the multiple shared functional units with the same target project type are integrated and transformed into a shared business aggregation unit.
- the method further includes:
- a parameter list is formed according to the target data source, wherein the parameter list includes a plurality of parameter items, and each parameter item corresponds to a kind of the target data source.
- determining whether the item content meets the first condition includes:
- splitting each item content satisfying the first condition into a shared functional unit and an initial functional unit according to a preset rule includes:
- each item content is split into a shared functional unit and an initial functional unit.
- integrating a plurality of the shared function units into a shared service aggregation unit includes:
- the multiple shared functional units with the same target data source are integrated and transformed into a shared business aggregation unit.
- the method further includes:
- the authorization code of the non-converted item is configured so that the non-converted item can invoke the shared service aggregation unit and the initial service aggregation micro-unit through authorization verification.
- a microservice processing apparatus including:
- the acquisition module is used to acquire the content of multiple monolithic architecture projects
- the judgment module is used to judge whether the content of the item meets the first condition
- a splitting module configured to split the project content that meets the first condition into a shared functional unit and an initial functional unit according to a preset rule
- the conversion module is used to convert a plurality of the initial functional units into initial business aggregation units respectively;
- the integration module is used to transform a plurality of the shared function units into a shared service aggregation unit, wherein the initial service aggregation microservice unit can access the shared service aggregation unit.
- a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the microservice processing method as described in any one of the above is implemented.
- an electronic device including:
- the memory is used to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the microcomputer as described in any one of the above Service processing method.
- FIG. 1 schematically shows a flowchart of a microservice processing method in an exemplary embodiment of the present disclosure
- Fig. 2 schematically shows an architecture diagram of a microservice processing method in an exemplary embodiment of the present disclosure
- Fig. 4 schematically shows a data access roadmap of a microservice architecture in an exemplary embodiment of the present disclosure
- FIG. 5 schematically shows a data access roadmap after the microservice architecture introduces the service middle layer in an exemplary embodiment of the present disclosure
- FIG. 6 schematically shows a schematic diagram of the composition of a microservice processing apparatus in an exemplary embodiment of the present disclosure
- FIG. 7 schematically shows a structural diagram of a computer system suitable for implementing an electronic device according to an exemplary embodiment of the present disclosure
- FIG. 8 schematically shows a schematic diagram of a computer-readable storage medium according to some embodiments of the present disclosure.
- a microservice processing method is first provided.
- the above microservice processing method may include the following steps:
- S140 Convert a plurality of the initial functional units into initial business aggregation units respectively.
- the content of multiple items that meet the first condition is divided into shared functional units and initial functional units to distinguish them according to preset rules, and business aggregation units are established respectively, and the initial business aggregation units can access the sharing
- the business aggregation unit ensures that the functions of multiple single architectures can be completed, while having a clear structure and high architecture stability, and can achieve the effect of facilitating centralized management of multiple projects and adapting to agile development iterations.
- step S110 the content of multiple monolithic architecture items is obtained.
- the project content of the monolithic architecture 210 may include multiple types of applications, for example, Huaping application, WeChat business platform, Huaping cloud open platform, and Huaping external , Picture screen operation management platform, etc., are not specifically limited in this example implementation.
- step S120 it is determined whether the content of the item satisfies the first condition.
- the server may first obtain the item type of the item unit in each item content.
- the item type may be, for example, topic, member, user, etc., which is not specifically limited in this example embodiment. Then it can be judged whether there are project units of the same project type among multiple project contents, for example, it can be judged whether there are project units of the same project type in the Huaping application, the WeChat business platform, and the Huaping cloud open platform.
- the two-by-two combination judgment may be performed on the multiple project contents.
- the type statistics table can include the item types of all item units in all item contents. Then classify all project units in the above-mentioned reference project type statistical table, and calculate the number of project units classified under each project type, and determine the project content corresponding to the project unit corresponding to the project type with the number greater than or equal to 2 as satisfying The first condition mentioned above. In this exemplary embodiment, it is not specifically limited how to determine whether there are project units of the same project type among multiple project contents.
- the aforementioned picture screen application includes a picture screen external project unit, a picture screen operation project unit, and a member project unit.
- the above-mentioned Wechat Business Platform may include Wechat Project Units, Membership Project Units, etc.
- the Picture Screen Application and the Wechat Business Platform both include Member Project Units of the same project type.
- the above Picture Screen Application and WeChat Business Platform can be combined. It is determined that the above-mentioned first condition is satisfied.
- the server may first obtain the data source of the item unit in each item content.
- the data source may include customers, equipment, etc., which is not specifically limited in this exemplary embodiment. Then, whether there are project units with the same data source among multiple project contents, for example, determine whether there are project units with the same data source in the Huaping application, WeChat business platform, and Huaping cloud open platform.
- a pairwise combination judgment may be performed on the multiple project contents.
- a reference data source list by enumerating the data sources of the project units in all project contents.
- the reference data source The data source of all project units in all project contents can be included in the list. Then classify all the project units in the above reference data source list, calculate the number of project units classified under each data source, and determine the project content corresponding to the project unit corresponding to the data source with the number greater than or equal to 2 as meeting the above The first condition.
- step S130 the project content that meets the first condition is split into a shared functional unit and an initial functional unit according to a preset rule
- the reference project type statistical table may be obtained first, and the reference project type statistical table can be referred to.
- the specific acquisition method has been described in detail above, so it will not be repeated here.
- the target project type statistical table can be filtered out of the reference project type statistical table according to the above first condition. Specifically, all project units are classified in the above reference project type statistical table, and each one is calculated. The number of project units classified under the project type, and the number of project types greater than or equal to 2 is filtered out to form a statistical table of target project types;
- the content of multiple items is divided into shared functional units and initial functional units according to the above-mentioned target item type statistical table. Specifically, it can be first determined whether the reference item type of each item unit in the item content can be classified In the statistical table of target project type, project units that can be classified in the statistical table of target project types are regarded as shared functional units, and project units that cannot be classified in the statistical table of target project types are regarded as initial functional units.
- the reference data source list may be obtained first, and the specific data source list may be referred to.
- the acquisition method has been described in detail above, so it will not be repeated here.
- the target data source list can be filtered out of the reference data source list according to the above first condition. Specifically, all project units are classified in the above reference data source list, and each data source is calculated. The number of project units to be classified, and the data sources with the number greater than or equal to 2 are filtered out to form the target data source list;
- multiple project contents are split into shared functional units and initial functional units according to the above-mentioned target data source list. Specifically, it can first be determined whether the reference data source of each project unit in the project content can be classified In the target data source list, the project units that can be classified in the target data source list are regarded as shared functional units, and the project units that cannot be classified in the target data source list are regarded as the initial functional units.
- the screen application, cloud open project unit, external screen project unit, screen operation project unit, micro business project unit, and membership among the above multiple project contents can be divided.
- Project units, content project units, AI project units, etc. are used as initial functional units, and the functions common to the above multiple applications are used as shared functional units, such as user project units, equipment project units, activity project units, and topics in each project content Project unit, recommended project unit, record project unit, payment project unit, SMS project unit, etc.
- step S140 a plurality of the initial functional units are respectively converted into initial business aggregation units.
- the initial functional units in the project content in the multiple monolithic architectures 210 are converted into initial business aggregation units 230, for example, convert the above-mentioned screen application project unit, cloud open project unit, external screen project unit, screen operation project unit, micro business project unit, membership project unit, content project unit, AI project unit, etc. into screen application business Aggregation unit, cloud open service aggregation unit, picture screen external business aggregation unit, picture screen operation business aggregation unit, micro business aggregation unit, membership service aggregation unit, content service aggregation unit, AI service aggregation unit, etc.
- the monolithic architecture may be the Spring Cloud architecture
- the converted microservice architecture may be the Spring Cloud collection, because there is a one-to-one correspondence between the versions of the Spring Cloud collection and the Spring Cloud architecture. Therefore, during the conversion, you can first determine whether the Spring Cloud version of the monolithic architecture exists in the corresponding Spring Cloud version. If it exists, directly convert the monolithic architecture to the Spring Cloud collection. If it does not exist, then It is necessary to upgrade the version of the Spreebut architecture with a single architecture to complete the conversion.
- the version upgrade method is not specifically limited.
- step S150 a plurality of the shared function units are integrated into a shared service aggregation unit, wherein the initial service aggregation unit can access the shared service aggregation unit.
- the target item type of a shared functional unit may be obtained first, and then multiple shared functional units of the same target item type are integrated and converted into a shared business aggregation unit.
- the target data source of a shared function unit may be obtained first, and then multiple shared function units with the same target data source may be integrated and converted into a shared service aggregation unit.
- the specific manner of integrating a plurality of the shared function units into a shared service aggregation unit is not limited.
- the above-mentioned sharing function may be converted into a sharing service aggregation unit 240, for example, the user project unit, equipment project unit, and activity in each of the above-mentioned project contents Project unit, thematic project unit, recommended project unit, record project unit, payment project unit, SMS project unit, etc. are integrated and converted into user service aggregation unit, equipment service aggregation unit, activity service aggregation unit, thematic service aggregation unit, and recommendation service aggregation unit , Recording service aggregation unit, payment service aggregation unit, SMS service aggregation unit, etc.
- the shared service data aggregation unit 240 can obtain the required data from the data collection 260.
- each aggregation unit includes multiple project units.
- the user service aggregation unit includes multiple user project units, where multiple user project units are derived from unused project content.
- the above method may further include obtaining target data of each sharing function unit in the sharing service aggregation unit Source, and form a parameter list according to the target data source.
- the parameter list includes multiple parameter items. Each parameter item corresponds to a target data source. When working, you can call the corresponding parameters according to the target data source to complete the shared business aggregation unit. The realization of the functions of each shared functional unit in the.
- the initial service aggregation unit being able to access the shared service aggregation unit may include steps S310 to S320; steps S310 to S320 will be described in detail below.
- step S310 a service database of the shared service aggregation unit is established
- a service database 480 may be established to store the shared data related to the shared service aggregation unit 450, and the shared data and the shared service aggregation unit are set separately to ensure that The security of the data, and the accuracy of the recalled data.
- step S320 the initial service aggregation unit can obtain data in the service database.
- the initial business aggregation unit 440 can obtain data related to the initial business aggregation unit 440 in the business database 480 to complete the initial business aggregation unit 440's aggregation of shared services.
- Unit 450 visit.
- the server may first establish the data service 470 function of the shared service aggregation unit 450.
- the initial service aggregation unit 440 obtains data from the service database 480 by accessing the data service 470 function. To get the data.
- Establishing the data service 470 function can enable the shared service aggregation unit 450 to complete layering with data, ensure the independence and isolation of the shared service aggregation service 450, and prevent the initial business aggregation service 440 from directly accessing the shared service aggregation service 450 and confusion caused by it.
- the microservice processing method of the present disclosure also includes obtaining non-converted items 430 that cannot be directly converted into microservices among the project contents of multiple monolithic architectures, and the non-converted items access the shared service aggregation unit 450 and the initial business by means of authorization verification 420
- the aggregating unit 440 can call the above-mentioned shared service aggregating unit 450 and the initial service aggregating unit 440 by means of hypertext transmission and authorization.
- some external request services 410 can also access the shared service aggregation unit 450 and the initial service aggregation unit 440 through authorization verification 420.
- the content of the project that does not meet the first condition can be defined as a non-converted project, and then the authorization code of the non-converted project can be configured in the server, and the authorization code can be verified through the gateway layer 220.
- the non-converted project can be authorized.
- the verification method calls the shared service aggregation unit and the initial service aggregation micro unit.
- the gateway layer has related functions such as control authority, statistics, current limit, routing distribution, monitoring, and load balancing. Among them, authority control is to verify whether the above non-conversion items have access authority, and the monitoring and statistics functions are used for statistical functions.
- a service layer middle 250 may also be established, and the service layer middle 250 may also include a message queue function, a service link tracking function, and a cache function, in which the message queue can improve the access speed.
- the microservice processing method of the present disclosure further includes establishing a source database 460 of the initial business aggregation unit 440, and the aforementioned non-conversion items 430 can be directly obtained from the source database 460 The data corresponding to the non-converted project, so that multiple monolithic architectures can retain all the functions of the monolithic architecture after being converted to the microservice architecture.
- the non-conversion items may include the global wide area network (web server) 521, the middle office service 522, etc. of each single architecture 510, which are not specifically limited in this example embodiment.
- non-converted items access the initial service aggregation unit 551 and the shared service aggregation unit 552 through the Nginx server 530 and the route distribution function of the gateway 540 through hypertext transmission and authorization verification.
- the non-converted items can directly obtain data related to the non-converted items from the source database 571 of the initial business aggregation unit 551.
- the business data source 572 may include a user database, device data, and a content database.
- the data classification of the business database is such that the initial business aggregation unit and the shared business aggregation unit can quickly and accurately obtain the corresponding data when retrieving data. data. It should be noted that there are multiple classification methods for data in the business database, and the specific classification methods are not limited in this exemplary embodiment.
- the microservice processing method of the present disclosure further includes obtaining the IP address and port number of each shared service aggregation unit and each initial service aggregation unit, and when it is necessary to call the shared service aggregation unit or the initial service aggregation unit When, you only need to enter the corresponding port number and IP address to complete the access.
- the IP address and port number of a new unit can be registered through the service middleware, and the shared service aggregation unit or the initial service aggregation unit The required units are added to the list. When in use, they are accessed through the port number and IP address.
- obtaining the IP address and port number of each shared service aggregation unit and each initial service aggregation unit may be completed by the service middle layer 560, where the service layer may also include a message queue function and Service link tracking function, and cache function, in which message queue can improve access speed.
- the service middle layer also includes a service link tracking function, which is used to track and store each service call or access route run, so as to ensure that the fault can be quickly and accurately located and resolved.
- a remote dictionary service (Redis) 580 can also be set, and the remote dictionary service 580 can be connected to the source database, the initial business aggregation unit, and the shared business aggregation unit at the same time, so as to supplement the source database. At the same time, the speed of reading and storing data is improved.
- the microservice processing apparatus 600 includes: an acquisition module 610, a judgment module 620, a split module 630, a conversion module 640, and an integration module 650.
- the obtaining module 610 may be used to obtain the content of multiple monolithic architecture projects; the judging module 620 may be used to judge whether the project content meets the first condition; the judging module 630 may be used to obtain the content of the first
- the item content of the condition is split into shared functional units and initial functional units according to preset rules; the conversion module 640 can be used to convert multiple initial functional units into initial business aggregation units; the integration module 650 can be used to convert A plurality of the shared function units are transformed into a shared service aggregation unit, wherein the initial service aggregation unit unit can access the shared service aggregation unit.
- each functional module of the microservice processing apparatus of the exemplary embodiment of the present disclosure corresponds to the steps of the above exemplary embodiment of the microservice processing method, for details that are not disclosed in the embodiment of the apparatus of the present disclosure, please refer to the above-mentioned microservices of the present disclosure. Examples of service processing methods.
- modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory.
- the features and functions of two or more modules or units described above may be embodied in one module or unit.
- the features and functions of a module or unit described above can be further divided into multiple modules or units to be embodied.
- an electronic device capable of implementing the above-mentioned microservice processing.
- the electronic device 700 according to such an embodiment of the present disclosure will be described below with reference to FIG. 7.
- the electronic device 700 shown in FIG. 7 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
- the electronic device 700 is represented in the form of a general-purpose computing device.
- the components of the electronic device 700 may include, but are not limited to: the aforementioned at least one processing unit 710, the aforementioned at least one storage unit 720, a bus 730 connecting different system components (including the storage unit 720 and the processing unit 710), and a display unit 740.
- the storage unit stores program code, and the program code can be executed by the processing unit 710, so that the processing unit 710 executes the various exemplary methods described in the "Exemplary Method" section of this specification. Example steps.
- the processing unit 710 may perform the step S110 shown in FIG.
- the electronic device can implement the steps shown in FIG. 1 and FIG. 3.
- the storage unit 720 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 721 and/or a cache storage unit 722, and may further include a read-only storage unit (ROM) 723.
- RAM random access storage unit
- ROM read-only storage unit
- the storage unit 720 may also include a program/utility tool 724 having a set of (at least one) program module 725.
- program module 725 includes but is not limited to: an operating system, one or more application programs, other program modules, and program data, Each of these examples or some combination may include the implementation of a network environment.
- the bus 730 may represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any bus structure among multiple bus structures. bus.
- the electronic device 700 may also communicate with one or more external devices 770 (such as keyboards, pointing devices, Bluetooth devices, etc.), and may also communicate with one or more devices that enable a user to interact with the electronic device 700, and/or communicate with Any device (eg, router, modem, etc.) that enables the electronic device 700 to communicate with one or more other computing devices. This communication can be performed through an input/output (I/O) interface 750.
- the electronic device 700 may also communicate with one or more networks (for example, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 760.
- networks for example, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet
- the network adapter 760 communicates with other modules of the electronic device 700 through the bus 730. It should be understood that although not shown in the figure, other hardware and/or software modules can be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.
- the exemplary embodiments described here can be implemented by software, or can be implemented by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on the network , Including several instructions to make a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) execute the method according to the embodiment of the present disclosure.
- a computing device which may be a personal computer, a server, a terminal device, or a network device, etc.
- a computer-readable storage medium on which is stored a program product capable of implementing the above-mentioned method of this specification.
- various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code.
- the program product runs on a terminal device, the program code is used to enable the The terminal device executes the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of this specification.
- a program product 800 for implementing the above-mentioned method according to an embodiment of the present disclosure is described. Run on the computer.
- the program product of the present disclosure is not limited thereto.
- the readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or device.
- the program product can use any combination of one or more readable media.
- the readable medium may be a readable signal medium or a readable storage medium.
- the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Type programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
- the computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- the readable signal medium may also be any readable medium other than a readable storage medium, and the readable medium may send, propagate, or transmit a program for use by or in combination with the instruction execution system, apparatus, or device.
- the program code contained on the readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
- the program code used to perform the operations of the present disclosure can be written in any combination of one or more programming languages.
- the programming languages include object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming languages. Programming language-such as "C" language or similar programming language.
- the program code can be executed entirely on the user's computing device, partly on the user's device, executed as an independent software package, partly on the user's computing device and partly executed on the remote computing device, or entirely on the remote computing device or server Executed on.
- the remote computing device can be connected to a user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (for example, using Internet service providers). Business to connect via the Internet).
- LAN local area network
- WAN wide area network
- Internet service providers for example, using Internet service providers.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
Claims (12)
- 一种微服务处理方法,其中,包括:获取多个单体架构项目内容;判断所述项目内容是否满足第一条件;将满足所述第一条件的所述项目内容按照预设规则拆分为共享功能单元与初始功能单元;将多个所述初始功能单元分别转化为初始业务聚合单元;将多个所述共享功能单元整合为共享业务聚合单元,其中所述初始业务聚合单元能够访问所述共享业务聚合单元。
- 根据权利要求1所述的方法,其中,判断所述项目内容是否满足第一条件,包括:判断多个所述项目内容之间是否存在相同项目类型的项目单元;将存在相同类型项目单元的多个所述项目内容判定为满足所述第一条件。
- 根据权利要求2所述的方法,其中,将满足所述第一条件的所述项目内容按照预设规则拆分为共享功能单元与初始功能单元,包括:获取参考项目类型统计表,并根据所述第一条件筛选目标项目类型统计表;确定每一个所述项目内容中各所述项目单元的参考项目类型;根据所述参考项目类型和所述目标项目类型统计表将每一个所述项目内容拆分为共享功能单元与初始功能单元。
- 根据权利要求3所述的方法,其中,将多个所述共享功能单元整合为共享业务聚合单元,包括:获取各共享功能单元的目标项目类型;将所述目标项目类型相同的多个共享功能单元整合转化为共享业务聚合单元。
- 根据权利要求4所述的方法,其中,所述方法还包括:获取所述共享业务聚合单元中各共享功能单元的目标数据来源;根据所述目标数据来源形成参数列表,其中,所述参数列表包括多个参数项,每一个所述参数项对应一种所述目标数据来源。
- 根据权利要求1所述的方法,其中,判断所述项目内容是否满足第一条件,包括:判断多个所述项目内容之间是否存在数据来源相同的项目单元;将存在数据来源相同的项目单元的多个所述项目内容判定为满足所述第一条件。
- 根据权利要求6所述的方法,其中,将满足所述第一条件的每一个所述项目内容按照预设规则拆分为共享功能单元与初始功能单元,包括:获取参考数据来源列表,并根据所述第一条件筛选目标数据来源列表;确定每一个所述项目内容中各所述项目单元的参考数据来源;根据所述目标数据来源列表和所述参考数据来源将每一个所述项目内容拆分为共享功能单元与初始功能单元。
- 根据权利要求7所述的方法,其中,将多个所述共享功能单元整合为共享业务聚合单元,包括:获取各所述共享功能单元的目标数据来源;将所述目标数据来源相同的多个共享功能单元整合转化为共享业务聚合单元。
- 根据权利要求1所述的方法,其中,所述方法还包括:将不满足所述第一条件的项目内容定义为非转换项目;配置所述非转换项目的授权码,以使得所述非转换项目能够通过授权验证的方式调用所述共享业务聚合单元以及所述初始业务聚合微单元。
- 一种微服务处理装置,其中,包括:获取模块,用于获取多个单体架构项目内容;判断模块,用于判断所述项目内容是否满足第一条件;拆分模块,用于将满足所述第一条件的所述项目内容按照预设规则拆分为共享功能单元与初始功能单元;转化模块,用于将多个所述初始功能单元分别转化为初始业务聚合单元;整合模块,用于将多个所述共享功能单元转化为共享业务聚合单元, 其中所述初始业务聚合单元单元能够访问所述共享业务聚合单元。
- 一种计算机可读存储介质,其上存储有计算机程序,其中,所述程序被处理器执行时实现如权利要求1至9中任一项所述的微服务处理方法。
- 一种电子设备,其中,包括:处理器;以及存储器,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求1至9中任一项所述的微服务处理方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010415062.4 | 2020-05-15 | ||
CN202010415062.4A CN113672200A (zh) | 2020-05-15 | 2020-05-15 | 微服务处理方法及装置、存储介质及电子设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021227636A1 true WO2021227636A1 (zh) | 2021-11-18 |
Family
ID=78526281
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/080303 WO2021227636A1 (zh) | 2020-05-15 | 2021-03-11 | 微服务处理方法及装置、存储介质及电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113672200A (zh) |
WO (1) | WO2021227636A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116644329A (zh) * | 2023-03-15 | 2023-08-25 | 交通运输部规划研究院 | 综合交通运输规划行业的数据分级分类的方法和装置 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107168746A (zh) * | 2017-05-27 | 2017-09-15 | 北京中电普华信息技术有限公司 | 一种微服务生成方法及装置 |
CN107391142A (zh) * | 2017-07-26 | 2017-11-24 | 北京中电普华信息技术有限公司 | 一种应用拆分的方法及装置 |
US20190026085A1 (en) * | 2017-07-21 | 2019-01-24 | Accenture Global Solutions Limited | Intelligent cloud engineering platform |
CN110018822A (zh) * | 2019-04-16 | 2019-07-16 | 山东浪潮通软信息科技有限公司 | 一种自动生成微服务功能的方法及系统 |
CN110287438A (zh) * | 2019-06-19 | 2019-09-27 | 天津大学 | 一种基于微服务架构的跨界服务融合方法 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7761870B2 (en) * | 2003-03-06 | 2010-07-20 | Sap Ag | Methods and systems for generating an application consistent with a profile |
JP2005190212A (ja) * | 2003-12-25 | 2005-07-14 | Toshiba Corp | データベースシステム、データ処理方法及びプログラム |
CN102332116A (zh) * | 2011-08-05 | 2012-01-25 | 四川电力科学研究院 | 基于云计算SaaS服务模式的电能质量辅助服务系统及其实现方法 |
-
2020
- 2020-05-15 CN CN202010415062.4A patent/CN113672200A/zh active Pending
-
2021
- 2021-03-11 WO PCT/CN2021/080303 patent/WO2021227636A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107168746A (zh) * | 2017-05-27 | 2017-09-15 | 北京中电普华信息技术有限公司 | 一种微服务生成方法及装置 |
US20190026085A1 (en) * | 2017-07-21 | 2019-01-24 | Accenture Global Solutions Limited | Intelligent cloud engineering platform |
CN107391142A (zh) * | 2017-07-26 | 2017-11-24 | 北京中电普华信息技术有限公司 | 一种应用拆分的方法及装置 |
CN110018822A (zh) * | 2019-04-16 | 2019-07-16 | 山东浪潮通软信息科技有限公司 | 一种自动生成微服务功能的方法及系统 |
CN110287438A (zh) * | 2019-06-19 | 2019-09-27 | 天津大学 | 一种基于微服务架构的跨界服务融合方法 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116644329A (zh) * | 2023-03-15 | 2023-08-25 | 交通运输部规划研究院 | 综合交通运输规划行业的数据分级分类的方法和装置 |
CN116644329B (zh) * | 2023-03-15 | 2024-02-13 | 交通运输部规划研究院 | 综合交通运输规划行业的数据分级分类的方法和装置 |
Also Published As
Publication number | Publication date |
---|---|
CN113672200A (zh) | 2021-11-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10447772B2 (en) | Managed function execution for processing data streams in real time | |
US11836533B2 (en) | Automated reconfiguration of real time data stream processing | |
US10169433B2 (en) | Systems and methods for an SQL-driven distributed operating system | |
US9529657B2 (en) | Techniques for generating diagnostic identifiers to trace events and identifying related diagnostic information | |
US11334589B2 (en) | System and platform for computing and analyzing big data | |
US20120137309A1 (en) | Workflow integration and portal systems and methods | |
US11658972B2 (en) | Isolated cell architecture for cloud computing platform | |
US11381463B2 (en) | System and method for a generic key performance indicator platform | |
US10938669B2 (en) | Intelligent information adapter generation for service management | |
CN110532322A (zh) | 运维交互方法、系统、计算机可读存储介质及设备 | |
CN108269056A (zh) | 政务信息资源管理系统 | |
US20220035802A1 (en) | Analytics center having a natural language query (nlq) interface | |
WO2021227636A1 (zh) | 微服务处理方法及装置、存储介质及电子设备 | |
Calderon et al. | Monitoring framework for the performance evaluation of an IoT platform with Elasticsearch and Apache Kafka | |
CN114547175A (zh) | 一种数据处理方法、装置、存储介质及计算机系统 | |
CN102055779A (zh) | 生成高可用性组的方法、设备及系统 | |
CN116991929A (zh) | 基于医院大数据的微服务系统 | |
US20190332393A1 (en) | Mainframe system structuring | |
US20230267478A1 (en) | Event attribution for estimating down stream impact | |
CN117376346A (zh) | 基于边缘计算与分布式计算的设备数据处理方法及装置 | |
CN115803729A (zh) | 中间件生成的记录的直接数据加载 | |
Li et al. | A quick response data collection and management system for digital twin production line based on cloud-fog-edge computing collaboration | |
CN118626467A (zh) | 数据采集存储方法、装置、设备及存储介质 | |
CN117390108A (zh) | 一种集数据的组织、整合、治理、融合及分析的统计系统 | |
Li et al. | IOT big data process based on context temporal-spatial characteristics in petroleum products distribution |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21805040 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21805040 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 23/06/2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21805040 Country of ref document: EP Kind code of ref document: A1 |