CN104317914A - Data acquiring method and device - Google Patents

Data acquiring method and device Download PDF

Info

Publication number
CN104317914A
CN104317914A CN201410589547.XA CN201410589547A CN104317914A CN 104317914 A CN104317914 A CN 104317914A CN 201410589547 A CN201410589547 A CN 201410589547A CN 104317914 A CN104317914 A CN 104317914A
Authority
CN
China
Prior art keywords
data
versions
user
request
service server
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
CN201410589547.XA
Other languages
Chinese (zh)
Other versions
CN104317914B (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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410589547.XA priority Critical patent/CN104317914B/en
Publication of CN104317914A publication Critical patent/CN104317914A/en
Application granted granted Critical
Publication of CN104317914B publication Critical patent/CN104317914B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a data acquiring method and device. The data acquiring method includes analyzing data requests transmitted by users to obtain user identifiers; acquiring data versions corresponding to the user identifiers; acquiring the data requested by the data requests according to the data versions; feeding the data back to the users. During gray distribution, the logic process obtained by the data versions are separated from storage of the data versions, any distribution objects can be appointed, and usability is high.

Description

Data capture method and device
Technical field
The disclosure relates to communication technical field, particularly relates to a kind of data capture method and device.
Background technology
When internet product issues redaction, the mode that gray scale usually can be adopted to issue, allow a part of user continue to use early version, a part of user brings into use redaction.For the user bringing into use redaction, can when it obtain data, by the data of redaction being returned to user to realize the issue of redaction.If what opposing views this part user does not have to the redaction issued, so all users can be moved in redaction.Gray scale is issued and can be ensured the stable of total system, just can find in early days, deal with problems.
Realize gray scale to issue, can be configured in the Nginx configuration file of proxy server in correlation technique, distinguish the user using early version and redaction according to the weight of IP address or IP cryptographic hash.But user can only be carried out rough classification by such implementation, cannot issue redaction for specific user, availability is poor.
Correlation technique can also utilize Lua as Nginx plug-in unit, is configured in Lua, such as: in Lua, configuration needs the IP address using redaction.But such implementation needs to determine configuration in advance, the object of issue is comparatively single, fixing, and when object is issued in needs change, need amendment configuration, availability is also poor.Meanwhile, if configuration is broken down, issue directly causing redaction unsuccessfully.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of data capture method and device, to solve the problem that gray scale issues poor availability.
According to the first aspect of disclosure embodiment, a kind of data capture method is provided, comprises:
User ID is parsed from the request of data that user sends;
Obtain the versions of data that described user ID is corresponding;
The data that described request of data asks are obtained according to described versions of data;
Described data are returned to user.
Optionally, the versions of data that the described user ID of described acquisition is corresponding comprises:
Judge in memory database, whether to preserve versions of data corresponding to described user ID;
If preserve the versions of data that described user ID is corresponding in memory database, then in described memory database, obtain versions of data corresponding to described user ID.
Optionally, also comprise:
If do not preserve versions of data corresponding to described user ID in memory database, then obtain default data version using as versions of data corresponding to described user ID.
Optionally, describedly obtain according to described versions of data the data that described request of data asks and comprise:
Judge whether to there is the service server supporting described versions of data;
The service server of described versions of data is supported, then from the data supporting the service server of described versions of data to obtain described request of data to ask if existed.
Optionally, also comprise:
If there is no the service server of described versions of data is supported, then from the data supporting the service server of default data version to obtain described request of data to ask.
Optionally, describedly parse user ID and comprise from the request of data that user sends:
The IP address of user or cookie is parsed as described user ID from described request of data.
According to the second aspect of disclosure embodiment, a kind of data acquisition facility is provided, comprises:
Identification (RNC-ID) analytic unit, parses user ID in the request of data that sends from user;
Version acquiring unit, for obtaining versions of data corresponding to described user ID;
Data capture unit, for obtaining the data that described request of data is asked according to described versions of data;
Data return unit, for described data are returned to user.
Optionally, described version acquiring unit comprises:
Whether the first judgment sub-unit, preserve versions of data corresponding to described user ID for judging in memory database;
First obtains subelement, during for preserving versions of data corresponding to described user ID in memory database, obtains versions of data corresponding to described user ID in described memory database.
Optionally, described version acquiring unit also comprises:
Second obtains subelement, and during for not preserving versions of data corresponding to described user ID in memory database, the versions of data obtaining acquiescence is using as versions of data corresponding to described user ID.
Optionally, described data capture unit comprises:
, there is for judging whether the service server supporting described versions of data in the second judgment sub-unit;
3rd obtains subelement, for exist support the service server of described versions of data time, then from the data supporting the service server of described versions of data to obtain described request of data to ask.
Optionally, described data capture unit also comprises:
4th obtains subelement, for when there is not the service server supporting described versions of data, and the data obtaining described request of data from supporting the service server of versions of data given tacit consent to and ask.
Optionally, described identification (RNC-ID) analytic unit comprises:
Identification (RNC-ID) analytic subelement, for parsing the IP address of user or cookie as described user ID from described request of data.
According to the third aspect of disclosure embodiment, a kind of data acquisition facility is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
User ID is parsed from the request of data that user sends;
Obtain the versions of data that described user ID is corresponding;
The data that described request of data asks are obtained according to described versions of data;
Described data are returned to user.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
The disclosure is when receiving the request of data that user sends, according to the user ID parsed from described request of data to obtain corresponding versions of data, and then the data of this versions of data can be obtained for user, the disclosure is in the process realizing gray scale issue, the logical process that versions of data obtains is separated with the storage of versions of data, can specify and issue object arbitrarily, availability is strong.
The corresponding relation of user ID and versions of data can be stored in memory database by the disclosure, can realize persistent storage, safer.
The disclosure can obtain versions of data corresponding to user ID from memory database, and reading speed is fast, can not affect the response time of user data requests.Simultaneously, in the present embodiment, the logical process obtained due to versions of data is separated with the storage of versions of data, when developer wants the issue object adjusting new versions of data, developer only needs the corresponding relation changing user ID and versions of data in memory database, easy to operate.
The disclosure is after getting versions of data corresponding to user ID, judge whether to there is the service server supporting described versions of data, and when there is not the service server supporting described versions of data, can from supporting that the service server of default data version obtains data, to avoid not upgrading in time memory database and the data acquisition failure that causes.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is the process flow diagram of a kind of data capture method according to an exemplary embodiment.
Fig. 2 is a kind of process flow diagram obtaining versions of data corresponding to user ID according to an exemplary embodiment.
Fig. 3 is a kind of process flow diagram obtaining the data that request of data is asked according to versions of data according to an exemplary embodiment.
Fig. 4 is a kind of data acquisition application scenarios schematic diagram according to an exemplary embodiment.
Fig. 5 is a kind of data acquisition facility block diagram according to an exemplary embodiment.
Fig. 6 is the another kind of data acquisition facility block diagram according to an exemplary embodiment.
Fig. 7 is the another kind of data acquisition facility block diagram according to an exemplary embodiment.
Fig. 8 is the another kind of data acquisition facility block diagram according to an exemplary embodiment.
Fig. 9 is the another kind of data acquisition facility block diagram according to an exemplary embodiment.
Figure 10 is the another kind of data acquisition facility block diagram according to an exemplary embodiment.
Figure 11 is the structural representation for a kind of data acquisition facility according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the process flow diagram of a kind of data capture method according to an exemplary embodiment.
As shown in Figure 1, described data capture method can be used in proxy server, comprises the following steps:
In step S101, from the request of data that user sends, parse user ID.
In the present embodiment, user is at accessed web page or when using certain application software, the terminal that user uses can send request of data to proxy server, and the service server that proxy server can replace user to provide to website or software developer obtains the data of user's request.
Proxy server, when receiving the request of data that user sends, can parse user ID from described request of data.In this step, describedly parse user ID and can comprise from the request of data that user sends: from described request of data, parse the IP address of user or cookie as described user ID.Wherein, cookie refers to that some website or application software are in order to distinguish that user identity is stored in the data in terminal that user uses, and user cookie is the same with the IP address of user, can be used for the identity of identifying user.For example, when proxy server receives the request of data that user sends for certain webpage, can according to the setting of managerial personnel or developer, source IP address is parsed from described request of data, the i.e. IP address of user, or from described request of data, resolve its cookie carried, using as described user ID.
In step s 102, versions of data corresponding to described user ID is obtained.
In the present embodiment, when there being redaction to issue, the mode using gray scale to issue, can select a part of user as the issue object of described redaction, and the user ID of this part user and the corresponding relation of versions of data are stored on proxy server.For example, certain software metric tools 2.0 version, developer wants to issue this redaction to the user of IP address 192.168.0.15, then need the corresponding relation of this IP address 192.168.0.15 and versions of data 2.0 to store in the server.
In above process, can the corresponding relation of user ID and versions of data be stored in the memory database of proxy server, such as: the corresponding relation of user ID and versions of data is stored in redis storage system with the form of key/value.Wherein, key is described user ID, and value is described versions of data.In the present embodiment, the corresponding relation of user ID and versions of data is stored in memory database, can persistent storage be realized, safer.
Please refer to Fig. 2, in this step, versions of data corresponding to the described user ID of described acquisition can comprise the following steps:
In step s 201, judge in memory database, whether to preserve versions of data corresponding to described user ID.If preserve the versions of data that described user ID is corresponding in memory database, then perform step S202.If do not preserve versions of data corresponding to described user ID in memory database, then perform step S203.
In this step, if preserve versions of data corresponding to described user ID in memory database, then usually illustrate and will issue redaction to the user that this user ID is corresponding, perform step S202.If do not preserve versions of data corresponding to described user ID in memory database, then usually illustrate for user corresponding to this user ID, still allow it use early version, perform step S203.
Still with certain software metric tools redaction 2.0, it is example that the user that it is 192.168.0.15 that developer wants IP address issues this redaction, suppose that the corresponding relation of described user ID and described versions of data is stored in redis storage system by developer, and the user ID parsed in step S101 is IP address: 192.168.0.15, then in this step, through judging to learn to there is the key value that user ID is 192.168.0.15 in redis buffer memory, perform step S202.If the user ID parsed in step S101 is IP address: 192.168.0.14, then in this step, through judging to learn there is not the key value that user ID is 192.168.0.14 in described redis buffer memory, then step S203 is performed.
In step S202, in described memory database, obtain versions of data corresponding to described user ID.
Based on the judged result of abovementioned steps S201, in described redis buffer memory, obtain the value value 2.0 that key value 192.168.0.15 is corresponding, namely obtain versions of data 2.0 corresponding to user ID 192.168.0.15.
In step S203, obtain default data version using as versions of data corresponding to described user ID.
Based on the judged result of abovementioned steps S201, the key value of user ID 192.168.0.14 is not preserved in memory database, then obtain default data version using as versions of data corresponding to this user ID, described default data version is generally early version, such as: the version 1.0 of above-mentioned software.
In the present embodiment, obtain the versions of data that user ID is corresponding from memory database, reading speed is fast, can not affect the response time of user data requests.Simultaneously, in the present embodiment, the logical process obtained due to versions of data is separated with the storage of versions of data, when developer wants the issue object adjusting new versions of data, developer only needs the corresponding relation changing user ID and versions of data in memory database, availability is strong, easy to operate.
It should be noted that, the present embodiment can support that multiple versions of data is issued simultaneously, such as: the old versions of data of certain software is 1.0, developer issues new versions of data 2.0 and 2.1 simultaneously, wherein, 2.0 versions are issued for user A, 2.1 versions are issued for user B, other users still use 1.0 versions, then the corresponding relation of the user ID of user A and versions of data 2.0 can be stored in memory database by developer, the corresponding relation of the user ID of user B and versions of data 2.1 is also stored in memory database, so that when receiving the request of data of user A or user B, each self-corresponding versions of data can be got.
In step s 103, obtain according to described versions of data the data that described request of data asks.
Based on abovementioned steps S102, after getting versions of data corresponding to described user ID, obtain the data of user's request of this versions of data.Generally, website or the software development chamber of commerce provide multiple stage service server to provide service for user, when there being new versions of data to issue, can to upgrade wherein some service server, with the data enabling this service server support new versions of data, meanwhile, for other service server, be still early version data.In this step, the versions of data corresponding according to described user ID, can from supporting that the service server of this versions of data obtains the data of user's request, when also can be cached with the described data of this versions of data in the machine, from the buffer memory of the machine, obtain described data, the disclosure is not restricted this.
Please refer to Fig. 3, describedly obtain according to described versions of data the data that described request of data asks and can comprise the following steps:
In step S301, judge whether to there is the service server supporting described versions of data, if there is the service server supporting described versions of data, then perform step S302.If there is no support the service server of described versions of data, then perform step S303.
In the present embodiment, after getting versions of data corresponding to user ID, first judge whether to there is the service server supporting described versions of data, if there is the service server supporting described versions of data, then perform step S302.If there is no the service server of described versions of data is supported, such as: be stored in the corresponding relation of described user ID in proxy server and described versions of data because developer does not upgrade in time, so just may cause there is not the service server supporting this versions of data, perform step S303.
In step s 302, from the data supporting the service server of described versions of data to obtain described request of data to ask.
In this step, from the data supporting the service server of described versions of data to obtain described request of data to ask, the data of user's request can namely be obtained.In this process, proxy server can select one to support the data that the service server of described versions of data is asked to obtain user according to load balancing principle.Certainly, when realizing, those skilled in the art also can with reference to correlation technique, and support that the service server of described versions of data is to obtain the data of user's request with poll or the way selection of specifying, the disclosure is not restricted this.
In step S303, the data obtaining described request of data from supporting the service server of default data version and ask.
Based on the judged result of abovementioned steps S301, when there is not the service server supporting described versions of data, can from the data supporting the service server of default data version to obtain described request of data to ask, namely, when there is not the service server supporting described versions of data, obtain the data of early version.
For example, certain software is that the user of 192.168.0.15 issues redaction 2.0 to IP address, and developer has stored the corresponding relation of user ID 192.168.0.15 and versions of data 2.0 in advance on proxy server.Suppose, owing to there is some problem in this versions of data 2.0, be deactivated, originally the Data Update supported in the service server of 2.0 versions is old versions of data 1.0 by developer, but the user ID 192.168.0.15 stored before also not having enough time to upgrade and the corresponding relation of versions of data 2.0, after getting versions of data corresponding to user ID 192.168.0.15 2.0 in step s 102, the service server that there is not supported data version 2 .0 is judged in step S301, then from supporting to obtain data the service server of default data version, such as: from supporting to obtain data the service server of old versions of data 1.0.
In the present embodiment, after getting versions of data corresponding to user ID, judge whether to there is the service server supporting described versions of data, and when there is not the service server supporting described versions of data, from supporting that the service server of default data version obtains data, cause data acquisition failure to avoid upgrading memory database in time.
In step S104, described data are returned to user.
In this step, the data of versions of data corresponding for user ID are returned to user, issue to realize gray scale.
It should be noted that, in the present embodiment, Lua can be used as Nginx plug-in unit, the parsing of configure user mark in Lua, the acquisition process of versions of data, use Lua to be configured, can not affect the performance of Nginx.
Described as can be seen from above, the disclosure is when receiving the request of data that user sends, according to the user ID parsed from described request of data to obtain corresponding versions of data, and then the data of this versions of data can be obtained for user, the disclosure is in the process realizing gray scale issue, be separated with the storage of versions of data by the logical process that versions of data obtains, can specify and issue object arbitrarily, availability is strong.
Below in conjunction with specific embodiment, implementation procedure of the present disclosure is described.
Please refer to Fig. 4, suppose that certain software developer uses 4 service servers to provide service for user, wherein, service server 41 and service server 42 supported data version 1.0, service server 43 and service server 44 support new versions of data 2.0.Developer tries out for versions of data 2.0 is distributed to user A, so store the IP address 192.168.0.15 of user A and the corresponding relation of versions of data 2.0 in the memory database of proxy server 45, and arranges default data version 1.0.
When proxy server 45 receives a certain request of data, if the IP address of the user parsed from this request of data is 192.168.0.15, namely the user ID parsed from this request of data is 192.168.0.15, then can obtain versions of data corresponding to described user ID 192.168.0.15 2.0 in memory database, then proxy server 45 is according to versions of data 2.0, data that described request of data asks can be obtained and return to user, to realize versions of data 2.0 to be handed down to user A from service server 43 or service server 44.
If the IP address of the user parsed from this request of data is 192.168.0.14, namely the user ID parsed from this request of data is 192.168.0.14, owing to not preserving versions of data corresponding to user ID 192.168.0.14 in described memory database, so obtain default data version 1.0 using as versions of data corresponding to described user ID 192.168.0.14, then proxy server 45 is according to versions of data 1.0, data that described request of data asks can be obtained and return to user from service server 41 or service server 42, to realize the user being 192.168.0.14 for IP address, still issue old versions of data to it.
In the application scenarios shown in Fig. 4, the method that proxy server 45 can adopt preceding method embodiment to describe, to realize the process that above-mentioned user carries out data acquisition, does not repeat them here.
Corresponding with aforementioned data acquisition methods embodiment, the disclosure additionally provides the embodiment of data acquisition facility.
Fig. 5 is a kind of data acquisition facility block diagram according to an exemplary embodiment.
Please refer to Fig. 5, this data acquisition facility 500 comprises: identification (RNC-ID) analytic unit 501, version acquiring unit 502, data capture unit 503 and data return unit 504.
Wherein, this identification (RNC-ID) analytic unit 501 is configured to: from the request of data that user sends, parse user ID.
This version acquiring unit 502 is configured to: obtain the versions of data that described user ID is corresponding.
This data capture unit 503 is configured to: obtain according to described versions of data the data that described request of data asks.
These data return unit 504 and are configured to: described data are returned to user.
In above-described embodiment, when receiving the request of data that user sends, according to the user ID parsed from described request of data to obtain corresponding versions of data, and then the data of this versions of data can be obtained for user, the disclosure is in the process realizing gray scale issue, be separated with the storage of versions of data by the logical process that versions of data obtains, can specify and issue object arbitrarily, availability is strong.
Please refer to Fig. 6, Fig. 6 is the another kind of data acquisition facility block diagram according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and described version acquiring unit 502 can comprise: the first judgment sub-unit 5021 and first obtains subelement 5022.
Wherein, this first judgment sub-unit 5021 is configured to: judge whether preserve versions of data corresponding to described user ID in memory database.
This first obtains subelement 5022 and is configured to: when preserving versions of data corresponding to described user ID in memory database, obtain versions of data corresponding to described user ID in described memory database.
In above-described embodiment, can obtain versions of data corresponding to user ID from memory database, reading speed is fast, can not affect the response time of user data requests.Simultaneously, in the present embodiment, the logical process obtained due to versions of data is separated with the storage of versions of data, when developer wants the issue object adjusting new versions of data, developer only needs the corresponding relation changing user ID and versions of data in memory database, easy to operate.
Please refer to Fig. 7, Fig. 7 is the another kind of data acquisition facility block diagram according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 6, and described version acquiring unit 502 can also comprise: second obtains subelement 5023.
This second obtains subelement 5023 and is configured to: when not preserving versions of data corresponding to described user ID in memory database, and the versions of data obtaining acquiescence is using as versions of data corresponding to described user ID.
In above-described embodiment, can the corresponding relation of user ID and versions of data be stored in memory database, can persistent storage be realized, safer.
Please refer to Fig. 8, Fig. 8 is the another kind of data acquisition facility block diagram according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and described data capture unit 503 can comprise: the second judgment sub-unit 5031, the 3rd obtains subelement 5032.
Wherein, this second judgment sub-unit 5031 is configured: judge whether to there is the service server supporting described versions of data.
3rd obtains subelement 5032 is configured to: exist support the service server of described versions of data time, then from the data supporting the service server of described versions of data to obtain described request of data to ask.
In above-described embodiment, after getting versions of data corresponding to user ID, judge whether to there is the service server supporting described versions of data, and when there is not the service server supporting described versions of data, can from supporting that the service server of default data version obtains data, to avoid not upgrading in time memory database and the data acquisition failure that causes.
It should be noted that, the second judgment sub-unit 5031 shown in device embodiment shown in above-mentioned Fig. 8 and the 3rd structure obtaining subelement 5032 also can be included in the device embodiment shown in earlier figures 6 and Fig. 7, and the disclosure is not restricted this.
Please refer to Fig. 9, Fig. 9 is the another kind of data acquisition facility block diagram according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 8, and described data capture unit 503 can also comprise: the 4th obtains subelement 5033.
4th obtains subelement 5033 is configured to: when there is not the service server supporting described versions of data, the data obtaining described request of data from supporting the service server of versions of data given tacit consent to and ask.
Please refer to Figure 10, Figure 10 is the another kind of data acquisition facility block diagram according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and described identification (RNC-ID) analytic unit 501 can comprise: identification (RNC-ID) analytic subelement 5011.
This identification (RNC-ID) analytic subelement 5011 is configured to: from described request of data, parse the IP address of user or cookie as described user ID.
It should be noted that, the structure of the identification (RNC-ID) analytic subelement 5011 shown in device embodiment shown in above-mentioned Figure 10 also can be included in the device embodiment shown in earlier figures 6 to Fig. 9, and the disclosure is not restricted this.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Accordingly, the disclosure additionally provides a kind of data acquisition facility, and described device comprises: processor; For the storer of storage of processor executable instruction; Wherein, described processor is configured to: from the request of data that user sends, parse user ID; Obtain the versions of data that described user ID is corresponding; The data that described request of data asks are obtained according to described versions of data; Described data are returned to user.
Accordingly, the disclosure also provides a kind of non-transitory computer-readable recording medium, when the processor of the instruction in described storage medium by terminal performs, make terminal can perform a kind of data capture method, described method comprises: from the request of data that user sends, parse user ID; Obtain the versions of data that described user ID is corresponding; The data that described request of data asks are obtained according to described versions of data; Described data are returned to user.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of disclosure scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Figure 11 is the block diagram of a kind of device 1100 for data acquisition according to an exemplary embodiment.Such as, device 1100 may be provided in a server.With reference to Figure 11, device 1100 comprises processing components 1122, and it comprises one or more processor further, and the memory resource representated by storer 1132, can such as, by the instruction of the execution of processing element 1122, application program for storing.The application program stored in storer 1132 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1122 is configured to perform instruction, to perform the above method.
Device 1100 can also comprise the power management that a power supply module 1126 is configured to actuating unit 1100, and a wired or wireless network interface 1150 is configured to device 1100 to be connected to network, and input and output (I/O) interface 1158.Device 1100 can operate the operating system based on being stored in storer 1132, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art, at consideration instructions and after putting into practice disclosed herein disclosing, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (13)

1. a data capture method, is characterized in that, comprising:
User ID is parsed from the request of data that user sends;
Obtain the versions of data that described user ID is corresponding;
The data that described request of data asks are obtained according to described versions of data;
Described data are returned to user.
2. data capture method according to claim 1, is characterized in that,
Versions of data corresponding to the described user ID of described acquisition comprises:
Judge in memory database, whether to preserve versions of data corresponding to described user ID;
If preserve the versions of data that described user ID is corresponding in memory database, then in described memory database, obtain versions of data corresponding to described user ID.
3. data capture method according to claim 2, is characterized in that, also comprises:
If do not preserve versions of data corresponding to described user ID in memory database, then obtain default data version using as versions of data corresponding to described user ID.
4. data capture method according to claim 1, is characterized in that,
Describedly obtain according to described versions of data the data that described request of data asks and comprise:
Judge whether to there is the service server supporting described versions of data;
The service server of described versions of data is supported, then from the data supporting the service server of described versions of data to obtain described request of data to ask if existed.
5. data capture method according to claim 4, is characterized in that, also comprises:
If there is no the service server of described versions of data is supported, then from the data supporting the service server of default data version to obtain described request of data to ask.
6. data capture method according to claim 1, is characterized in that,
Describedly parse user ID and comprise from the request of data that user sends:
The IP address of user or cookie is parsed as described user ID from described request of data.
7. a data acquisition facility, is characterized in that, comprising:
Identification (RNC-ID) analytic unit, parses user ID in the request of data that sends from user;
Version acquiring unit, for obtaining versions of data corresponding to described user ID;
Data capture unit, for obtaining the data that described request of data is asked according to described versions of data;
Data return unit, for described data are returned to user.
8. data acquisition facility according to claim 7, is characterized in that, described version acquiring unit comprises:
Whether the first judgment sub-unit, preserve versions of data corresponding to described user ID for judging in memory database;
First obtains subelement, during for preserving versions of data corresponding to described user ID in memory database, obtains versions of data corresponding to described user ID in described memory database.
9. data acquisition facility according to claim 8, is characterized in that, described version acquiring unit also comprises:
Second obtains subelement, and during for not preserving versions of data corresponding to described user ID in memory database, the versions of data obtaining acquiescence is using as versions of data corresponding to described user ID.
10. data acquisition facility according to claim 7, is characterized in that, described data capture unit comprises:
, there is for judging whether the service server supporting described versions of data in the second judgment sub-unit;
3rd obtains subelement, for exist support the service server of described versions of data time, then from the data supporting the service server of described versions of data to obtain described request of data to ask.
11. data acquisition facilities according to claim 10, is characterized in that, described data capture unit also comprises:
4th obtains subelement, for when there is not the service server supporting described versions of data, and the data obtaining described request of data from supporting the service server of versions of data given tacit consent to and ask.
12. data acquisition facilities according to claim 7, is characterized in that, described identification (RNC-ID) analytic unit comprises:
Identification (RNC-ID) analytic subelement, for parsing the IP address of user or cookie as described user ID from described request of data.
13. 1 kinds of data acquisition facilities, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
User ID is parsed from the request of data that user sends;
Obtain the versions of data that described user ID is corresponding;
The data that described request of data asks are obtained according to described versions of data;
Described data are returned to user.
CN201410589547.XA 2014-10-28 2014-10-28 Data capture method and device Active CN104317914B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410589547.XA CN104317914B (en) 2014-10-28 2014-10-28 Data capture method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410589547.XA CN104317914B (en) 2014-10-28 2014-10-28 Data capture method and device

Publications (2)

Publication Number Publication Date
CN104317914A true CN104317914A (en) 2015-01-28
CN104317914B CN104317914B (en) 2018-07-31

Family

ID=52373146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410589547.XA Active CN104317914B (en) 2014-10-28 2014-10-28 Data capture method and device

Country Status (1)

Country Link
CN (1) CN104317914B (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104852986A (en) * 2015-05-28 2015-08-19 北京奇艺世纪科技有限公司 Method and device for providing newly-added function
CN105978976A (en) * 2016-05-13 2016-09-28 中国建设银行股份有限公司 Information processing system and method
CN106100927A (en) * 2016-06-20 2016-11-09 浪潮电子信息产业股份有限公司 A kind of method realizing the issue of SSR gray scale
CN106201577A (en) * 2016-06-27 2016-12-07 竞技世界(北京)网络技术有限公司 A kind of method and device updating Lua file
CN106649083A (en) * 2016-09-05 2017-05-10 中国农业银行股份有限公司 Application grey scale release method and equipment and application visit method and equipment
CN106708589A (en) * 2017-01-17 2017-05-24 浙江众合科技股份有限公司 Rail transit signal device upgrading method
CN106790742A (en) * 2016-11-23 2017-05-31 北京锐安科技有限公司 A kind of method and device of IP matchings
CN106921536A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 Data processing method and device based on client release information
CN107180036A (en) * 2016-03-09 2017-09-19 阿里巴巴集团控股有限公司 A kind of method for reading data and device
CN107302553A (en) * 2016-04-14 2017-10-27 阿里巴巴集团控股有限公司 The method and apparatus of user's migration
CN107341008A (en) * 2017-06-22 2017-11-10 上海艾融软件股份有限公司 Micro services gray scale dissemination method
CN107360010A (en) * 2016-05-09 2017-11-17 阿里巴巴集团控股有限公司 A kind of website gray scale dissemination method and device
CN107920112A (en) * 2017-11-01 2018-04-17 重庆金融资产交易所有限责任公司 Support configuration file method for pushing, central server and the storage medium of grayscale mode
CN108494876A (en) * 2018-04-12 2018-09-04 北京达佳互联信息技术有限公司 Realize method, apparatus, plug-in component equipment and the proxy server of service gray scale publication
CN108650318A (en) * 2018-05-10 2018-10-12 北京奇艺世纪科技有限公司 A kind of data capture method and device
CN108829413A (en) * 2018-05-07 2018-11-16 北京达佳互联信息技术有限公司 Data-updating method, device and computer readable storage medium, server
CN109062411A (en) * 2018-08-02 2018-12-21 维沃移动通信有限公司 A kind of screen luminance adjustment method and mobile terminal
CN109327537A (en) * 2018-11-12 2019-02-12 山东鲁能智能技术有限公司 Information interacting method, system and the management framework of multi-client
CN109766270A (en) * 2018-12-19 2019-05-17 北京万维之道信息技术有限公司 Project testing method and device, server, platform
CN110336874A (en) * 2019-07-03 2019-10-15 北京蜜莱坞网络科技有限公司 A kind of method, apparatus, server and the storage medium of access service
CN110799962A (en) * 2017-06-28 2020-02-14 乐威指南公司 System and method for replacing stored versions of media with versions more user-appropriate
CN114885030A (en) * 2022-06-02 2022-08-09 中国工商银行股份有限公司 Service calling method, device, equipment, storage medium and program product

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7509393B2 (en) * 2001-12-19 2009-03-24 International Business Machines Corporation Method and system for caching role-specific fragments
CN101466024A (en) * 2007-12-19 2009-06-24 上海亿动信息技术有限公司 Method and device for inserted playing of advertisement information when playing multimedia file on customer equipment
JP2009238079A (en) * 2008-03-28 2009-10-15 Hitachi Software Eng Co Ltd Program delivery management system and method
CN102624771A (en) * 2011-08-05 2012-08-01 北京小米科技有限责任公司 Client upgrading method
CN103001967A (en) * 2012-12-13 2013-03-27 北京奇虎科技有限公司 Source station server and business push method
CN103164202A (en) * 2011-12-15 2013-06-19 深圳市腾讯计算机系统有限公司 Release method and device of gray level
CN103581231A (en) * 2012-07-25 2014-02-12 腾讯科技(北京)有限公司 UGC primary standby data synchronization method and system thereof
CN103890723A (en) * 2011-07-20 2014-06-25 谷歌公司 Distribution of multiple application versions

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7509393B2 (en) * 2001-12-19 2009-03-24 International Business Machines Corporation Method and system for caching role-specific fragments
CN101466024A (en) * 2007-12-19 2009-06-24 上海亿动信息技术有限公司 Method and device for inserted playing of advertisement information when playing multimedia file on customer equipment
JP2009238079A (en) * 2008-03-28 2009-10-15 Hitachi Software Eng Co Ltd Program delivery management system and method
CN103890723A (en) * 2011-07-20 2014-06-25 谷歌公司 Distribution of multiple application versions
CN102624771A (en) * 2011-08-05 2012-08-01 北京小米科技有限责任公司 Client upgrading method
CN103164202A (en) * 2011-12-15 2013-06-19 深圳市腾讯计算机系统有限公司 Release method and device of gray level
CN103581231A (en) * 2012-07-25 2014-02-12 腾讯科技(北京)有限公司 UGC primary standby data synchronization method and system thereof
CN103001967A (en) * 2012-12-13 2013-03-27 北京奇虎科技有限公司 Source station server and business push method

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104852986A (en) * 2015-05-28 2015-08-19 北京奇艺世纪科技有限公司 Method and device for providing newly-added function
CN106921536A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 Data processing method and device based on client release information
CN107180036A (en) * 2016-03-09 2017-09-19 阿里巴巴集团控股有限公司 A kind of method for reading data and device
CN107302553B (en) * 2016-04-14 2020-11-06 创新先进技术有限公司 User migration method and device
CN107302553A (en) * 2016-04-14 2017-10-27 阿里巴巴集团控股有限公司 The method and apparatus of user's migration
CN107360010A (en) * 2016-05-09 2017-11-17 阿里巴巴集团控股有限公司 A kind of website gray scale dissemination method and device
CN105978976A (en) * 2016-05-13 2016-09-28 中国建设银行股份有限公司 Information processing system and method
CN106100927A (en) * 2016-06-20 2016-11-09 浪潮电子信息产业股份有限公司 A kind of method realizing the issue of SSR gray scale
CN106201577A (en) * 2016-06-27 2016-12-07 竞技世界(北京)网络技术有限公司 A kind of method and device updating Lua file
CN106201577B (en) * 2016-06-27 2019-06-14 竞技世界(北京)网络技术有限公司 A kind of method and device updating Lua file
CN106649083A (en) * 2016-09-05 2017-05-10 中国农业银行股份有限公司 Application grey scale release method and equipment and application visit method and equipment
CN106790742A (en) * 2016-11-23 2017-05-31 北京锐安科技有限公司 A kind of method and device of IP matchings
CN106708589A (en) * 2017-01-17 2017-05-24 浙江众合科技股份有限公司 Rail transit signal device upgrading method
CN107341008A (en) * 2017-06-22 2017-11-10 上海艾融软件股份有限公司 Micro services gray scale dissemination method
CN110799962A (en) * 2017-06-28 2020-02-14 乐威指南公司 System and method for replacing stored versions of media with versions more user-appropriate
CN110799962B (en) * 2017-06-28 2024-01-30 乐威指南公司 System and method for replacing a stored version of media with a version more suitable for a user
CN107920112B (en) * 2017-11-01 2022-04-22 重庆金融资产交易所有限责任公司 Configuration file pushing method supporting gray mode, central server and storage medium
CN107920112A (en) * 2017-11-01 2018-04-17 重庆金融资产交易所有限责任公司 Support configuration file method for pushing, central server and the storage medium of grayscale mode
CN108494876A (en) * 2018-04-12 2018-09-04 北京达佳互联信息技术有限公司 Realize method, apparatus, plug-in component equipment and the proxy server of service gray scale publication
CN108829413A (en) * 2018-05-07 2018-11-16 北京达佳互联信息技术有限公司 Data-updating method, device and computer readable storage medium, server
CN108650318B (en) * 2018-05-10 2021-04-30 北京奇艺世纪科技有限公司 Data acquisition method and device
CN108650318A (en) * 2018-05-10 2018-10-12 北京奇艺世纪科技有限公司 A kind of data capture method and device
CN109062411A (en) * 2018-08-02 2018-12-21 维沃移动通信有限公司 A kind of screen luminance adjustment method and mobile terminal
CN109327537B (en) * 2018-11-12 2021-03-09 山东鲁能软件技术有限公司智能电气分公司 Multi-client information interaction method, system and management system
CN109327537A (en) * 2018-11-12 2019-02-12 山东鲁能智能技术有限公司 Information interacting method, system and the management framework of multi-client
CN109766270A (en) * 2018-12-19 2019-05-17 北京万维之道信息技术有限公司 Project testing method and device, server, platform
CN110336874A (en) * 2019-07-03 2019-10-15 北京蜜莱坞网络科技有限公司 A kind of method, apparatus, server and the storage medium of access service
CN114885030A (en) * 2022-06-02 2022-08-09 中国工商银行股份有限公司 Service calling method, device, equipment, storage medium and program product

Also Published As

Publication number Publication date
CN104317914B (en) 2018-07-31

Similar Documents

Publication Publication Date Title
CN104317914A (en) Data acquiring method and device
US10412176B2 (en) Website access method, apparatus, and website system
CN110442524B (en) Method and device for testing web service interface with authentication authorization
CN106572173B (en) Configuration information updating method, device and system
CN104202360B (en) The method of accessed web page, device and router
CN109302461B (en) Information display method, information processing method, information display medium, information processing system and computing equipment
CN104778057A (en) Terminal system upgrading method and device, and server
CN105260299A (en) Method, device, and system for software test
CN105159833A (en) Automatic testing device and method
CN107688538B (en) Script execution method and device and computing equipment
CN105302710A (en) Method and apparatus for determining test case in need of regression testing
CN103428243A (en) Implementation method, device and system for static storage of dynamic webpage
US11243921B2 (en) Database expansion system, equipment, and method of expanding database
CN105743945A (en) Method and system for downloading files on the basis of switching download sources
CN104618388A (en) Quick registration and login method and corresponding reset server and information server
CN103338233A (en) Load balancing device, Web server, request information processing method and system
CN103823694A (en) Method and device for updating script file
CN110943876B (en) URL state detection method, device, equipment and system
CN111800511B (en) Synchronous login state processing method, system, equipment and readable storage medium
CN112491940B (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
US20210365520A1 (en) Webpage loading method, intermediate server and webpage loading system
CN113900663B (en) Data processing method and device
US9191445B2 (en) Systems and methods for managing emulation sessions
CN111338928A (en) Chrome-based browser testing method and device
CN113515447B (en) Automatic testing method and device for system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant