{"id":3474,"date":"2023-07-08T02:13:02","date_gmt":"2023-07-08T02:13:02","guid":{"rendered":"https:\/\/www.clouddatainsights.com\/?p=3474"},"modified":"2023-07-08T02:13:06","modified_gmt":"2023-07-08T02:13:06","slug":"the-long-due-renewal-of-data-storage-for-accelerated-data-applications","status":"publish","type":"post","link":"https:\/\/www.clouddatainsights.com\/the-long-due-renewal-of-data-storage-for-accelerated-data-applications\/","title":{"rendered":"The Long Due Renewal of Data Storage for Accelerated Data Applications"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Depositphotos_8338420_S.jpg\" alt=\"\" class=\"wp-image-3493\" width=\"750\" height=\"500\" srcset=\"https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Depositphotos_8338420_S.jpg 1000w, https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Depositphotos_8338420_S-300x200.jpg 300w, https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Depositphotos_8338420_S-768x512.jpg 768w, https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Depositphotos_8338420_S-930x620.jpg 930w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\"><em>A unified storage solution holds the key to a transformed data management experience. Discover why data storage is a mess and how to fix it.<\/em><\/figcaption><\/figure><\/div>\n\n\n<p>We need to end the disaster of disparate storage in data engineering. We\u2019ve been so used to the complexities of multiple data sources and stores as isolated units, we consider it part of the process. Ask a Data Engineer what their usual day looks like, and you\u2019ll get an elaborate spiel on overwhelming pipelines with a significant chunk dedicated to integrating and maintaining multiple data sources.<\/p>\n\n\n\n<p>Having a single isolated lake is far from the desired solution. It eventually results in the same jumbled pipelines and swampy data- the two distinct nightmares of a data engineer. There is a dire need to rethink storage as a <strong>unified solution<\/strong>. Declaratively interoperable, encompassing disparate sources into a single unit with embedded governance, and independent to the furthest degree.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The Expensive Challenges of Data Storage<\/h3>\n\n\n\n<p>Let\u2019s all agree based on historical evidence, disruptive transformations end up costing us more time and resources than the theoretical plan and given the data domain is mined with rapidly evolving innovations, yet another disruption with distant promises is not ideally favourable for practical reasons.<\/p>\n\n\n\n<p>So instead, let\u2019s approach the problem with a product mindset to optimise storage evolution- what are the most expensive challenges of storage today, and how can they be pushed back non-disruptively?<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>ELT Bottlenecks:<\/strong> Access to data is very restrictive in prevalent data stacks, and a central engineering team has to step in as a mediator, even for minor tasks. The transformation necessary to make your data useful creates multiple dependencies on central engineering teams, who become high-friction mediators between data producers and consumers. Engineers burdened with open tickets in not uncommon, indefinitely stuck in patching up countless faulty pipelines.<\/li>\n<\/ul>\n\n\n\n<ul class=\"nv-cv-m wp-block-list\">\n<li><strong>Isolation of storage as a standalone unit<\/strong> Storage so far has only been treated in silos. Data is optimised specifically for applications or engines, which severely limits its usefulness. Analytical engines that it doesn\u2019t accommodate suffer from gruelling speed and expensive queries. Isolated sources also mean writing complex pipelines and workflows to integrate several endpoints. Maintaining the mass sucks out most of the engineer&#8217;s time, leaving next to no time for innovating profitable projects and solutions.<\/li>\n<\/ul>\n\n\n\n<ul class=\"nv-cv-m wp-block-list\">\n<li><strong>Cognitive Overload and Poor Developer Experience<\/strong> The consequence of the above two challenges is the extensive cognitive load which translates to sleepless nights for data engineers. Data engineers are not just restricted to plumbing jobs that deal with integrating countless point tools around data storage, but they are also required to repeatedly maintain and relearn the dynamic philosophies and patterns of multiple integrations.<\/li>\n<\/ul>\n\n\n\n<ul class=\"nv-cv-d nv-cv-m wp-block-list\">\n<li><strong>Dark Data<\/strong> The high-friction processes around data storage make accessing data at scale extremely challenging. Therefore, even if the organisation owns extremely rich data from valuable sources, they are unable to use it to power its business. This is called dark data- data with plausible potential but with no utilisation.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">The Necessary Paradigm: Unification of Data Storage<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Storage as a Unified Resource<\/h4>\n\n\n\n<p>If storage continues to be dealt with as scattered points in the data stack, given the rising complexity of pipelines and the growth spurt of data, the situation would escalate into broken, heavy, expensive, and inaccessible storage.<\/p>\n\n\n\n<p>The most logical next step to resolve this is a <strong>Unified Storage<\/strong> paradigm. This means a single storage port that easily interoperates with other data management tools and capability layers.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/9bcaD4CGRJ-MF__pZ94ks_hLrUFsY-I6-yLdQD69uU0mxr5ArNrvGZN25L9qikXu3crGNp11B5IzfhjPgkCU24uZ6ydwMDi41MMsX4g4B7Ee4ozzFc2pQLH-Wdq3flybb0cWNdetizpE0_0kTkiUCs8\" width=\"624\" height=\"827\"><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Unified Access<\/strong><\/h5>\n\n\n\n<p>Instead of disparate data sources to maintain and process, imagine the simplicity if there was just one point of management. No complication while querying, transforming, or analyzing because there\u2019s only one standardized connection that needs to be established instead of multiple integrations, each with a different access pattern, philosophy, or optimization requirement.<\/p>\n\n\n\n<ul class=\"nv-cv-d nv-cv-m wp-block-list\">\n<li><strong>Homogenous Access Plane<\/strong>: In prevalent storage systems, we deal with heterogeneous access ports with overwhelming pipelines, integration and access patterns, and optimization requirements. Data is almost always moved (expensive) to common native storage to enable fundamental capabilities such as discoverability, governance, quality assessment, and analytics. And the movement is not a one-time task, given the rate of change of data across the original sources.<br><br>In contrast, Unified Storage brings in a homogenous access plane. Both native and external sources appear as part of one common storage &#8211; a single access point to querying, analyzing, or transforming jobs. So even while the data sits at disparate sources, the user accesses it as if from one source with no data movement or duplication.<br><\/li>\n\n\n\n<li><strong>Storage-Agnostic Analytics<\/strong>: In prevalent systems, analytical engines are storage-dependent and data needs to be optimized specifically for the engines or applications. Without optimization, queries slow down to a grueling pace, directly impacting analytical jobs and business decisions. Often, data is optimized for a single application or engine, which makes it challenging for other applications to consume that data.<br><br>In contrast, with the unification of storage as a resource, data is optimized for consumption across engines (SQL, Spark, etc.), enabling analytical engines to become storage-agnostic. For example, DataOS, which uses Unified Storage as an architectural building block, has two query engines &#8211; Minerva (static query engine) and Themis (elastic query engine), designed for two distinct purposes, and multiple data processing engines, including Spark. However, all the engines are able to interact with the Unified Storage optimally without any need for specific optimization or special drivers and engines.<br><\/li>\n\n\n\n<li><strong>Universal Discoverability<\/strong>: In prevalent data stacks, data is only partially discoverable within the bounds of the data source. Users have an obligation to navigate to specific sources or move data to a central location for universal discovery.<br><br>On the contrary, Unified Storage is able to present virtualized views of data across heterogeneous sources. Due to metadata extraction from each integrated source, native or external, users are able to design very specific queries and get results from across their data ecosystem. They can look for data products, tables, topics, views, and much more without moving or duplicating data.<\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Unification through Modularization<\/strong><\/h5>\n\n\n\n<p>Most organizations, especially those at considerable scale, have the need to create multiple storage units, even natively, for separation of concerns, such as for different projects, locations, etc. This means building and maintaining storage from scratch for every new requirement. Over time, these separate units evolve into divergent patterns and philosophies.<\/p>\n\n\n\n<p>Instead, with Unified Storage, users create modular instances of storage with separately provisioned infrastructure, policies, and quality checks- all under the hood of one common storage with a single point of management. Even large organizations would have one storage resource to master and maintain, severely cutting down the cognitive load. Each instance of storage does not require bottom-up build or maintenance, just a single spec input to spin it up over a pre-existing foundation.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1022\" src=\"https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Modern-image-2-1024x1022.png\" alt=\"Visual representation of provisioning instances of unified stream and lakehouse within one common storage. Fastbase and Icebase are implementations of the unified stream and unified lakehouse, respectively.\" class=\"wp-image-3475\" srcset=\"https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Modern-image-2-1024x1022.png 1024w, https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Modern-image-2-300x300.png 300w, https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Modern-image-2-150x150.png 150w, https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Modern-image-2-768x767.png 768w, https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Modern-image-2-1536x1533.png 1536w, https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Modern-image-2-45x45.png 45w, https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Modern-image-2.png 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Visual representation of provisioning instances of unified stream and lakehouse within one common storage. Fastbase and Icebase are implementations of the unified stream and unified lakehouse, respectively.<\/figcaption><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Unified Streaming<\/strong><\/h5>\n\n\n\n<p>In existing storage constructs, streaming is often considered a separate channel and comes with its own infrastructure and tooling. There is no leeway to consume stream data through a single unified channel. The user is required to integrate disparate streams and optimize them for consumption separately. Each production and consumption point must adhere to the specific tooling requirements.<\/p>\n\n\n\n<p>Unified streaming allows direct connection and automated collection from any stream, simplifies transformation logic through standardized formats, and easily integrates historical or batch data with streams for analysis. An implementation of unified storage, such as Fastbase, supports Apache Pulsar format for streaming workloads. Pulsar offers a \u201cunified messaging model\u201d that combines the best features of traditional messaging systems like RabbitMQ and pub-sub (publish-subscribe) event streaming platforms like Apache Kafka.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Unified Data Governance and Observability<\/strong><\/h5>\n\n\n\n<p>We often see in existing data stacks how complex it is to govern data and data citizens on top of data management. This is because the current data stack is a giant web of countless tools and processes, and there is no way to infuse propagation of declarative governance and quality through such siloed systems. Let\u2019s take a look at how a Unified Architecture approaches this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1012\" height=\"1024\" src=\"https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Modern-image-3-1012x1024.png\" alt=\"Gateway communicates with the governance engine to get user tag information, the observability engine to get quality information, the infrastructure orchestrator to get cluster information, and Catalog for metadata.\" class=\"wp-image-3477\" srcset=\"https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Modern-image-3-1012x1024.png 1012w, https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Modern-image-3-297x300.png 297w, https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Modern-image-3-768x777.png 768w, https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Modern-image-3-1519x1536.png 1519w, https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Modern-image-3-45x45.png 45w, https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Modern-image-3.png 1582w\" sizes=\"(max-width: 1012px) 100vw, 1012px\" \/><figcaption class=\"wp-element-caption\">Gateway communicates with the governance engine to get user tag information, the observability engine to get quality information, the infrastructure orchestrator to get cluster information, and Catalog for metadata.<\/figcaption><\/figure>\n\n\n\n<ul class=\"nv-cv-d nv-cv-m wp-block-list\">\n<li><strong>Governance<\/strong>: In existing storage paradigms, Governance is undoubtedly an afterthought. It is rolled out per source and is restricted to native points. Additionally, there is an overload of credentials to manage for disparate data sources. Siloed storage is also not programmed to work with standard semantic tags for governance. Both masking and access policies for users or machines must be applied in silos.<br><br>In contrast, Unified Storage comes with inherent governance, which is automatically embedded for data as soon as it\u2019s composed into the unified storage resource, irrespective of native or external locations. Abstracted credential management allows users to \u201caccess once, access forever\u201d until access is revoked. Universal semantic tags enforce policies across all data sources, native or external. Implementation of tags at one point (say, the catalog), propagates the tag across the entire data stack.<br><\/li>\n<\/ul>\n\n\n\n<ul class=\"nv-cv-d nv-cv-m wp-block-list\">\n<li><strong>Observability &amp; Quality<\/strong>: Much like Governance, Observability has also remained an afterthought, rolled out at the tail end of data management processes, most often as an optional capability. Moreover, observability too exists in silos, separately enabled for every source. Prevalent storage constructs have no embedded quality or hygiene checks which is a major challenge when data is managed at scale. If something faults, it eats up resources over an unnecessarily complex route to root cause analysis (RCA).<\/li>\n<\/ul>\n\n\n\n<p>Unified storage has the ability to embed storage as an inherent feature due to high interoperability and metadata exposure from the storage resources and downstream access points such as analytical engines. Storage is no longer a siloed organ, but right in the middle of the core spine, aware of transmissions across the data stack. This awareness is key to speedy RCA, and, therefore, better experience for both data producers and consumers.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Enabling the Unified Storage Paradigm<\/h3>\n\n\n\n<p>Within the scope of this section, we\u2019ll cover how we\u2019ve established the unification of storage-as-a-resource through some of our native development initiatives.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Capabilities on top of Standard Lakehouse Format<\/strong><\/h4>\n\n\n\n<p>Icebase is a simple and robust cloud-agnostic lakehouse, built to empower modern data development. It is manifested using the Iceberg table format atop Parquet files inside an object store like Azure Data Lake, Google Cloud Storage, or Amazon S3. It provides the necessary tooling and integrations to manage data and metadata simply and efficiently, as well as inherent interoperability with capabilities spread across layers inside the unified architecture of the data operating system.<\/p>\n\n\n\n<p>While Icebase manages OLAP data, Fastbase supports Apache Pulsar format for streaming workloads. Pulsar offers a \u201cunified messaging model\u201d that combines the best features of traditional messaging systems like RabbitMQ and pub-sub (publish-subscribe) event streaming platforms like Apache Kafka.<\/p>\n\n\n\n<p>Users can provision multiple instances of Icebase and Fastbase for their OLAP, streaming, and real-time data workloads. Let&#8217;s look at how these storage modules solve the pressing problems of data development that we discussed before.<br><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Unified Access and Analytics<\/strong><\/h4>\n\n\n\n<p>A developer needs to avoid the hassle of pushing credentials into source systems or raising tickets for access every time before starting to engineer a new asset. At the same time, having robust and enforceable policies in place is necessary to prevent breaches in the security of both raw data and data products. Two resources within a data operating system &#8211; Depot and Policy &#8211; come together with Icebase to manage a healthy tradeoff between access and security.<\/p>\n\n\n\n<p>To add to this, Minerva &#8211; the querying engine of the DataOS &#8211; brings together unified access and on-demand computing to enable both technical &amp; non-technical users to achieve outcomes without concern about the heterogeneity of their current data landscape, thus significantly reducing iterations with IT.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Access and Addressability<\/strong><\/h4>\n\n\n\n<p>The unified storage architecture allows you to connect and access data from managed and unmanaged object storage by abstracting out various protocols and complexities of the source systems into a common taxonomy and route. This abstraction is achieved with the help of \u201cDepots\u201d, which can be comprehended as a registration for data locations to make them systematically available to the wider data stack.<\/p>\n\n\n\n<p>A depot assigns a unique address to every source system in a uniform format. This is known as the Universal Data Link (UDL), and it allows direct access to datasets without having to specify credentials again. dataos:\/\/[depot]:[collection]\/[dataset]<\/p>\n\n\n\n<p>In Pulsar, topics are the named channels for transmitting messages from producers to consumers. Taking this into account, any Fastbase UDL (Universal Data Link) within the DataOS is referenced as dataos:\/\/fastbase:&lt;schema_name&gt;\/&lt;dataset_name&gt;, where <em>dataset<\/em> is a pulsar topic. Similarly, an example Icebase UDL will look like dataos:\/\/icebase:retail\/city<\/p>\n\n\n\n<p>Depots have default access policies built in to ensure secure access for everyone in the organization. It is also possible to create custom access policies to access the depot and data policies for specific datasets within it. This is only for accessing the data, not moving or copying it.<\/p>\n\n\n\n<p>Being completely built on open standards, extending interoperability to non-native components outside the operating system is possible through standard APIs.<\/p>\n\n\n\n<p>Connection to a depot opens up access to all the capability layers inside a unified data architecture, including governance, observability, and discoverability. The depot is managed by a Depot Service which provides:<\/p>\n\n\n\n<ul class=\"nv-cv-d nv-cv-m wp-block-list\">\n<li>A single-point connection with analytics, observability, and discoverability layers<br><\/li>\n\n\n\n<li>Access to several native stacks, engines, and data apps. These can be considered as consumers of a depot.<br><\/li>\n\n\n\n<li>Pluggability with secret management systems, whether DataOS native or external. this helps you store credentials in the DataOS address itself. One can ask the stacks to use secrets with specific permissions e.g.<br><br>dataos:\/\/[depot]:[collection]\/[dataset]?acl=r | for read access<br>or<br>dataos:\/\/[depot]:[collection]\/[dataset]?acl=rw | for write access<br><\/li>\n\n\n\n<li>Data Definition Language (DDL) and Data Manipulation Language (DML) interfaces that power creating and managing (add\/remove columns, partitions) capabilities on the data and metadata that are connected through the depot.<br><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Analytics<\/strong><\/h4>\n\n\n\n<p>Minerva is an interactive query engine based on Trino. It allows users to query data through a single platform across heterogeneous data sources without needing to know each database&#8217;s specific configuration, query language, or data format.<\/p>\n\n\n\n<p>The unified data architecture enables users to create and tune multiple Minerva clusters as per the query workload, which helps in using your compute resources efficiently and scaling up or down depending on the demand flexibly. Minerva provides the ability to create and tune the necessary amount of compute.<\/p>\n\n\n\n<p>Say we want to find the customer(s) who made the highest order quantity purchases for any given product and the discount given to them, for which the data has to be fetched from two different data sources &#8211; an Azure MS-SQL and a PostgreSQL database. First, we\u2019ll create depots to access the two data sources and then a Minerva cluster. Once this is in place, we can seamlessly run queries across the databases, and tune our Minerva cluster according to the workload if necessary.<\/p>\n\n\n\n<p><strong>Creating Depots<\/strong><strong><br><\/strong>Write the following YAML files to connect two different data sources to the Unified Storage resource.<\/p>\n\n\n\n<p><strong>Microsoft Azure SQL Database Depot<\/strong><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"440\" src=\"https:\/\/lh3.googleusercontent.com\/atEim5h3nSjM-aBcA_wTvgYoMgPfmwa3UYKkncH0iTC-BPVNpHFmVJu_dvItObNuzXsn5JhWEc_CVeMdOBiq7zpT2PKCIzk2n0jUpOxo-d59YKU9-QR8IY5I6P3xKR_kQH9laOSn097BM7yE6MXdCwk\"><\/p>\n\n\n\n<p><strong>PostgreSQL Database<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/_pDirxq1ZKX42fEGJf05wQ0LsDw1fa1e4sBF_zYnov-f6BN3j2L-VNt6jMk8G1Vgs7YVnG0PqQYkB8DVN9HOBMZoDBzlMDZVC5OjYu3PTDoUwwu4zXNiM5cb2hZLNJpnjzXocdd3kuOBC_83pEFZebA\" alt=\"\"\/><\/figure>\n\n\n\n<p>Use the apply command in the CLI to create the Depot resource<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/6_zMRlYm3q18GvmPZmEsacKLTR0PoUC78-Yz-yicoZrfzI4R97vYaBMhgY1WTshLrZdPhbkt4t4rvTjn6Y0B0fMjkeqbbaeYKor3Zic8P3EuMCKzUQ-TBwXP3tYFpjJHpga9315L9OFI-5URjAMid3o\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/divnOATGXlcuO77H1ptgM7Aa4IjWO_uUjoZvPWBpGBcfFs1gnHs8wehSgAsWYiuy63wfRsNmWqSvJuUl6q4bTE3akG9iuCAvXzmQcrnE5P50j_n6T11pIkYcq8SYysg1EB9rDLYF4WHzIyNxHPF6uBE\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>Creating the Query Cluster<\/strong><strong><br><\/strong>To enhance the performance of your analytics workloads, choose appropriately sized clusters, or create a new dedicated cluster for your requirements. In this example, a new cluster is created.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/ElcSCWC2Q3gPf4oqAerOpZeGnX3qERjLsbWqSYl1Gwou-pD_PeOc4THPE2p6Y9D-uq6JmHu5oeVjhgjT2NDeMdNIga0IilWSwnPUrfwTKGKj6WLW1Ngp7Os2dbZVHKoTZ7KeUShKT3i5hkZ_RUZiph4\" alt=\"\"\/><\/figure>\n\n\n\n<p>Use the apply command to create the Cluster<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/ot9Fr9lopCR-rt92Ou7lFjUXmqGvpBYiR7Hhbiqz5a923v6X2Bh3uChqqP_NFhNCaEQWLv0_lNaMJtu23860spYWLKb91umjWtKE-ZLOI8JotX299hXJRzjgBPHreMkB92B5Cp4F79df86eSxj9EMq4\" alt=\"\"\/><\/figure>\n\n\n\n<p>Now, we can run the below query on two different data sources as if we are querying from a homogenous plane that hosts all tables from across these two sources. The results are shown here in Workbench, a native web-based analytics tool in DataOS.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/Ep1nyZdgZ9xuww5pYj4i6M3JgxOX82xQ_0ciyBeCa70Prhqghlf2DWSe4WzNcPd6tdQk8M-2f5_aWEhBcsScJb52WgAuZVbjhi-XKk_E1QWEUCCqn8vd4E2a57Qbe2VYpuywTcCjoOsIBvIUSBrWcCE\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/EtfOOOMs8eVmz2f4PjgWt5hYDcCvnIaIRV-z19KdLHqTcvrxKx4dcem8lcKoni8UV65nADMNo6HT8Cn3V78M5FAwbOkaPNwnTOMi9nN3iQEhqPvQXaNSBGbjQt0AFMEH577EyJhWgLylaA3ylmjWd2A\" alt=\"\"\/><\/figure>\n\n\n\n<p>Minerva (query engine) can perform query pushdowns for entire or parts of queries. In other words, it can push processing closer to the data sources for improved query performance.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Unified Governance and Management<\/strong><\/h4>\n\n\n\n<p>\u2018Policy\u2019 is an independent resource in a unified data architecture that defines rules of relationship between subjects (entities that wish to perform actions on a target), predicates (the action), and objects (a target). Its ABAC (attribute-based access control) implementation uses tags and conditions to define such rules, enabling coarse-grained role-based access to datasets and fine-grained access to individual items within the dataset.<\/p>\n\n\n\n<p>Tags, which can be defined for datasets and users, are used as attributes. As soon as a new source or asset is created, policies pertaining to its tags are automatically applied to them. Changing the scope of the policy is as simple as adding a new attribute or removing an existing one from the policy. Special attributes can be written into the policy and assigned to a specific user if the need for exceptions arises. The attribute-based definition makes it possible to create fewer policies to manage the span of data within an organisation, while also needing minimal changes during policy updates.<\/p>\n\n\n\n<p>For the purpose of enforcing policies across all data sources while accessing them, a Gateway Service sits like an abstraction above Minerva (query engine) clusters. Whenever a query is fired from any source (query tool, app, etc.), Gateway parses and formats the query before forwarding it to the Minerva cluster. After receiving the query, Minerva analyzes it and sends a decision request to Gateway for the governance to be applied. Gateway reverts with a decision based on user tags (received from the governance engine) and data-policy definition (which it stores in its own database &#8211; Gateway DB).<\/p>\n\n\n\n<p>Based on the decision, Minerva applies appropriate governance policy changes like filtering and\/or masking (depending on the dataset) and sends the final result set to Gateway. The final output is then passed to the source where the query was initially requested.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Ease of Operability and Data Management<\/strong><\/h4>\n\n\n\n<p>A unified storage architecture that provides advanced capabilities needs equally advanced maintenance. Thus, built-in capabilities to declaratively manage and maintain data and metadata files are a necessity.<\/p>\n\n\n\n<p>In Icebase or the lakehouse construct, these operations can be performed using a \u201cWorkflow\u201d &#8211; a declarative stack for defining and executing DAGs. The maintenance service in Workflow is offered through &#8220;<strong>actions<\/strong>&#8220;, which is defined in its own section within a YAML file. Below are examples of a few <strong>actions<\/strong> for seamless data management.<\/p>\n\n\n\n<p><strong>Rewrite Dataset<br><\/strong>Having too many data files leads to a large amount of metadata in manifest files, while small data files result in less efficient queries and higher file open costs. This issue can be resolved through <strong>compaction<\/strong>. Utilizing the rewrite_dataset <strong>action<\/strong>, the data files can be compacted in parallel within Icebase. This process combines small files into larger ones, reducing metadata overhead and file open costs during runtime. Below is the definition for the rewrite_dataset action.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/aHtntsBYCBmdK5t5rEoD1CdvL55vUgA42ya493w8bV_KbE7wqEeKUtk95UDOVgK8mad-4aBmqQ4VzbahlgHpNdqq-KwMKeHEkgPOfy50phyjJAfHTaHRcNSYHkjCL4GxaLYCwgv0meJHAJaMkKU5qj0\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>Expire Snapshots<\/strong><strong><br><\/strong>Writing to an Iceberg table in an Icebase depot creates a new snapshot of the table, which can be used for time-travel queries. The table can also be rolled back to any valid snapshot. Snapshots accumulate until the expire_snapshots action expires them. It is recommended to regularly expire snapshots to delete unnecessary data files and keep the size of the table metadata small.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/7sYoHrXUvvu8r9f6aHIoBwH1sv1-_YOBx-YhcVZGLuptqQRSfp_osG4GdnOvkQeAFRan7XfNgbJk3R4hSuR-RX76Q4Qzee7NCx8zoP15pbav2OkH_LJWQxRdvirJOI1SHYhrQgBIdt-Md9CauIpUAsg\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>Garbage Management<\/strong><strong><br><\/strong>While executing Workflows upon Icebase depots, job failures can leave files that are not referenced by table metadata, and in some cases, normal snapshot expiration may not be able to determine if a file is no longer needed and delete it. To clean up these \u2018orphan\u2019 files under a table location older than a specified timestamp, we can use the remove_orphans action.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/P5lVDCtTs--k5PSU9-ibwSRu5STdrfrg2-e4Oa-_P1ogiGP7Zg0ixJSiCwS0Wk8ChionJH91ZiVY46ZzzRrywT4paTTsh92Wa0U7sXz9lnh02Q52eeVz68h1DQ6AMGSNpCa7jAad5LR6hQv_5DQeaEc\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>Delete from Dataset<\/strong><strong><br><\/strong>The delete_from_dataset action removes data from tables. The action accepts a filter provided in the deleteWhere property to match rows to delete. If the delete filter matches entire partitions of the table, Iceberg format within the Icebase depot will perform a metadata-only delete. If the filter matches individual rows of a table, then only the affected data files will be rewritten. The syntax of the delete_from_dataset action is provided below:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/uUis_aYb_6lw6WdsxjJzO7usgXnVk8i0RTloZ6flQR26FcIAFvBEO_g7g4iJBn4X2jtXuYZVR7vOtY1QlhczISmbCvz7LZMieO6WsNicfkk5e-KfScAazjSgFqtKN0PMrsyBE8iQmdPV6F3Sd1lnzmQ\" alt=\"\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Time Travel<\/strong><\/h4>\n\n\n\n<p>Iceberg generates Snapshots every time a table is created or modified. To time travel, one needs to be able to list and operate over these snapshots. The lakehouse should provide simple tooling for the same. The Data Toolbox provides the functionality for metadata updating through the set_version action, using which one can update the metadata version to the latest or any specific version. This is done in two steps &#8211;<\/p>\n\n\n\n<ol class=\"nv-cv-d nv-cv-m wp-block-list\">\n<li>First, a YAML workflow is created, containing a Toolbox Job. A sample Toolbox Workflow is given below:<\/li>\n\n\n\n<li>The above workflow is then applied with the CLI<\/li>\n<\/ol>\n\n\n\n<p><strong>Using the CLI<\/strong><strong><br><\/strong>The CLI on top of a unified data architecture can be used to work directly with Snapshots and metadata. For example, a list of snapshots can be obtained with the following command &#8211;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/yhxVLSXJKjukBgwwpoz4ay5injOptVztYs2Oq5jHDsuS9_FlN1yfksa5bSG1SicXu-SxqoBDp269CE85XWHZMTQU5_53oDXZp0EULuiYYJ21sj3N_3Aj91UxToFoFbTfQ2nwoRjmDbb5aVsPLw7ooks\" alt=\"\"\/><\/figure>\n\n\n\n<p>To travel back, we can set a snapshot at the desired timestamp.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/8yuv-lgNGduRtXcT9lftoJOtnToDhRTODMPahcbxAhmkDTaLMQgWS864Ux54ygCj-MIRS5_IDpFqdPZJvfP-KEtelIXASmupEQTEo7Z3K8K3BBjxm9VHtLTSdD6tN5bczsKk_pwlGhdC7wkvuXZS8P0\" alt=\"\"\/><\/figure>\n\n\n\n<p>One can also list all metadata files, and metadata can also be set to the latest or some specific version using single-line commands.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Partitioning and Partition Evolution<\/strong><\/h4>\n\n\n\n<p>Partitioning is a way to make queries faster by grouping similar rows together when writing. We can use both the Workflow stack through a YAML file and the CLI to work with Partitions in Icebase. The following types of Partitions are supported: timestamp (year, month, day and hour) and identity (string and integer values).<\/p>\n\n\n\n<p>You can partition by timestamp, identity, or even create nested partitions. Below is an example of partitioning by identity.<\/p>\n\n\n\n<p>If the partition field type is identity type, the property \u2018name\u2019 is not needed.<\/p>\n\n\n\n<p>Workflow:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/s2i18BAn_syHjor9J7iDmo32adAWZXGspRCPDqPonERRpLLTxu_Occqe2_XsiASChkCZJLTUiLsJ7Ia257qprKo6_xhKPSUinaIGH2KnEMKYrNTrMOa9gwLWsqrwRvKFIOBMSNZqlutQQQfbdVWYjGA\" alt=\"\"\/><\/figure>\n\n\n\n<p>CLI:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/C-wproS7o0umahXibmSHRDKR5QTVa14hOro6v4MWbymgGBoh6mOcvrbKmpzmo2lH1ztTfwg5Gha-vhq5O1NbYfLkLkOCSpJDxQqLuXUXJJ07izZEs2ZKcaSU36v6CEQFmHri9uoJAMpwA2Xs1OgPljk\" alt=\"\"\/><\/figure>\n\n\n\n<p>Thanks to Iceberg, when a partition spec is evolved, the old data written with an earlier partition key remains unchanged, and its metadata remains unaffected. New data is written using the new partition key in a new layout. Metadata for each of the partition versions is kept separately. When you query, each partition layout\u2019s respective metadata is used to identify the files it needs to access; this is called split planning.<\/p>\n\n\n\n<p>Say, we are working on a table \u201cNY Taxi Data\u201d. The NY Taxi data has been ingested and is partitioned by year. When the new data is appended, the table is updated to partition the data by day. Both partitioning layouts can co-exist in the same table. The query need not contain modifications for the different layouts.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Summary<\/h3>\n\n\n\n<p>In essence, let\u2019s summarize with the understanding that siloed storage is a deal breaker when it comes to data management practices. In the article, we saw how data stored, accessed, and processed in siloes creates a huge cognitive overload for data developers as well as eats up massive resources. On the contrary, a unified storage paradigm bridges the gap between different capabilities essential to the data stack and helps users produce and consume data as if data were one big connective tissue. Users can access data through standardized access points, analyze it optimally without fretting about specific engines and drivers, and most essentially, rely on that data that arrives on their plate with embedded governance and quality essentials.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A unified storage solution holds the key to a transformed data management experience. Discover why data storage is a mess and how to fix it.<\/p>\n","protected":false},"author":82,"featured_media":3493,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_uag_custom_page_level_css":"","neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[16],"tags":[46,127],"class_list":["post-3474","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-architecture","tag-data-architecture","tag-data-storage"],"acf":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Depositphotos_8338420_S.jpg","uagb_featured_image_src":{"full":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Depositphotos_8338420_S.jpg",1000,667,false],"thumbnail":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Depositphotos_8338420_S-150x150.jpg",150,150,true],"medium":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Depositphotos_8338420_S-300x200.jpg",300,200,true],"medium_large":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Depositphotos_8338420_S-768x512.jpg",768,512,true],"large":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Depositphotos_8338420_S.jpg",1000,667,false],"1536x1536":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Depositphotos_8338420_S.jpg",1000,667,false],"2048x2048":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Depositphotos_8338420_S.jpg",1000,667,false],"alm-thumbnail":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Depositphotos_8338420_S-150x150.jpg",150,150,true],"neve-blog":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Depositphotos_8338420_S-930x620.jpg",930,620,true],"rpwe-thumbnail":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/06\/Depositphotos_8338420_S-45x45.jpg",45,45,true]},"uagb_author_info":{"display_name":"Animesh Kumar and Travis Thompson","author_link":"https:\/\/www.clouddatainsights.com\/author\/animesh-kumar-and-travis-thompson\/"},"uagb_comment_info":0,"uagb_excerpt":"A unified storage solution holds the key to a transformed data management experience. Discover why data storage is a mess and how to fix it.","_links":{"self":[{"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/posts\/3474"}],"collection":[{"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/users\/82"}],"replies":[{"embeddable":true,"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/comments?post=3474"}],"version-history":[{"count":7,"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/posts\/3474\/revisions"}],"predecessor-version":[{"id":3523,"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/posts\/3474\/revisions\/3523"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/media\/3493"}],"wp:attachment":[{"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/media?parent=3474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/categories?post=3474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/tags?post=3474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}