CN108777718A - A kind of operation system passes through client and accesses reads the method and apparatus for writing few system more - Google Patents

A kind of operation system passes through client and accesses reads the method and apparatus for writing few system more Download PDF

Info

Publication number
CN108777718A
CN108777718A CN201810652330.7A CN201810652330A CN108777718A CN 108777718 A CN108777718 A CN 108777718A CN 201810652330 A CN201810652330 A CN 201810652330A CN 108777718 A CN108777718 A CN 108777718A
Authority
CN
China
Prior art keywords
caching
library
mode
data
operation system
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.)
Granted
Application number
CN201810652330.7A
Other languages
Chinese (zh)
Other versions
CN108777718B (en
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.)
Advanced Nova Technology Singapore Holdings Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810652330.7A priority Critical patent/CN108777718B/en
Publication of CN108777718A publication Critical patent/CN108777718A/en
Application granted granted Critical
Publication of CN108777718B publication Critical patent/CN108777718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This specification embodiment provides the method for reading data and device between a kind of operation system.In one embodiment, the first operation system writes the second few operation system with reading more and is connected by network;Second operation system includes manager, database and at least one caching library, and caching library is the distributed caching of database, and manager provides the control to database and distributed caching;First operation system is equipped with the client-side program of manager;The method is executed by client-side program;The method includes:Read requests are obtained, read requests are used to read the data in the second operation system;According to read requests, determine that caching library address, the caching library address correspond to the caching library at least one caching library;According to caching library address, establishes and connect with caching library;Read requests are sent to caching library by the connection, read data.Taking for network can be greatly reduced in this specification embodiment, increase throughput of system.

Description

