CN109033435A - It is a kind of to search for method generally across micro services - Google Patents
It is a kind of to search for method generally across micro services Download PDFInfo
- Publication number
- CN109033435A CN109033435A CN201810921931.3A CN201810921931A CN109033435A CN 109033435 A CN109033435 A CN 109033435A CN 201810921931 A CN201810921931 A CN 201810921931A CN 109033435 A CN109033435 A CN 109033435A
- Authority
- CN
- China
- Prior art keywords
- micro services
- search
- cloud
- query
- inquiry
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Method is searched for generally across micro services the invention discloses a kind of, comprising the following steps: (1) is disposed query function as an individual micro services;(2) create one individually inquiry database, it is self-built or be based on Ali's cloud;(3) configuration querying micro services carry out logic judgment according to self-built or Ali's cloud, do conditional branching;(4) configuration querying database will need the micro services data of fuzzy query, be indexed creation;(5) sphinx is configured, the job script building that increment index automatically generates is carried out, if Ali's cloud on line, configures the rds synchronous logic of open search;(6) query interface for writing inquiry micro services is supplied to corresponding functional module of searching for generally and uses;(7) search for generally function call directly inquiry micro services query interface inquired, directly return full dose data.The present invention improves exploitation and search efficiency across service fuzzy query.
Description
Technical field
The invention mainly relates to network technique fields, and in particular to a kind of to search for method generally across micro services.
Background technique
Micro services framework solves high coupled problem, but simultaneously since each functional module has been split into service pattern
Also the difficult problem of cross-module inquiry is brought, for example, two micro services of employee and tissue, if there is scene is needed according to member
Work name is searched for generally and list display changes the organizational attribution of employee, and such case is easy to reality if it is monomer framework
Existing, as long as chained list is inquired, but in the case of micro services framework, database is mutually indepedent or even physical isolation, has no idea
Join table, if first inquiring employee's micro services, the employee id set of return is got, then inquire tissue micro services, although can be real
This existing function, but exploitation and search efficiency are all lower.
Summary of the invention
The object of the invention is to remedy the disadvantages of known techniques, provides and a kind of searches for method generally across micro services.
The present invention is achieved by the following technical solutions:
It is a kind of to search for method generally across micro services, it is characterised in that the following steps are included:
(1) it is disposed query function as an individual micro services;
(2) create one individually inquiry database, if self-built, can use sphinx or xunsearch, if based on Ah
In cloud, can using exploitation search;
(3) configuration querying micro services carry out logic judgment according to self-built or Ali's cloud, do conditional branching;
(4) configuration querying database will need the micro services data of fuzzy query, be indexed creation;
(5) sphinx is configured, carries out the job script building that increment index automatically generates, if Ali's cloud on line, configuration opening is searched
The rds synchronous logic of rope;
(6) query interface for writing inquiry micro services is supplied to corresponding functional module of searching for generally and uses;
(7) search for generally function call directly inquiry micro services query interface inquired, directly return full dose data.
The principle of the present invention is:
The present invention utilizes full-text search function, such as: sphinx, xunsearch, and open search is completed fuzzy across micro services and searched
Rope.
The invention has the advantages that
The present invention improves exploitation and search efficiency across service fuzzy query, is tested by actual items, development efficiency was by 1 day
It is promoted to 10 minutes, search efficiency is promoted to 100ms by 500ms.
Specific embodiment
It is a kind of to search for method generally across micro services, comprising the following steps:
(1) it is disposed query function as an individual micro services;
(2) create one individually inquiry database, if self-built, can use sphinx or xunsearch, if based on Ah
In cloud, can using exploitation search;
(3) configuration querying micro services carry out logic judgment according to self-built or Ali's cloud, do conditional branching;
(4) configuration querying database will need the micro services data of fuzzy query, be indexed creation;
(5) sphinx is configured, carries out the job script building that increment index automatically generates, if Ali's cloud on line, configuration opening is searched
The rds synchronous logic of rope;
(6) query interface for writing inquiry micro services is supplied to corresponding functional module of searching for generally and uses;
(7) search for generally function call directly inquiry micro services query interface inquired, directly return full dose data.
Claims (1)
1. a kind of search for method generally across micro services, it is characterised in that the following steps are included:
(1) it is disposed query function as an individual micro services;
(2) create one individually inquiry database, if self-built, can use sphinx or xunsearch, if based on Ah
In cloud, can using exploitation search;
(3) configuration querying micro services carry out logic judgment according to self-built or Ali's cloud, do conditional branching;
(4) configuration querying database will need the micro services data of fuzzy query, be indexed creation;
(5) sphinx is configured, carries out the job script building that increment index automatically generates, if Ali's cloud on line, configuration opening is searched
The rds synchronous logic of rope;
(6) query interface for writing inquiry micro services is supplied to corresponding functional module of searching for generally and uses;
(7) search for generally function call directly inquiry micro services query interface inquired, directly return full dose data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810921931.3A CN109033435A (en) | 2018-08-14 | 2018-08-14 | It is a kind of to search for method generally across micro services |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810921931.3A CN109033435A (en) | 2018-08-14 | 2018-08-14 | It is a kind of to search for method generally across micro services |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109033435A true CN109033435A (en) | 2018-12-18 |
Family
ID=64634026
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810921931.3A Pending CN109033435A (en) | 2018-08-14 | 2018-08-14 | It is a kind of to search for method generally across micro services |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109033435A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103455637A (en) * | 2013-09-25 | 2013-12-18 | 浙江宇视科技有限公司 | License number search method and device |
CN105912649A (en) * | 2016-04-08 | 2016-08-31 | 南京邮电大学 | Database fuzzy retrieval method and system |
CN106533804A (en) * | 2016-12-22 | 2017-03-22 | 成都西加云杉科技有限公司 | Network operation support system |
CN106656630A (en) * | 2017-01-13 | 2017-05-10 | 北京中电普华信息技术有限公司 | Electric marketing service application system, and construction method and platform thereof |
CN107391142A (en) * | 2017-07-26 | 2017-11-24 | 北京中电普华信息技术有限公司 | The method and device that a kind of application is split |
WO2018049872A1 (en) * | 2016-09-19 | 2018-03-22 | 华为技术有限公司 | Microservice configuration apparatus and method |
CN107979635A (en) * | 2017-10-24 | 2018-05-01 | 广东康美通信息服务有限公司 | System, method and storage medium based on micro services |
CN108153547A (en) * | 2017-12-26 | 2018-06-12 | 泰康保险集团股份有限公司 | Method for edition management, device, medium and the electronic equipment of micro services |
-
2018
- 2018-08-14 CN CN201810921931.3A patent/CN109033435A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103455637A (en) * | 2013-09-25 | 2013-12-18 | 浙江宇视科技有限公司 | License number search method and device |
CN105912649A (en) * | 2016-04-08 | 2016-08-31 | 南京邮电大学 | Database fuzzy retrieval method and system |
WO2018049872A1 (en) * | 2016-09-19 | 2018-03-22 | 华为技术有限公司 | Microservice configuration apparatus and method |
CN106533804A (en) * | 2016-12-22 | 2017-03-22 | 成都西加云杉科技有限公司 | Network operation support system |
CN106656630A (en) * | 2017-01-13 | 2017-05-10 | 北京中电普华信息技术有限公司 | Electric marketing service application system, and construction method and platform thereof |
CN107391142A (en) * | 2017-07-26 | 2017-11-24 | 北京中电普华信息技术有限公司 | The method and device that a kind of application is split |
CN107979635A (en) * | 2017-10-24 | 2018-05-01 | 广东康美通信息服务有限公司 | System, method and storage medium based on micro services |
CN108153547A (en) * | 2017-12-26 | 2018-06-12 | 泰康保险集团股份有限公司 | Method for edition management, device, medium and the electronic equipment of micro services |
Non-Patent Citations (2)
Title |
---|
LUCKC#: ""微服务MySQL分库分表数据到MongoDB同步方案"", 《HTTPS://WWW.CNBLOGS.COM/LUCKCS/ARTICLES/7843830.HTML》 * |
郭瑞杰: ""OpenSearch:轻松构建大数据搜索服务"", 《HTTPS://DEVELOPER.ALIYUN.COM/ARTICLE/7479》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104731814B (en) | Data flexibly compare analysis system and method | |
CN109918453A (en) | A kind of method and system with Natural Language Search relationship type complex management data of information system | |
CN104991955B (en) | Method and system for automatically constructing template library | |
CN104504046A (en) | Patent retrieval system and patent retrieval method | |
CN102262640A (en) | Method and device for full-text retrieval of document database | |
CN102184181B (en) | Internet of things based item management method and system | |
CN108052635A (en) | A kind of heterogeneous data source unifies conjunctive query method | |
CN104182405A (en) | Method and device for connection query | |
CN107959580A (en) | The method and apparatus of configuration service | |
CN104268234A (en) | Method and device for synchronizing data based on SQL statements | |
CN104331491A (en) | Method and device for displaying organization | |
CN104794130B (en) | Relation query method and device between a kind of table | |
CN109344501A (en) | A kind of modular product configuration and design method | |
CN103488655B (en) | Method and system for processing composite model data | |
CN109815254A (en) | Cross-region method for scheduling task and system based on big data | |
CN110442774A (en) | Information acquisition method and device | |
CN105069035A (en) | Method for realizing data access permission control | |
CN110442597A (en) | A kind of accurate lookup method of automobile parts | |
CN109977175A (en) | Data configuration querying method and device | |
CN107169862A (en) | A kind of bad customer deposit automatic tracking system of bank | |
CN110413708B (en) | Data analysis system oriented to business terms | |
CN109871470A (en) | A kind of grid equipment data label management system and implementation method | |
CN105653576A (en) | Information searching method and apparatus, manual position service method and system | |
CN109033435A (en) | It is a kind of to search for method generally across micro services | |
CN107807977B (en) | Object attribute metadata extraction system based on configuration |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181218 |
|
RJ01 | Rejection of invention patent application after publication |