Embodiments relate generally to computer data systems, and more particularly, to methods, systems and computer readable media for computer data distribution architecture.
Some conventional computer data systems may maintain data in one or more data sources that may include data objects such as tables. These conventional systems may include clients that independently access tables from each data source directly. In such data systems, a need may exist to provide systems and methods for an optimized composite table data service providing flexible data routing and caching across the various data sources for one or more clients, in order to reduce memory usage and to enable redundancy, high-availability, scalability, and rule-based data discovery.
Embodiments were conceived in light of the above mentioned needs, problems and/or limitations, among other things.
Some implementations can include a computer database system with a plurality of memory devices optimized for ordered data and read-dominated workloads. The system can comprise one or more processors and computer readable storage coupled to the one or more processors, the computer readable storage having stored thereon instructions that, when executed by the one or more processors, cause the one or more processors to perform operations. The operations can include storing at a first data server computer first data in a first memory device in a first column-oriented configuration. The operations can also include storing at a second data server computer second data in a second memory device in a second column-oriented configuration. The operations can further include storing at a third data server computer the third data in a third memory device in a third column-oriented configuration. The operations can also include executing, at a query server computer, a database query, the query server computer comprising a query server memory device and being coupled to the first, second, and third data server computers.
The executing can include accessing a table comprising first and second columns, one or more first rows, and one or more second rows. The executing can also include storing one or more first location identifiers indicating where column data of the first column is stored and one or more second location identifiers indicating where column data of the second column is stored. The one or more first location identifiers can indicate that data of the one or more first rows of the first column is stored in the first memory device of the first data server computer. The one or more second location identifiers can indicate that data of the one or more first rows of the second column is stored in the second memory device of the second data server computer and that data of the one or more second rows of the second column is stored in the third memory device of the third data server computer. The executing can further include storing a table index comprising, for each location identifier of the one or more first location identifiers and the one or more second location identifiers, an index identifier indicating a valid portion of the data at the location indicated by the location identifier. The first memory device, the second memory device, and the third memory device can all be different from each other.
The executing can also include requesting one or more blocks of data of the first column from the first data server computer and requesting one or more blocks of data of the second column from the second or third data server computer. The executing can further include requesting one or more blocks of data of the second column from the second data server computer and requesting one or more blocks of data of the second column from the third data server computer. The executing can also include requesting one or more blocks of data of the one or more first rows from the first or second data server computers and requesting one or more blocks of data of the one or more second rows from the third data server computer. The executing can further include requesting one or more blocks of data of the one or more first rows from the first data server computer and requesting one or more blocks of data of the one or more first rows from the second data server computer. The first memory device can be a transitory memory device and the second memory device can be a persistent memory device. The one or more first location identifiers can indicate that data of the one or more second rows of the first column is stored in the query server memory device of the query server computer.
Some implementations can include a method optimized for ordered data and read-dominated workloads of a computer data system with a plurality of memory devices. The method can include storing at a first data server computer first data in a first memory device in a first column-oriented configuration. The method can also include storing at a second data server computer second data in a second memory device in a second column-oriented configuration. The method can further include storing at a third data server computer the third data in a third memory device in a third column-oriented configuration. The method can also include executing, at a query server computer, a database query, the query server computer comprising a query server memory device and being coupled to the first, second, and third data server computers.
The executing can include accessing a table comprising first and second columns, one or more first rows, and one or more second rows. The executing can also include storing one or more first location identifiers indicating where column data of the first column is stored and one or more second location identifiers indicating where column data of the second column is stored. The one or more first location identifiers can indicate that data of the one or more first rows of the first column is stored in the first memory device of the first data server computer. The one or more second location identifiers can indicate that data of the one or more first rows of the second column is stored in the second memory of the second data server computer and that data of the one or more second rows of the second column is stored in the third memory of the third data server computer. The executing can further include storing a table index comprising, for each location identifier of the one or more first location identifiers and the one or more second location identifiers, an index identifier indicating a valid portion of the data at the location indicated by the location identifier.
The executing can also include requesting one or more blocks of data of the first column from the first data server computer and requesting one or more blocks of data of the second column from the second or third data server computer. The executing can further include requesting one or more blocks of data of the second column from the second data server computer and requesting one or more blocks of data of the second column from the third data server computer. The executing can also include requesting one or more blocks of data of the one or more first rows from the first or second data server computers and requesting one or more blocks of data of the one or more second rows from the third data server computer. The executing can further include requesting one or more blocks of data of the one or more first rows from the first data server computer and requesting one or more blocks of data of the one or more first rows from the second data server computer. The first memory device can be a transitory memory device and the second memory device can be a persistent memory device. The first memory device, the second memory device, and the third memory device can all be different from each other. The one or more first location identifiers can indicate that data of the one or more second rows of the first column is stored in the query server memory device of the query server computer.
Some implementations can include a nontransitory computer readable medium having stored thereon software instructions that, when executed by one or more processors, cause the processors to perform operations. The operations can include storing at a first data server first data in a first memory device in a first column-oriented configuration. The operations can also include storing at a second data server second data in a second memory device in a second column-oriented configuration. The operations can also include storing at a third data server the third data in a third memory device in a third column-oriented configuration. The operations can further include executing, at a query server, a database query, the query server comprising a query server memory device and being coupled to the first, second, and third data servers.
The executing can include accessing a table comprising first and second columns, one or more first rows, and one or more second rows. The executing can also include storing one or more first location identifiers indicating where column data of the first column is stored and one or more second location identifiers indicating where column data of the second column is stored. The one or more first location identifiers can indicate that data of the one or more first rows of the first column is stored in the first memory device of the first data server. The one or more second location identifiers can indicate that data of the one or more first rows of the second column is stored in the second memory device of the second data server and that data of the one or more second rows of the second column is stored in the third memory device of the third data server. The executing can further include storing a table index comprising, for each location identifier of the one or more first location identifiers and the one or more second location identifiers, an index identifier indicating a valid portion of the data at the location indicated by the location identifier
The executing can also include requesting one or more blocks of data of the first column from the first data server; and requesting one or more blocks of data of the second column from the second or third data server. The executing can further include requesting one or more blocks of data of the second column from the second data server; and requesting one or more blocks of data of the second column from the third data server. The executing can also include requesting one or more blocks of data of the one or more first rows from the first or second data server; and requesting one or more blocks of data of the one or more second rows from the third data server. The executing can further include requesting one or more blocks of data of the one or more first rows from the first data server; and requesting one or more blocks of data of the one or more first rows from the second data server. The first memory device can be a transitory memory device and the second memory device can be a persistent memory device. The first memory device, the second memory device, and the third memory device can all be different from each other. The one or more first location identifiers can indicate that data of the one or more second rows of the first column is stored in the query server memory device of the query server.
Reference may be made herein to the Java programming language, Java classes, Java bytecode and the Java Virtual Machine (JVM) for purposes of illustrating example implementations. It will be appreciated that implementations can include other programming languages (e.g., groovy, Scala, R, Go, etc.), other programming language structures as an alternative to or in addition to Java classes (e.g., other language classes, objects, data structures, program units, code portions, script portions, etc.), other types of bytecode, object code and/or executable code, and/or other virtual machines or hardware implemented machines configured to execute a data system query.
The application host 102 can include one or more application processes 112, one or more log files 114 (e.g., sequential, row-oriented log files), one or more data log tailers 116 and a multicast key-value publisher 118. The periodic data import host 104 can include a local table data server, direct or remote connection to a periodic table data store 122 (e.g., a column-oriented table data store) and a data import server 120. The query server host 106 can include a multicast key-value subscriber 126, a performance table logger 128, local table data store 130 and one or more remote query processors (132, 134) each accessing one or more respective tables (136, 138). The long-term file server 108 can include a long-term data store 140. The user data import host 110 can include a remote user table server 142 and a user table data store 144. Row-oriented log files and column-oriented table data stores are discussed herein for illustration purposes and are not intended to be limiting. It will be appreciated that log files and/or data stores may be configured in other ways. In general, any data stores discussed herein could be configured in a manner suitable for a contemplated implementation.
In operation, the input data application process 112 can be configured to receive input data from a source (e.g., a securities trading data source), apply schema-specified, generated code to format the logged data as it's being prepared for output to the log file 114 and store the received data in the sequential, row-oriented log file 114 via an optional data logging process. In some implementations, the data logging process can include a daemon, or background process task, that is configured to log raw input data received from the application process 112 to the sequential, row-oriented log files on disk and/or a shared memory queue (e.g., for sending data to the multicast publisher 118). Logging raw input data to log files can additionally serve to provide a backup copy of data that can be used in the event that downstream processing of the input data is halted or interrupted or otherwise becomes unreliable.
A data log tailer 116 can be configured to access the sequential, row-oriented log file(s) 114 to retrieve input data logged by the data logging process. In some implementations, the data log tailer 116 can be configured to perform strict byte reading and transmission (e.g., to the data import server 120). The data import server 120 can be configured to store the input data into one or more corresponding data stores such as the periodic table data store 122 in a column-oriented configuration. The periodic table data store 122 can be used to store data that is being received within a time period (e.g., a minute, an hour, a day, etc.) and which may be later processed and stored in a data store of the long-term file server 108. For example, the periodic table data store 122 can include a plurality of data servers configured to store periodic securities trading data according to one or more characteristics of the data (e.g., a data value such as security symbol, the data source such as a given trading exchange, etc.).
The data import server 120 can be configured to receive and store data into the periodic table data store 122 in such a way as to provide a consistent data presentation to other parts of the system. Providing/ensuring consistent data in this context can include, for example, recording logged data to a disk or memory, ensuring rows presented externally are available for consistent reading (e.g., to help ensure that if the system has part of a record, the system has all of the record without any errors), and preserving the order of records from a given data source. If data is presented to clients, such as a remote query processor (132, 134), then the data may be persisted in some fashion (e.g., written to disk).
The local table data server 124 can be configured to retrieve data stored in the periodic table data store 122 and provide the retrieved data to one or more remote query processors (132, 134) via an optional proxy (e.g., table data cache proxy (TDCP) 394 and/or 404 as shown in FIG. 3 and
The remote user table server (RUTS) 142 can include a centralized consistent data writer, as well as a data server that provides processors with consistent access to the data that it is responsible for managing. For example, users can provide input to the system by writing table data that is then consumed by query processors.
The remote query processors (132, 134) can use data from the data import server 120, local table data server 124 and/or from the long-term file server 108 to perform queries. The remote query processors (132, 134) can also receive data from the multicast key-value subscriber 126, which receives data from the multicast key-value publisher 118 in the application host 102. The performance table logger 128 can log performance information about each remote query processor and its respective queries into a local table data store 130. Further, the remote query processors can also read data from the RUTS, from local table data written by the performance logger, or from user table data read over NFS, for example.
It will be appreciated that the configuration shown in
The production client host 202 can include a batch query application 212 (e.g., a query that is executed from a command line interface or the like) and a real time query data consumer process 214 (e.g., an application that connects to and listens to tables created from the execution of a separate query). The batch query application 212 and the real time query data consumer 214 can connect to a remote query dispatcher 222 and one or more remote query processors (224, 226) within the query server host 1208.
The controller host 204 can include a persistent query controller 216 configured to connect to a remote query dispatcher 232 and one or more remote query processors 228-230. In some implementations, the persistent query controller 216 can serve as the “primary client” for persistent queries and can request remote query processors from dispatchers, and send instructions to start persistent queries. For example, a user can submit a query to 216, and 216 starts and runs the query every day. In another example, a securities trading strategy could be a persistent query. The persistent query controller can start the trading strategy query every morning before the market opened, for instance. It will be appreciated that 216 can work on times other than days. In some implementations, the controller may require its own clients to request that queries be started, stopped, etc. This can be done manually, or by scheduled (e.g., cron jobs). Some implementations can include “advanced scheduling” (e.g., auto-start/stop/restart, time-based repeat, etc.) within the controller.
The GUI/host workstation can include a user console 218 and a user query application 220. The user console 218 can be configured to connect to the persistent query controller 216. The user query application 220 can be configured to connect to one or more remote query dispatchers (e.g., 232) and one or more remote query processors (228, 230).
In operation, processor 324 can execute remote query processor 322 which stores/accesses data in high speed memory 326, high speed memory 336, medium access speed memory 346, and slow access speed storage 354. High speed memory 326 and high speed memory 336 can be memory on the same or different memory devices.
High speed memory 326 can contain one or more query update graphs 328, one or more table indexes 330, in memory data 332, and recent data cache 334. High speed memory 326 can request and retrieve data from one or more slow access speed storages 355 and/or from high speed memory 336.
High speed memory 336 can be memory that is shared with one or more remote query processors 322 and/or one or more table data cache proxies (e.g., TDCP 392 and 404, as shown in
Medium access speed memory 346 can contain one or more data columns, for example, symbol column data 348, a date column data 350, a time column data 352, and a quote column data 354. Medium access speed memory 346 can exchange data with high speed memory 336 and can transmit data to a slow access speed storage 355. In some embodiments, medium access speed memory 346 is RAM that resides on a remote host, administered by a remote process (e.g., DIS 120, LTDS 124, or RUTS 142).
Slow access speed storage 355, for example, a file server with one or more hard drives, can contain persistent column data, for example, a symbol column 358, a date column 360, a time column 362, and a quote column 364. The one or more persisted column data 358-364 can be copied into medium speed solid state storage 356, for example, flash, to provide faster access for more frequently accessed data. In some embodiments, slow access speed storage 355 is used by long-term file server 108.
In some embodiments, remote query processor 322 can access a table having column data of two or more columns of the table stored in different memory devices and/or data servers. In some such embodiments, column data of a column (i.e., different rows or groups of rows) can also be stored in different memory devices and/or data servers. Processor 322 can store/access identifiers indicating where column data of the columns/rows is stored. Processor 322 can also store/access one or more table indexes associated with the table that identify for that table the valid portion(s) of the data referenced by the location identifier (e.g., the portions of the data which correspond to the rows of that table). For example, in some embodiments, a first portion of column data can be stored in shared memory with TDCP 336, a second portion of column data can be stored in medium speed memory 346, and a third portion of column data can be stored in slow speed storage 355, for the same or different columns of a table.
In some embodiments, TDCP 404 exports a composite table data service composed of multiple filtered remote table data services. In some embodiments, each of data sources 120, 124, and 142 exports a table data service via a messaging protocol and TDCP 404 is configured to export a composite table data service composed of the table data services of the data sources via a messaging protocol. The composite table data service of TDCP 404 can be composed of the services of data sources 120, 124, and 142 that are filtered and/or combined at a table-location level. A given “location” for a table may be provided by a single, non-composite service, but a client-visible table might be composed of locations from multiple underlying sources and the composite table data service of TDCP 404 provides data from the multiple underlying sources to a client (e.g., RQP 412/414 via TDCP clients 408/410), filtered and/or combined as appropriate.
In some embodiments, TDCP 404 is coupled to multiple of one or more of the different types of data sources 120, 124, and 142. In some such embodiments, the multiple data sources can provide the same data. The composite table data service of TDCP 404 can be configured to reconnect to any of the data sources that can provide the same data, and upon reconnection any in-progress requests are re-sent and any subscriptions are renewed.
In some embodiments, LTDS 124 provides access to un-merged real-time data from previous time periods (e.g., from the same storage systems to which current-period data is persisted by DIS 120). In some such embodiments, LTDS 124 can be used as a stop-gap (i.e., alternate data source) when issues prevent timely completion of the merge operations that transform, validate, and promote periodic data.
In some embodiments, the messaging protocol is identical for data sources 120, 124, and 142. In some such embodiments, the messaging protocol for TDCP 404 is identical to that of the data sources. In some embodiments, the messaging protocol of the data sources 120, 124, and 142 and/or the messaging protocol of TDCP 404 is built on top of one or more other networking protocols (e.g., TCP/IP).
In some embodiments, TDCP 404 is configured to serve as an aggregator of subscriptions by RQP 412/414 to the same metadata updates and/or requests for individual data and/or metadata items. TDCP 404 is configured to cache data and/or metadata received from data servers 120, 124, and 142 in cache 406.
In some embodiments, cache 406 comprises data blocks indexed by {{namespace, table name, table type}, {internal partition, column partition}, {column name, column file type, offset}} or, more generally, {table key}, {table location key}, {column block key}. Data blocks in cache 406 may be evicted (e.g., based on a modified LRU policy) at any time when they are not actively in-use. If more data becomes available (e.g., as implied by table size change notifications), the missing region of an already-cached data block can be read when a client requests the block in question. Successful data block read requests provide at least as much data as requested, but may provide more if the block has grown and the source can provide an additional suffix.
In some embodiments, cache 406 is indexed per-source. Each bottom-level table data service uses either the filesystem (which may be remote or local) or at most one actively-connected server, and maintains its own index of which location data it has. All caches within a given process generally share the same pool of free/managed data block memory-space, but this is configurable. The engine code deals with table locations, which have location-level metadata, per-column location-level metadata, and buffer stores associated with each relevant column file. The buffer store handles block indexing and presents the engine with byte-oriented access, which is then translated to cell-oriented access by an intermediate level of the engine code.
In embodiments, system 400 is configured such that TDCP 404 is authoritative for data stored in cache 406 from at least one of data sources 120, 124, and 142. Cache 406 includes data requested by the clients of TDCP 404, and different TDCPs with different attached clients/workloads will have different caches. Additionally, because of the underlying model for data updates used by data sources such as 120 and 124 in some embodiments (repeatable reads by virtue of append-only data changes, in the real-time system), if cache 406 has a data block from one of those data sources, it has the correct (i.e., authoritative) data for that data block. If it has a partial data block, the range that it has is correct data for that range. TDCP 404 therefore doesn't have to worry about having its data invalidated by upstream changes.
In some embodiments, connections between data sources 120, 124, and 142 and TDCP 404 are authenticated (e.g., using ACL permissions) and/or encrypted.
In some embodiments, TDCP 404 can communicate with TDCP clients 408-410 via an inter-process communication (IPC) mechanism (e.g., sockets, shared memory, memory mapped files, message passing, pipes, and/or message queues). For example, cache 406 can be stored in shared memory (e.g., shared memory 384 as shown in
Although not shown, in some embodiments, TDCP clients 408-410 and RQP 412-414 can be on a separate host (actual or virtual). In some such embodiments, data can be transmitted between TDCP 404 and TDCP clients 408-410 via a network.
In some embodiments, data may be transmitted between TDCP 404, data sources 120/124/142, TDCP clients 408-410, and RQP 412-414 using single and/or multipart messages.
In some embodiments, TDCP 404 and/or TDCP clients 408-410 maintain a separate cache (or a separate portion of the cache) for each RQP 412-414. In other embodiments, TDCP 404 and/or TDCP clients 408-410 can maintain separate and/or shared caches for RQP 412-414 (e.g., sharing a cache between two or more RQPs while maintaining a separate cache for a different RQP, or sharing one cache for all RQPs).
At 504, the TDCP determines whether the requested table data/metadata is in the TDCP local state (or cache such as, for example, shared RAM 336, shared memory 384, or cache 406 shown in
At 506 the TDCP requests the latest state and subscribes to updates for the table from one or more appropriate data servers (e.g., LTDS 124, DIS 120, and/or RUTS 142 shown in
At 508, the appropriate data servers distribute latest table state to the TDCP. The latest table state is received in response to the request(s) made by the TDCP at 506 and is stored in the TDCP cache. Processing continues to 510.
At 510, the TDCP filters/distributes the latest table state to the RQP. The latest table state can be filtered based on rules such as, for example, rules defining where data should come from (e.g., which data source is authoritative). Filtering can include removing metadata changes that aren't important to certain classes of downstream consumers (e.g., some TDCPs or RQPs might only want size changes, and/or might not want modifications after a certain time of day, and/or might not need to see all metadata fields). Additionally or alternatively, the TDCP can combine data related to two or more “downstream” table locations (with the same keys), and the filtering can include coalescing changes and only advertising them when (for example) a threshold (more than one, or all) number of the data sources being combined had advertised the same thing, thereby increasing the likelihood that data can be re-read promptly in the event of a subset of the data sources crashing or becoming partitioned away.
In some embodiments, the TDCP can be configured to optimize the performance of computer data access when multiple data servers each provide access to the same data by requesting the latest table state from two or more of the multiple data servers at 506 and by filtering the received/cached table state to generate a complete, non-duplicative composite table state that includes data/metadata from two or more of the multiple data servers. In such embodiments, the table state can include table locations and the TDCP can filter table locations to be distributed to the RQP to interleave table locations from the multiple data servers, thereby distributing subsequent data access across the multiple data servers. Processing continues to 512.
At 512, the TDCP listens to table updates from the data servers. Listening to table updates can include listening to table updates from data servers to which the TDCP has subscribed for updates. Processing continues to 514.
At 514, the TDCP distributes updates to subscribing RQP. The TDCP can operate as an aggregator of subscriptions for multiple RQP and upon receiving an update the TDCP can distribute the update to the subscribing RQP. For example, although not shown, two different RQP can subscribe to the TDCP to receive updates. In some embodiments, the updates can be filtered as described above at 510 before being distributed to subscribing RQP.
It will be appreciated that, although not shown, the subscribing RQP can cancel their subscription to stop receiving updates from the TDCP, that all subscriptions are cancelled for an RQP that disconnects, and that the TDCP may cancel its own data subscriptions and/or discard data it no longer needs for any RQP.
It will also be appreciated that 502-514 may be repeated in whole or in part. For example, 512-514 may be repeated to continuously provide table location updates to the subscribing RQP.
At 604, the TDCP determines whether the requested data is in the TDCP local state (or cache such as, e.g., shared RAM 336, shared memory 384, or cache 406 shown in
At 606 the TDCP requests table locations for the given table key from one or more appropriate data servers (e.g., LTDS 124, DIS 120, and/or RUTS 142 shown in
At 608. the TDCP receives table locations. The table locations are received in response to the request(s) made by the TDCP at 606 and are stored in the TDCP cache. Processing continues to 610.
At 610, the TDCP filters/distributes the table locations to the RQP. The table locations can be filtered based on rules such as, for example, rules defining where data should come from (e.g., which data source is authoritative). In some embodiments, the TDCP can be configured to optimize the performance of computer data access when multiple data servers each provide access to the same data by requesting table locations from two or more of the multiple data servers at 606 and by filtering the received/cached table locations to generate a complete, non-duplicative set of table locations that includes locations from two or more of the multiple data servers. In such embodiments, the TDCP can, for example, filter the table locations to be distributed to the RQP to interleave table locations from the multiple data servers, thereby distributing subsequent data access across the multiple data servers.
Additionally or alternatively, the TDCP can combine data received from data servers that provide access to the same data (e.g., by combining different portions to generate a complete, non-duplicative set as discussed above, by combining all data, or by including data received from one of the data servers and excluding data received from the other data servers), and the filtering can include coalescing changes and only advertising them when (for example) a threshold (more than one, or all) number of the data sources being combined had advertised the same thing, thereby increasing the likelihood that data can be re-read promptly in the event of a subset of the data sources crashing or becoming partitioned away. Processing continues to 612.
At 612, the TDCP listens to table updates from the data servers. Listening to table updates can include listening to table updates from data servers to which the TDCP has subscribed for updates. Processing continues to 614.
At 614, the TDCP distributes updates to subscribing RQP. The TDCP can operate as an aggregator of subscriptions for multiple RQP and upon receiving an update the TDCP can distribute the update to the subscribing RQP. For example, although not shown, two different RQP can subscribe to the TDCP to receive updates to table locations. In some embodiments, the updates can be filtered as described above at 610 before being distributed to subscribing RQP.
It will be appreciated that, although not shown, the subscribing RQP can cancel their subscription to stop receiving updates from the TDCP, that all subscriptions are cancelled for an RQP that disconnects, and that the TDCP may cancel its own data subscriptions and/or discard data it no longer needs for any RQP.
It will also be appreciated that 602-614 may be repeated in whole or in part. For example, 612-614 may be repeated to continuously provide table location updates to the subscribing RQP.
At 704, the TDCP determines whether the requested table location metadata is in the TDCP local state (or cache such as, e.g., shared RAM 336, shared memory 384, or cache 406 shown in
At 706 the TDCP requests table location metadata from one or more appropriate data servers (e.g., LTDS 124, DIS 120, and/or RUTS 142 shown in
At 708. the TDCP receives table location metadata. The table location metadata is received in response to the request(s) made by the TDCP at 706 and are stored in the TDCP cache. Processing continues to 710.
At 710, the TDCP filters/distributes the table location metadata to the RQP. The table location metadata can be filtered based on rules such as, for example, rules defining where data should come from (e.g., which data source is authoritative). Filtering can include removing metadata changes that aren't important to certain classes of downstream consumers (e.g., some TDCPs or RQPs might only want size changes, and/or might not want modifications after a certain time of day, and/or might not need to see all metadata fields). Additionally or alternatively, the TDCP can combine data related to two or more “downstream” table locations (with the same keys), and the filtering can include coalescing changes and only advertising them when (for example) a threshold (more than one, or all) number of the data sources being combined had advertised the same thing, thereby increasing the likelihood that data can be re-read promptly in the event of a subset of the data sources crashing or becoming partitioned away. Processing continues to 712.
At 712, the TDCP listens to table updates from the data servers. Listening to table updates can include listening to table updates from data servers to which the TDCP has subscribed for updates. Processing continues to 714.
At 714, the TDCP distributes updates to subscribing RQP. The TDCP can operate as an aggregator of subscriptions for multiple RQP and upon receiving an update the TDCP can distribute the update to the subscribing RQP. For example, although not shown, two different RQP can subscribe to the TDCP to receive updates to table location metadata. In some embodiments, the updates can be filtered as described above at 710 before being distributed to subscribing RQP.
It will also be appreciated that, although not shown, the subscribing RQP can cancel their subscription to stop receiving updates from the TDCP, that all subscriptions are cancelled for an RQP that disconnects, and that the TDCP may cancel its own data subscriptions and/or discard data it no longer needs for any RQP.
It will also be appreciated that 702-714 may be repeated in whole or in part. For example, 712-714 may be repeated to continuously provide table location metadata updates to the subscribing RQP (e.g. sending updates to table size as it changes).
At 804, the TDCP determines whether the requested column location metadata is in the TDCP local state (or cache such as, e.g., shared RAM 336, shared memory 384, or cache 406 shown in
At 806 the TDCP requests column location metadata from one or more appropriate data servers (e.g., LTDS 124, DIS 120, and/or RUTS 142 shown in
At 808. the TDCP receives column location metadata. The column location metadata is received in response to the request(s) made by the TDCP at 806 and are stored in the TDCP cache. Processing continues to 810.
At 810, the TDCP filters/distributes the column location metadata to the RQP. The column location metadata can be filtered based on rules such as, for example, rules defining where data should come from (e.g., which data source is authoritative). Column location metadata can also be filtered to eliminate updates of a nature not needed/requested by certain downstream consumers (e.g., grouping/indexing changes if the RQP/query doesn't use them). In some embodiments, filtering at 810 can include removing metadata changes that aren't important to certain classes of downstream consumers (e.g., some TDCPs or RQPs might only want size changes, and/or might not want modifications after a certain time of day, and/or might not need to see all metadata fields). Additionally or alternatively, the TDCP can combine data related to two or more “downstream” table locations (with the same keys), and filtering at 810 can include coalescing changes and only advertising them when (for example) a threshold (more than one, or all) number of the data sources being combined had advertised the same thing, thereby increasing the likelihood that data can be re-read promptly in the event of a subset of the data sources crashing or becoming partitioned away. Processing continues to 812.
At 812, the TDCP listens to table updates from the data servers. Listening to table updates can include listening to table updates from data servers to which the TDCP has subscribed for updates. Processing continues to 814.
At 814, the TDCP distributes updates to subscribing RQP. The TDCP can operate as an aggregator of subscriptions for multiple RQP and upon receiving an update the TDCP can distribute the update to the subscribing RQP. For example, although not shown, two different RQP can subscribe to the TDCP to receive updates to column location metadata. In some embodiments, the updates can be filtered as described above at 810 before being distributed to subscribing RQP.
It will be appreciated that, although not shown, the subscribing RQP can cancel their subscription to stop receiving updates from the TDCP, that all subscriptions are cancelled for an RQP that disconnects, and that the TDCP may cancel its own data subscriptions and/or discard data it no longer needs for any RQP.
It will also be appreciated that 802-814 may be repeated in whole or in part. For example, 812-814 may be repeated to continuously provide column location metadata updates to the subscribing RQP (e.g. sending updated column size as it changes).
At 904, the TDCP determines whether the requested column file metadata is in the TDCP local state (or cache such as, e.g., shared RAM 336, shared memory 384, or cache 406 shown in
At 906 the TDCP requests column file metadata from one or more appropriate data servers (e.g., LTDS 124, DIS 120, and/or RUTS 142 shown in
At 908. the TDCP receives column file metadata. The column file metadata is received in response to the request(s) made by the TDCP at 906 and are stored in the TDCP cache. Processing continues to 910.
At 910, the TDCP filters/distributes the column file metadata to the RQP. The column file metadata can be filtered based on rules such as, for example, rules defining where data should come from (e.g., which data source is authoritative). Column file metadata can be filtered, for example, to throttle the rate of change notification to the same frequency as other notifications such as table metadata (e.g., size) change notifications. Column file metadata can also be filtered to eliminate updates of a nature not needed/requested by certain downstream consumers. In some embodiments, filtering at 910 can include removing metadata changes that aren't important to certain classes of downstream consumers (e.g., some TDCPs or RQPs might not want modifications after a certain time of day, and/or might not need to see all metadata fields). Additionally or alternatively, the TDCP can combine data related to two or more “downstream” table locations (with the same keys), and filtering at 910 can include coalescing changes and only advertising them when (for example) a threshold (more than one, or all) number of the data sources being combined had advertised the same thing, thereby increasing the likelihood that data can be re-read promptly in the event of a subset of the data sources crashing or becoming partitioned away. Processing continues to 912.
At 912, the TDCP listens to table updates from the data servers. Listening to table updates can include listening to table updates from data servers to which the TDCP has subscribed for updates. Processing continues to 914.
At 914, the TDCP distributes updates to subscribing RQP. The TDCP can operate as an aggregator of subscriptions for multiple RQP and upon receiving an update the TDCP can distribute the update to the subscribing RQP. For example, although not shown, two different RQP can subscribe to the TDCP to receive updates to column file metadata. In some embodiments, the updates can be filtered as described above at 910 before being distributed to subscribing RQP.
It will be appreciated that, although not shown, the subscribing RQP can cancel their subscription to stop receiving updates from the TDCP, that all subscriptions are cancelled for an RQP that disconnects, and that the TDCP may cancel its own data subscriptions and/or discard data it no longer needs for any RQP.
It will also be appreciated that 902-914 may be repeated in whole or in part. For example, 912-914 may be repeated to continuously provide column file size updates to the subscribing RQP (e.g. sending updated column size as it changes).
At 1004, the TDCP determines whether the column file data is in the TDCP local state (or cache such as, e.g., shared RAM 336, shared memory 384, or cache 406 shown in
At 1006 the TDCP requests column file data from one or more appropriate data servers (e.g., LTDS 124, DIS 120, and/or RUTS 142 shown in
At 1008. the TDCP receives column file data. The column file data is received in response to the request(s) made by the TDCP at 1006 and are stored in the TDCP cache. Processing continues to 1010.
At 1010, the TDCP filters responses and/or distributes the column file data to the RQP. The column file data can be filtered based on rules such as, for example, rules defining where data should come from (e.g., which data source is authoritative when the data was requested from two or more sources). In some embodiments, the TDCP can be configured to optimize the performance of computer data access when multiple data servers each provide access to the same data by requesting different portions of the requested column file data from two or more of the multiple data servers at 606 and by filtering the responses to combine the different portions of column file data received from the multiple data servers into the column file data to be distributed to the RQP. In such embodiments, the TDCP can, for example, split the request across the multiple data servers, thereby distributing data access across the multiple data servers. In some embodiments, the TDCP or RQP may determine that requests for column file data follow a pattern (e.g., sequential access, striding, etc.) and prefetch one or more additional blocks or ranges of column file data from the appropriate data sources in order to enhance system performance by decreasing perceived latency and/or amortizing request costs. Processing continues to 1012.
At 1012, the TDCP listens to table updates from the data servers. Listening to table updates can include listening to table updates from data servers to which the TDCP has subscribed for updates. Processing continues to 1014.
At 1014, the TDCP distributes updates to subscribing RQP. The TDCP can operate as an aggregator of subscriptions for multiple RQP and upon receiving an update the TDCP can distribute the update to the subscribing RQP. For example, although not shown, two different RQP can subscribe to the TDCP to receive updates. In some embodiments, the updates can be filtered as described above at 1010 before being distributed to subscribing RQP.
It will be appreciated that, although not shown, the subscribing RQP can cancel their subscription to stop receiving updates from the TDCP, that all subscriptions are cancelled for an RQP that disconnects, and that the TDCP may cancel its own data subscriptions and/or discard data it no longer needs for any RQP.
It will also be appreciated that 1002-1014 may be repeated in whole or in part. For example, 1012-1014 may be repeated to continuously provide table location updates to the subscribing RQP.
In operation, the processor 302 may execute the application 310 stored in the memory 306. The application 310 can include software instructions that, when executed by the processor, cause the processor to perform operations for table data cache proxy processing in accordance with the present disclosure (e.g., performing one or more of 502-514, 602-614, 702-714, 802-814, 902-914, and/or 1002-1014 described above).
The application program 310 can operate in conjunction with the data section 312 and the operating system 304.
Although references have been made herein to tables and table data, it will be appreciated that the disclosed systems and methods can be applied with various computer data objects to, for example, provide flexible data routing and caching for such objects in accordance with the disclosed subject matter. For example, references herein to tables can include a collection of objects generally, and tables can include column types that are not limited to scalar values and can include complex types (e.g., objects).
It will be appreciated that the modules, processes, systems, and sections described above can be implemented in hardware, hardware programmed by software, software instructions stored on a nontransitory computer readable medium or a combination of the above. A system as described above, for example, can include a processor configured to execute a sequence of programmed instructions stored on a nontransitory computer readable medium. For example, the processor can include, but not be limited to, a personal computer or workstation or other such computing system that includes a processor, microprocessor, microcontroller device, or is comprised of control logic including integrated circuits such as, for example, an Application Specific Integrated Circuit (ASIC), a field programmable gate array (FPGA), a graphics processing unit (e.g., GPGPU or GPU) or the like. The instructions can be compiled from source code instructions provided in accordance with a programming language such as Java, C, C++, C#.net, assembly or the like. The instructions can also comprise code and data objects provided in accordance with, for example, the Visual Basic™ language, a specialized database query language, or another structured or object-oriented programming language. The sequence of programmed instructions, or programmable logic device configuration software, and data associated therewith can be stored in a nontransitory computer-readable medium such as a computer memory or storage device which may be any suitable memory apparatus, such as, but not limited to ROM, PROM, EEPROM, RAM, flash memory, disk drive and the like.
Furthermore, the modules, processes systems, and sections can be implemented as a single processor or as a distributed processor. Further, it should be appreciated that the steps mentioned above may be performed on a single or distributed processor (single and/or multi-core, or cloud computing system). Also, the processes, system components, modules, and sub-modules described in the various figures of and for embodiments above may be distributed across multiple computers or systems or may be co-located in a single processor or system. Example structural embodiment alternatives suitable for implementing the modules, sections, systems, means, or processes described herein are provided below.
The modules, processors or systems described above can be implemented as a programmed general purpose computer, an electronic device programmed with microcode, a hard-wired analog logic circuit, software stored on a computer-readable medium or signal, an optical computing device, a networked system of electronic and/or optical devices, a special purpose computing device, an integrated circuit device, a semiconductor chip, and/or a software module or object stored on a computer-readable medium or signal, for example.
Embodiments of the method and system (or their sub-components or modules), may be implemented on a general-purpose computer, a special-purpose computer, a programmed microprocessor or microcontroller and peripheral integrated circuit element, an ASIC or other integrated circuit, a digital signal processor, a hardwired electronic or logic circuit such as a discrete element circuit, a programmed logic circuit such as a PLD, PLA, FPGA, PAL, GP, GPU, or the like. In general, any processor capable of implementing the functions or steps described herein can be used to implement embodiments of the method, system, or a computer program product (software program stored on a nontransitory computer readable medium).
Furthermore, embodiments of the disclosed method, system, and computer program product (or software instructions stored on a nontransitory computer readable medium) may be readily implemented, fully or partially, in software using, for example, object or object-oriented software development environments that provide portable source code that can be used on a variety of computer platforms. Alternatively, embodiments of the disclosed method, system, and computer program product can be implemented partially or fully in hardware using, for example, standard logic circuits or a VLSI design. Other hardware or software can be used to implement embodiments depending on the speed and/or efficiency requirements of the systems, the particular function, and/or particular software or hardware system, microprocessor, or microcomputer being utilized. Embodiments of the method, system, and computer program product can be implemented in hardware and/or software using any known or later developed systems or structures, devices and/or software by those of ordinary skill in the applicable art from the function description provided herein and with a general basic knowledge of the software engineering and computer networking arts.
Moreover, embodiments of the disclosed method, system, and computer readable media (or computer program product) can be implemented in software executed on a programmed general purpose computer, a special purpose computer, a microprocessor, or the like.
It is, therefore, apparent that there is provided, in accordance with the various embodiments disclosed herein, methods, systems and computer readable media for computer data distribution architecture.
application Ser. No. 15/154,974, entitled “DATA PARTITIONING AND ORDERING” (Attorney Docket No. W1.1-10057) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/154,975, entitled “COMPUTER DATA SYSTEM DATA SOURCE REFRESHING USING AN UPDATE PROPAGATION GRAPH” (Attorney Docket No. W1.4-10058) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/154,979, entitled “COMPUTER DATA SYSTEM POSITION-INDEX MAPPING” (Attorney Docket No. W1.5-10083) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/154,980, entitled “SYSTEM PERFORMANCE LOGGING OF COMPLEX REMOTE QUERY PROCESSOR QUERY OPERATIONS” (Attorney Docket No. W1.6-10074) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/154,983, entitled “DISTRIBUTED AND OPTIMIZED GARBAGE COLLECTION OF REMOTE AND EXPORTED TABLE HANDLE LINKS TO UPDATE PROPAGATION GRAPH NODES” (Attorney Docket No. W1.8-10085) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/154,984, entitled “COMPUTER DATA SYSTEM CURRENT ROW POSITION QUERY LANGUAGE CONSTRUCT AND ARRAY PROCESSING QUERY LANGUAGE CONSTRUCTS” (Attorney Docket No. W2.1-10060) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/154,985, entitled “PARSING AND COMPILING DATA SYSTEM QUERIES” (Attorney Docket No. W2.2-10062) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/154,987, entitled “DYNAMIC FILTER PROCESSING” (Attorney Docket No. W2.4-10075) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/154,988, entitled “DYNAMIC JOIN PROCESSING USING REAL-TIME MERGED NOTIFICATION LISTENER” (Attorney Docket No. W2.6-10076) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/154,990, entitled “DYNAMIC TABLE INDEX MAPPING” (Attorney Docket No. W2.7-10077) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/154,991, entitled “QUERY TASK PROCESSING BASED ON MEMORY ALLOCATION AND PERFORMANCE CRITERIA” (Attorney Docket No. W2.8-10094) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/154,993, entitled “A MEMORY-EFFICIENT COMPUTER SYSTEM FOR DYNAMIC UPDATING OF JOIN PROCESSING” (Attorney Docket No. W2.9-10107) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/154,995, entitled “QUERY DISPATCH AND EXECUTION ARCHITECTURE” (Attorney Docket No. W3.1-10061) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/154,996, entitled “COMPUTER DATA DISTRIBUTION ARCHITECTURE” (Attorney Docket No. W3.2-10087) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/154,997, entitled “DYNAMIC UPDATING OF QUERY RESULT DISPLAYS” (Attorney Docket No. W3.3-10059) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/154,998, entitled “DYNAMIC CODE LOADING” (Attorney Docket No. W3.4-10065) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/154,999, entitled “IMPORTATION, PRESENTATION, AND PERSISTENT STORAGE OF DATA” (Attorney Docket No. W3.5-10088) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/155,001, entitled “COMPUTER DATA DISTRIBUTION ARCHITECTURE” (Attorney Docket No. W3.7-10079) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/155,005, entitled “PERSISTENT QUERY DISPATCH AND EXECUTION ARCHITECTURE” (Attorney Docket No. W4.2-10089) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/155,006, entitled “SINGLE INPUT GRAPHICAL USER INTERFACE CONTROL ELEMENT AND METHOD” (Attorney Docket No. W4.3-10063) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/155,007, entitled “GRAPHICAL USER INTERFACE DISPLAY EFFECTS FOR A COMPUTER DISPLAY SCREEN” (Attorney Docket No. W4.4-10090) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/155,009, entitled “COMPUTER ASSISTED COMPLETION OF HYPERLINK COMMAND SEGMENTS” (Attorney Docket No. W4.5-10091) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/155,010, entitled “HISTORICAL DATA REPLAY UTILIZING A COMPUTER SYSTEM” (Attorney Docket No. W5.1-10080) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/155,011, entitled “DATA STORE ACCESS PERMISSION SYSTEM WITH INTERLEAVED APPLICATION OF DEFERRED ACCESS CONTROL FILTERS” (Attorney Docket No. W6.1-10081) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/155,012, entitled “REMOTE DATA OBJECT PUBLISHING/SUBSCRIBING SYSTEM HAVING A MULTICAST KEY-VALUE PROTOCOL” (Attorney Docket No. W7.2-10064) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/351,429, entitled “QUERY TASK PROCESSING BASED ON MEMORY ALLOCATION AND PERFORMANCE CRITERIA” (Attorney Docket No. W2.11-10112) and filed in the United States Patent and Trademark Office on Nov. 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/813,142, entitled “COMPUTER DATA SYSTEM DATA SOURCE HAVING AN UPDATE PROPAGATION GRAPH WITH FEEDBACK CYCLICALITY” (Attorney Docket No. W2.12-10178) and filed in the United States Patent and Trademark Office on Nov. 14, 2017, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/813,127, entitled “COMPUTER DATA DISTRIBUTION ARCHITECTURE CONNECTING AN UPDATE PROPAGATION GRAPH THROUGH MULTIPLE REMOTE QUERY PROCESSORS” (Attorney Docket No. W3.9-10113) and filed in the United States Patent and Trademark Office on Nov. 14, 2017, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
application Ser. No. 15/813,119, entitled “KEYED ROW SELECTION” (Attorney Docket No. W4.6-10180) and filed in the United States Patent and Trademark Office on Nov. 14, 2017, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
While the disclosed subject matter has been described in conjunction with a number of embodiments, it is evident that many alternatives, modifications and variations would be, or are, apparent to those of ordinary skill in the applicable arts. Accordingly, Applicants intend to embrace all such alternatives, modifications, equivalents and variations that are within the spirit and scope of the disclosed subject matter.
This application is a continuation of U.S. application Ser. No. 15/154,996, entitled “Computer Data Distribution Architecture” and filed on May 14, 2016, which claims the benefit of U.S. Provisional Application No. 62/161,813, entitled “Computer Data System” and filed on May 14, 2015, which is incorporated herein by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
62161813 | May 2015 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 15154996 | May 2016 | US |
Child | 16547360 | US |