A kind of operation system passes through client and accesses reads the method and apparatus for writing few system more
Technical field
This specification is related to field of computer technology, more particularly to the methods and dress of few system reading data are write from reading more It sets.
Background technology
As its name suggests, it reads to write few system to be the system read more than writing more.As service provider, system provide simultaneously reading and The service write, but the pressure of system mostlys come from the read operation of service call side.For this purpose, system is built in database level Multiple readings libraries and a master library are found, system when read operation occurs and reads reading library, system operatio master library is simultaneously when write operation occurs It is synchronized to and reads in library.
For a large amount of reading demands from service call side, system establishes distributed caching.When the business of reading occurs, The preferential data read in distributed caching, if in caching there is no if data can reading database, and result is stored in slow In depositing, when operation data, can first update the data library and then update into distributed caching.
However, with the portfolio increasing of reading and to query performance requirement, network has taken is at restriction It unites further bottleneck.Accordingly, it would be desirable to there is improved plan, service call side and service provider can be efficiently reduced Between network take.
Invention content
This specification one or more embodiment describes a kind of method and apparatus, can reduce foundation connection, data pass Defeated takes, and increases throughput of system.
According in a first aspect, providing the method for reading data that a kind of reading writes few system more.First operation system and second Operation system is connected by network.Second operation system is to read to write few system more, and second operation system includes pipe Device, database and at least one caching library are managed, at least one caching library is the distributed caching of database, and manager provides Control to database and at least one distributed caching.First operation system is equipped with the manager of the second operation system Client-side program;The method is executed by the client-side program.The method includes:Read requests are obtained, the reading is asked It asks for reading the data in the second operation system;In the flrst mode, according to read requests, caching library address is determined, it is described It caches library address and corresponds to the first caching library at least one caching library;According to caching library address, established with the first caching library First connection;By this first connect to first caching library send read requests, read the first data.
In a kind of possible scheme, the method includes the second connection is established with manager under the second mode, and By this second connect to manager send read requests, will pass through the second connection from least one distributed caching or data Read the second data in library.It is further possible that in scheme, the method includes comparing the first data and the second data, according to than Relatively result determines the availability of first mode.
Include mode switch the method includes client-side program, the method includes roots in a kind of possible scheme According to mode switch, a mode reads of first mode and second mode access evidence is selected.At another it is further possible that scheme In, the method includes switching the mode switch, to switch between the first mode and the second mode.
It is described according to read requests in a kind of possible scheme, determine that caching library address includes according to read requests, really Determine key;According to key and key-value pair, caching library address is determined.
In a kind of possible scheme, the method includes first caching library can not hiting data in the case of, Xiang Guan Manage the request that device sends reading database.
According to second aspect, a kind of digital independent device of the second operation system of access of first operation system is provided.The One operation system is connected with the second operation system by network.Second operation system be read write few system, described the Two operation systems include manager, database and at least one caching library, and at least one caching library is the distribution of database Formula caches, and manager provides the control to database and at least one distributed caching.The digital independent device includes:It obtains Unit is taken, is configured to obtain read requests, the read requests are used to read the data in the second operation system;Determination unit, It is configured in the flrst mode, according to read requests, determines that caching library address, the caching library address correspond at least one slow The first caching library in warehousing;First connection unit is configured to according to caching library address, with first at least one caching library The first connection is established in caching library;First reading unit, be configured to by this first connect to first caching library send read requests, Read the first data.
According to the third aspect, a kind of computer readable storage medium is provided, computer program is stored thereon with, when described When computer program executes in a computer, enable computer execute first aspect method.
According to fourth aspect, a kind of server is provided, server includes storage device, network interface and processor, institute It states processor and is communicatively coupled to the storage device and network interface, storage device is stored with the client journey of manager Sequence, manager provide the control to database and at least one distributed caching, and at least one caching library is point of database Cloth caches, and the processor can be used for executing client-side program, and then the method for realizing first aspect.
The method and apparatus provided by this specification embodiment can be greatly reduced taking for network, increase system throughput Amount, improves the access speed of application, and reduce the load of database.
Description of the drawings
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, wherein:
Fig. 1 is that the operation system that this specification discloses accesses the schematic diagram of a scenario for reading more to write few system;
Fig. 2 shows the schematic diagrames that distributed caching is accessed by client according to this specification embodiment;
Fig. 3 illustrate to cache in the flrst mode library can not hiting data flow diagram;
Fig. 4 shows the method flow schematic diagram that distributed caching is accessed by client according to one embodiment;
Fig. 5 illustrates the detailed structure view of the server according to the embodiment that can be used for realizing above-mentioned various technologies;
Fig. 6 is a kind of structural schematic diagram for device that this specification embodiment provides;
Fig. 7 is the schematic diagram for caching library client insertion manager client.
Specific implementation mode
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar module or module with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and is only used for explaining the application, and should not be understood as the limitation to the application.
Fig. 1 is that the operation system that this specification discloses accesses the schematic diagram of a scenario for reading more to write few system.As shown in Figure 1, having First operation system and the second operation system can be connected each other by network.First operation system for example with server A 1, A2, A3 is representative.In one example, the first operation system is server cluster, each server work(having the same in cluster Can, load-balanced server distributes to the request dynamic of user at corresponding server according to the loading condition of each server Reason.
Second operation system is for example including manager B, database B-M0 and at least one caching library B-H1, B-H2, B-H3 And B-H4, it constitutes one and reads to write few system more.Wherein, caching library B-H1, B-H2, B-H3 and B-H4 is the distribution of database B-M0 Formula caches.Database B-M0 can be deployed in the server where manager, also can individually be disposed;Database B-M0 is stored with perhaps Most evidences, it can provide the query capability of data by issuing service, naturally it is also possible to allow to write new data into;Management Device B realizes the control to database B-M0, distributed caching B-H1, B-H2, B-H3 and B-H4.As needed, cache library B-H1, B-H2, B-H3 and B-H4 can be stored at least part in the data of database B-M0, in one example, store number According to the not variable data of those of library B-M0.Certainly, database B-M0 and each caching library can be with storage files, object, picture, Video etc. is hereinafter referred to as with data for the sake of simplicity.
Manager B can by data fragmentation, the data of database B-M0 be distributed to multiple caching library B-H1, B-H2, In B-H3 and B-H4.Following several rules may be used in data fragmentation:Section fragment, Hash (hash) fragment, time slot (slot) Fragment.Certainly, it is also feasible that others, which are conducive to digital independent and the rule of write-in,.For Hash fragment, hash algorithm can To use static Hashing and consistency Hash.For example, with data D, based on the total number N for caching library, pass through consistency Hash Algorithm calculates the corresponding cryptographic Hash of data D, and corresponding caching library can be found according to cryptographic Hash.
Under a kind of possible scene, it is relevant between the business of the first operation system and the business of the second operation system or Person has dependence, it is therefore desirable to access the data of the second operation system.For example, the first operation system is responsible for transaction, the second industry Business system is responsible for membership information, and the first operation system confirms transaction by inquiring the membership information in the second operation system Progress.
Server A 1-A3, manager B, database B-M0 and multiple caching library B-H1, B-H2, B-H3 and B-H4 usually divide It is located on different server or communication equipment, but can also be arranged on same server or same communication equipment;When point When being located on different server or communication equipment, gentle warehousing B-H1, the B- of server A 1-A3, manager B, database B-M0 The network connections such as internet, private network can be passed through between H2, B-H3 and B-H4.This specification is not restricted this.
Fig. 2 shows under scene shown in Fig. 1, according to the structure for accessing distributed caching by client of one embodiment Schematic diagram.As shown in Fig. 2, the server A 1 in the first operation system is equipped with the client journey of manager in the second operation system Sequence.Client-side program can load manager B, database B-M0 and its caching library B-H1, B- according to configuration information when mounted The link address of H2, B-H3, B-H4 can also obtain corresponding link address from server-side.
Database B-M0 is primary database, can carry out the read-write operation of data to it.Cache library B-H1, B-H2, B-H3, B-H4 is stored at least part data of database B-M0 according to slice rule respectively as the caching of primary database.Management Device B is equipped with serve end program, realizes the control to database B-M0 and distributed caching B-H1, B-H2, B-H3 and B-H4, And the access request in response to client, for its provide the read and write access to database B-M0 and to caching library B-H1, B-H2, The read access of B-H3, B-H4.
Under a kind of access module, client-side program can complete the reading of data by the serve end program in manager Write operation.According to the addresses manager B 0, the serve end program of client-side program and manager B establishes communication linkage L1.It is building After vertical link L1, manager B, will be in new data or modification data write-in database B-M0 according to write request;It is grasped according to reading Make and corresponding slice is regular, caching library (such as B-H3) hair into distributed caching B-H1, B-H2, B-H3 and B-H4 Read requests are played, server is returned to after the connection L1 ' between manager B eases up warehousing B-H3 reads data from the caching library A1.It is this to be referred to as second mode in the description in such a way that data are read in remote service end access cache library.
According to this specification embodiment, under another access module, client-side program not by manager, and directly with Connection is established in target cache library, to realize data access.Specifically, when the first operation system needs to read the second business system When data in system, client-side program obtains read requests, and the read requests are used to read the data in the second operation system. In one example, read requests carry the user identifier (USER ID, abbreviation UID) of user.Then, client-side program can root According to read requests, caching library address is determined, which, which corresponds at least one caching library, can read data Target cache library, such as B-H3;Then, according to the caching library addresses B-H3 3, connection L2 is established with caching library B-H3;Pass through the company It meets L2 and sends read requests to caching library B-H3, read data.In one example, according to read requests determination key, then root It postpones according to key and key-value pair and determines corresponding caching library address in warehousing address list.Specifically, client-side program can be advance The hashed value in caching library is calculated, and each caching library is distributed on 0 to 2 circle of 32 powers;Upon receipt of a read request, objective Family end program with same method calculate data to be read key hashed value and map to circle on, be mapped to from data to be read Position start to search clockwise, read data from the caching library corresponding to first address found.Then, client Program obtains query object according to the unserializing mode that caching library provides.It will be understood to those skilled in the art that caching library Address can also be achieved other ways, such as to manager B inquire, client-side program is then supplied to by manager B.
The data reading mode that this client is directly interacted with distributed caching is referred to as the in the present specification One pattern.Realize that an example of first mode is the client journey in the embedded caching library in the client-side program of the manager Sequence or part of it.Fig. 7 is the schematic diagram for caching library client insertion manager client.Caching library client configuration in figure There is caching library address list, such as the caching library address of B-H1 ... B-H4 is noted down in lists.In one example, in caching library Number have increase and decrease in the case of, by the interaction between distributed caching library and its client, can timely update first Caching library address list in operation system.
Taking for first mode is totally different in second mode.In a second mode for the path of middle A1/B/B-H3, data are read Process include that 1 linked L1 of server A and manager B establishes communication, then manager B eases up the linked L1 ' of warehousing B-H3 Communication is established, then data warehousing B-H3 of postponing is transmitted to manager B again to server A 1, and network transmission therein, which takes, includes Server A 1 and manager B establish connection, data transmission take and manager B established with distributed caching B-H3 connect, Data transmission takes.In contrast to this, it includes only clothes that the mode of the access reading business of first mode takes in network transmission Being engaged in, device A1 and distributed caching B3 establishes connection, data transmission takes, and can largely reduce taking for network, increases system throughput Amount.
It is well known that caching library is also likely to be present the situation being not hit by.Fig. 3 illustrates to cache library in the flrst mode can not The flow diagram of hiting data.As shown in figure 3, in step S32, first mode is taken in determination, is directly accessed by client Cache library.In step S34, judge to cache library whether hiting data?If it is, entering step S37, data are read.If not, Then enter step S36, instruction manager inquiry database or the other operations of execution.
Obviously, the first mode that client is directly interacted with distributed caching, and the second mode via server-side, It is each has something to recommend him.Therefore, according to the embodiment of this specification, the ability for being selected and being switched between both of which is provided.Fig. 4 The method flow schematic diagram that distributed caching is accessed by client according to one embodiment is shown.The method of the embodiment carries The ability of one key switching in some scenarios is supplied, the first mode or lead to that permission dynamic select is directly accessed by client Cross the second mode of the remote service of server-side.This method can be to be subject on the basis of structure shown in scene shown in Fig. 1 and Fig. 2 It realizes.
As shown in figure 4, in step S42, client receives the request for reading data, and the read requests are for reading the Data in two operation systems.Then, in step S44, client judges whether using double reading modes.If it is, in step S46 opens double reading modes, reads result a by way of the direct access cache library of client in the flrst mode first, then Result b is read by server-side access cache library under the second mode.Certainly, first mode and second mode at step S46 The sequence of the two can change, and can take first mode and the parallel access mode of second mode, can also first second The access mode of first mode after pattern.In one example, it is compared after result a, b being carried out Hash, counts different numbers. If result a, b there is no inconsistent, then illustrates that the first mode in the direct access cache library of client is available.Such verification machine It is formed with and helps pinpoint the problems and solve the problems, such as in early period or in operation at 1 access cache library of server A.In addition, client The different numbers counted can be periodically or non-periodically sent to manager, the different feelings of manager analyses and comparison result by end Condition arranges corresponding measure, for example updates distributed caching early.
If not using double reading modes in step S44 judgements, in step S47, whether judgment model switch is opened.Such as Fruit mode switch is opened, then enters step S49, and client reads data by remote service end under the second mode, that is, passes through The mode in manager accesses caching library reads data.If switch is closed, S48 is entered step, in the flrst mode client Direct access cache library is held, data are read.
By means of mode switch, client can neatly select according to the different load situation of the second operation system One pattern or second mode.For example, in the case that the second operation system business is not busy or caching library hit rate is not high, client Select work under the second mode;Second operation system heavy traffic or data need in the case of reading as early as possible, client Select work in the flrst mode.
By means of mode switch, client can also dynamic and rapidly cut between the first mode and the second mode It changes.
Business early period is being read, can judge the availability of first mode by double reading modes.If by verification first Pattern is available, then first mode is opened in client selection, is directly read under caching library by client.The read in client Under one pattern, client can continue according to monitoring and business throughput, the performance in the direct access cache library of verification client.Such as There is local problem in the second operation system of fruit or network, interfere the normal work of first mode, can be switched with fast-switching mode, So that client operation is under the second mode, caching library is remotely accessed by server-side, it is direct greatly to reduce cache client The risk in access cache library;After problem is eliminated, it can be switched with switch mode so that client comes back to first mode.Mould Formula switch can help to realize the seamless switching in business procedure, be not necessarily to staff on duty.
Under a possible embodiment, the first operation system is server cluster, and each of cluster services utensil There are identical function, load-balanced server to be distributed to the request dynamic of user accordingly according to the loading condition of each server Server process.Each server in cluster is integrated with the client-side program of the manager of the second operation system, and configures There is mode switch, client-side program can be made to switch in the first mode and in a second mode.Pattern in cluster in each server Switch, can also independently be switched as the case may be with synchronism switching.In one example, for Support Mode switching Safety can configure one in the first operation system or a small number of servers, its mode switch is made to be switched to the first mould in advance Under formula, pass through the direct access cache library of client.If by this or these work of server whithin a period of time Monitoring finds that first mode works normally, then can the first mould be switched to the mode switch of each server in entire cluster Under formula, or it is made to be switched under first mode gradually.
Although the first mode in the direct access cache library of client helps fast to read data, due to database with Caching library is difficult to ensure data consistency, therefore, it is necessary to the distributed caching that timely updates.In a possible realization method In, a more new task is written in the manager of the second operation system while updating the data library, by means of this more new task energy Ensure the transaction consistency with operation data.More new task can be driven by timed task, be supervised in each distributed caching with this The content of node all updates, incremental data problem when preventing concurrent.
Fig. 5 illustrates to can be used for realizing that the first operation system of above-mentioned various technologies respectively takes according to this specification embodiment The detailed structure view of business device.The block diagram shows the hardware foundations of method flow shown in principle shown in achievable Fig. 2 and Fig. 4. As shown in figure 5, server may include processor 102, which indicates the microprocessor of the overall operation for controlling server Device or controller 111.Data/address bus 115 can be conducive to carry out data between storage device 140, processor 102 and controller 117 Transmission.Controller 111 can be used for interacting and controlling it with distinct device by equipment controlling bus 117.
Server further includes storage device 140, which can store client-side program;Can also store database and It caches the access address in library.Terminal device may also include random access memory (RAM) 120 and read-only memory (ROM) 122.ROM 122 can store pending program, utility program or process, such as operating system in a non-volatile manner. RAM120, also referred to as memory, it is possible to provide volatile data storage, and the instruction of storage running operating system and client-side program and Its relevant data.
In operation, client application is loaded on from RAM140 in RAM120, and thus control processor 102 Corresponding operating is executed, thus client is able to access distributed caching, to read data therein.
In one example, client application obtains read requests, and the read requests are for reading the second business Data in system;In the flrst mode, according to read requests, determine that caching library address, the caching library address correspond to extremely The first caching library in few caching library;According to caching library address, establishes first with the first caching library and connect;By this first It connects to the first caching library and sends read requests, read the first data.In another example, under the second mode, client Application program and manager establish the second connection, and second connect to manager by this and send read requests, will pass through Second connection reads the second data from least one distributed caching.Certainly, client application can compare the first data With the second data, the availability of first mode is determined according to comparison result.
It should be appreciated that server described herein can utilize previously described embodiment of the method or therewith at many aspects In conjunction with.
Fig. 6 is a kind of structural schematic diagram of device provided in an embodiment of the present invention.Device corresponds to front at many aspects The step of embodiment of the method for description, is in combination, and the modules of device can be by software, hardware or hardware and software Combination is realized.Specifically, which may include acquiring unit 200, be configured to obtain read requests, the read requests are used In reading the data in the second operation system;It can also include determination unit 202, be configured to, according to read requests, determine caching Library address, the caching library address correspond to the first caching library at least one caching library;First connection unit 204, configuration According to caching library address, to establish first with the first caching library at least one caching library and connecting;First reading unit 206, Be configured to by this first connect to first caching library send read requests, read the first data.Note that determination unit 202, One connection unit 204, the work of the first reading unit 206 are in the flrst mode.
In a possible scheme, digital independent device includes the second connection unit 212, is configured to establish with manager Second connection;With, the second reading unit 214, it is configured to second connect to manager by this and send read requests, will pass through Second connection reads the second data from least one distributed caching.Second connection unit 212 and the work of the second reading unit 214 Under the second mode different from first mode.It is further possible that in scheme, digital independent device includes that first mode can It with property determination unit 226, is configured to compare the first data and the second data, first mode availability is determined according to comparison result. At another it is further possible that in scheme, digital independent device includes mode switch 238;In one example, mode switch The mode reads access evidence of 238 selection first modes and second mode;In another example, the mode switch 238 exists It is switched between first mode and second mode.
In a possible scheme, the determination unit includes key determination unit, is configured to, according to read requests, determine Key;Address determination unit is configured to, according to key and key-value pair, determine caching library address.
In a possible scheme, the digital independent device further includes third reading unit, first caching library without In the case of method hiting data, the request of reading database is sent to manager.
According to the embodiment of another aspect, a kind of computer readable storage medium is also provided, is stored thereon with computer journey Sequence enables computer execute and combines method described in Fig. 2 and Fig. 4 when the computer program executes in a computer.
Those skilled in the art are it will be appreciated that in said one or multiple examples, work(described in the invention It can be realized with hardware, software, firmware or their arbitrary combination.It when implemented in software, can be by these functions Storage in computer-readable medium or as on computer-readable medium one or more instructions or code be transmitted.
Above-described specific implementation mode has carried out further the purpose of the present invention, technical solution and advantageous effect It is described in detail, it should be understood that the foregoing is merely the specific implementation mode of the present invention, is not intended to limit the present invention Protection domain, all any modification, equivalent substitution, improvement and etc. on the basis of technical scheme of the present invention, done should all Including within protection scope of the present invention.

Claims (16)

1. a kind of first operation system accesses the method for reading data of the second operation system, the first operation system and the second business system System is connected by network;Second operation system is to read to write few system more, and second operation system includes manager, number According to library and at least one caching library, at least one caching library is the distributed caching of database, and manager is provided to data The control of library and at least one distributed caching;First operation system is equipped with the client of the manager of the second operation system Program;The method is executed by the client-side program;The method includes:
Read requests are obtained, the read requests are used to read the data in the second operation system;
In the flrst mode, according to read requests, determine that caching library address, the caching library address correspond at least one caching The first caching library in library;
According to caching library address, establishes first with the first caching library and connect;
By this first connect to first caching library send read requests, read the first data.
2. according to the method described in claim 1, the method further includes establishing the second company with manager under the second mode It connects, and second connects to manager by this and send read requests, will pass through the second connection from least one distributed slow It deposits or database reads the second data.
3. according to the method described in claim 2, the method further includes comparing the first data and the second data, tied according to comparing Fruit determines the availability of first mode.
4. according to the method described in claim 2, wherein client-side program includes mode switch, the method includes according to pattern Switch selects a mode reads of first mode and second mode access evidence.
5. according to the method described in claim 4, wherein the method includes switching the mode switch, in first mode It is switched between second mode.
6. according to the method described in claim 1, wherein described according to read requests, determining caching library address includes according to reading Request, determination key;According to key and key-value pair, caching library address is determined.
7. according to the method described in claim 1, the method further include first caching library can not hiting data in the case of, The request of reading database is sent to manager.
8. a kind of first operation system accesses the digital independent device of the second operation system, the first operation system and the second business system System is connected by network;Second operation system is to read to write few system more, and second operation system includes manager, number According to library and at least one caching library, at least one caching library is the distributed caching of database, and manager is provided to data The control of library and at least one distributed caching;The digital independent device includes:
Acquiring unit is configured to obtain read requests, and the read requests are used to read the data in the second operation system;
Determination unit is configured in the flrst mode, according to read requests, determine caching library address, the caching library address pair It should be in the first caching library at least one caching library;
First connection unit, is configured to according to caching library address, and first is established with the first caching library at least one caching library Connection;
First reading unit, be configured to by this first connect to first caching library send read requests, read the first data.
9. digital independent device according to claim 8, wherein digital independent device include the second connection unit, it is configured to The second connection and the second reading unit are established with manager under the second mode, is configured to second connect to manager by this Read requests are sent, the second data are read from least one distributed caching or database will pass through the second connection.
It is determined 10. digital independent device according to claim 9, wherein digital independent device include first mode availability Unit, is configured to compare the first data and the second data, and first mode availability is determined according to comparison result.
11. digital independent device according to claim 9, wherein digital independent device include mode switch unit, it is used for Select a mode reads of first mode and second mode access evidence.
12. digital independent device according to claim 11, wherein the mode switch is used in first mode and second It is switched between pattern.
13. digital independent device according to claim 8 is configured to wherein the determination unit includes key determination unit According to read requests, determination key;Address determination unit is configured to, according to key and key-value pair, determine caching library address.
14. digital independent device according to claim 8, described device further includes third reading unit, in the first caching Library can not send the request of reading database to manager in the case of hiting data.
15. a kind of computer readable storage medium, is stored thereon with computer program, when the computer program in a computer When execution, computer perform claim is enabled to require the method for any one of 1-7.
16. a kind of server, including:Storage device, network interface and processor, the processor are communicatively coupled to described Storage device and network interface, storage device are stored with the client-side program of manager, and manager offer is to database and extremely The control of a few distributed caching, at least one caching library are the distributed cachings of database, and the processor can be used for holding Row client-side program realizes the method described in any one of claim 1-7.
CN201810652330.7A 2018-06-22 2018-06-22 Method and device for accessing read-write-more-less system through client side by service system Active CN108777718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810652330.7A CN108777718B (en) 2018-06-22 2018-06-22 Method and device for accessing read-write-more-less system through client side by service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810652330.7A CN108777718B (en) 2018-06-22 2018-06-22 Method and device for accessing read-write-more-less system through client side by service system

Publications (2)

Publication Number Publication Date
CN108777718A true CN108777718A (en) 2018-11-09
CN108777718B CN108777718B (en) 2021-03-23

Family

ID=64025420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810652330.7A Active CN108777718B (en) 2018-06-22 2018-06-22 Method and device for accessing read-write-more-less system through client side by service system

Country Status (1)

Country Link
CN (1) CN108777718B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110674147A (en) * 2019-08-28 2020-01-10 视联动力信息技术股份有限公司 Data processing method, device and computer readable storage medium
CN111339139A (en) * 2020-02-21 2020-06-26 广州市百果园信息技术有限公司 Data processing method, device, equipment and storage medium
CN112732751A (en) * 2020-12-30 2021-04-30 北京懿医云科技有限公司 Medical data processing method, device, storage medium and equipment
CN113127570A (en) * 2021-05-18 2021-07-16 上海莉莉丝科技股份有限公司 Data operation method, system, equipment and storage medium of distributed server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186552A (en) * 2011-12-28 2013-07-03 北京新媒传信科技有限公司 Method and system for visiting data by client in business service
US20140365537A1 (en) * 2012-05-28 2014-12-11 Huawei Technologies Co., Ltd File storage system, apparatus, and file access method
CN105338026A (en) * 2014-07-24 2016-02-17 阿里巴巴集团控股有限公司 Data resource acquisition method, device and system
CN105574010A (en) * 2014-10-13 2016-05-11 阿里巴巴集团控股有限公司 Data querying method and device
CN107231395A (en) * 2016-03-25 2017-10-03 阿里巴巴集团控股有限公司 Date storage method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186552A (en) * 2011-12-28 2013-07-03 北京新媒传信科技有限公司 Method and system for visiting data by client in business service
US20140365537A1 (en) * 2012-05-28 2014-12-11 Huawei Technologies Co., Ltd File storage system, apparatus, and file access method
CN105338026A (en) * 2014-07-24 2016-02-17 阿里巴巴集团控股有限公司 Data resource acquisition method, device and system
CN105574010A (en) * 2014-10-13 2016-05-11 阿里巴巴集团控股有限公司 Data querying method and device
CN107231395A (en) * 2016-03-25 2017-10-03 阿里巴巴集团控股有限公司 Date storage method, device and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110674147A (en) * 2019-08-28 2020-01-10 视联动力信息技术股份有限公司 Data processing method, device and computer readable storage medium
CN110674147B (en) * 2019-08-28 2023-02-28 视联动力信息技术股份有限公司 Data processing method, device and computer readable storage medium
CN111339139A (en) * 2020-02-21 2020-06-26 广州市百果园信息技术有限公司 Data processing method, device, equipment and storage medium
CN112732751A (en) * 2020-12-30 2021-04-30 北京懿医云科技有限公司 Medical data processing method, device, storage medium and equipment
CN113127570A (en) * 2021-05-18 2021-07-16 上海莉莉丝科技股份有限公司 Data operation method, system, equipment and storage medium of distributed server

Also Published As

Publication number Publication date
CN108777718B (en) 2021-03-23

Similar Documents

Publication Publication Date Title
CN108777718A (en) A kind of operation system passes through client and accesses reads the method and apparatus for writing few system more
CN104811493B (en) The virtual machine image storage system and read-write requests processing method of a kind of network aware
JP5717864B2 (en) Endpoint cache for data storage systems
CN103154909B (en) Distributed cache consistency protocol
CN106506703B (en) Service discovery method, apparatus and system, server based on shared drive
CN109597567B (en) Data processing method and device
CN108833503A (en) A kind of Redis cluster method based on ZooKeeper
CN105095313B (en) A kind of data access method and equipment
CN104980494B (en) A kind of cloud storage download shared platform and method with local cache
WO2021115231A1 (en) Authentication method and related device
CN103338242A (en) Hybrid cloud storage system and method based on multi-level cache
CN106713391A (en) Session information sharing method and sharing system
CN109951543A (en) A kind of data search method of CDN node, device and the network equipment
CN107451853A (en) Method, apparatus, system and the storage medium that a kind of red packet distributes in real time
US20170141958A1 (en) Dedicated endpoints for network-accessible services
CN110198330A (en) Image download method and apparatus
CN112651001A (en) Access request authentication method, device, equipment and readable storage medium
CN109743357B (en) Method and device for realizing service access continuity
CN102685245A (en) Method and system for data social contact storage based on internet
CN115964389A (en) Data processing method, device and equipment based on block chain and readable storage medium
CN111327668A (en) Network management method, device, equipment and storage medium
CN109634735A (en) A kind of method and device for dispatching Pod
CN113535335B (en) Virtual resource allocation method and device based on block chain and electronic equipment
CN102833295B (en) Data manipulation method and device in distributed cache system
KR20080077966A (en) Method and system for registering a distributed service site

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200927

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200927

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240206

Address after: Guohao Times City # 20-01, 128 Meizhi Road, Singapore

Patentee after: Advanced Nova Technology (Singapore) Holdings Ltd.

Country or region after: Singapore

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Innovative advanced technology Co.,Ltd.

Country or region before: United Kingdom