<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dominik Meyer on Medium]]></title>
        <description><![CDATA[Stories by Dominik Meyer on Medium]]></description>
        <link>https://medium.com/@dominik.meyer?source=rss-efa1b40cd42f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Dominik Meyer on Medium</title>
            <link>https://medium.com/@dominik.meyer?source=rss-efa1b40cd42f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 20:37:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dominik.meyer/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Data Infrastructure Architecture: OLAP, OLTP and HTAP]]></title>
            <link>https://techblog.unite.eu/data-infrastructure-architecture-olap-oltp-and-htap-e7ad25efd338?source=rss-efa1b40cd42f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7ad25efd338</guid>
            <category><![CDATA[data-architecture]]></category>
            <category><![CDATA[data-mesh-architecture]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[cloud-data-warehouse]]></category>
            <dc:creator><![CDATA[Dominik Meyer]]></dc:creator>
            <pubDate>Mon, 29 Apr 2024 07:58:12 GMT</pubDate>
            <atom:updated>2024-04-29T09:59:16.113Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="laying the stable foundation for a good architecture" src="https://cdn-images-1.medium.com/max/1024/1*tVpJf-Kkm4PYL83NFlT16g.jpeg" /><figcaption>“construction workers wearing suit and tie laying the foundation for a concrete pour of a large construction site, areal view” by DALL-E</figcaption></figure><h3>Motivation</h3><p>Classic data architecture and data infrastructure planning is based on the premise that there are two systems: the business-supporting transactional system and the analytical system that supports all secondary processes, such as business intelligence and data science including machine learning research. This article looks at this distinction and tries to answer if this premise is still valid under emerging cloud database technologies.</p><h3>Definitions</h3><p>As said in the previous section, the traditional view on data infrastructure architecture made the distinction between two workloads on a data system: 1. Transactions and 2. Analytics. Therefore, the common distinction classically made is in OLTP (OnLine Transaction Processing) and OLAP (OnLine Analytical Processing).</p><h3>OLTP</h3><p>The OLTP approach is very well suited to support operational data loads. These loads usually consist of optimized requirements for writes, inserts, updates and deletions which are atomic, consistent, isolated and durable (ACID). Therefore, the OLTP approach usually is record-oriented and needs support to modify single entities of data (e.g. rows). Also, the amount of data usually does not take historic development into consideration as no analytics of business developments are needed. Therefore, the amount of data in an OLTP setting is usually in the range of hundreds of gigabytes as opposed to terabytes in analytical contexts.</p><p>Speed is one key factor of database systems supporting an OLTP scheme. In the live business context, transactions need to be processed as fast as possible and in a consistent way ensuring data integrity. This factor of speed becomes even more apparent if the transactional data is no longer small transactions, but user input data to be provided on a platform, e.g. catalogs of entities. Here one would argue that a traditional relational database system is no longer suitable. However, the workload on single entities in those bigger chunks of data is still comparatively small and should be handled with utmost speed in processing in order to minimize delay for the customer.</p><p>Sometimes the analytical workload is also done on the transactional system itself. However, this comes at a cost: The system is optimized for the transactional workload and due to the structure the data is stored in, a lot of computation has to be invested for each query in order to aggregate results in the way they are useful for a business intelligence (BI) platform. Therefore, if OLTP systems are used for reporting and analytics directly, the OLTP system is sometimes replicated in a way with all the shortcomings of data structure but making sure the performance of the live system is not impacted.</p><h3>OLAP</h3><p>OLAP workloads on the other hand handle smaller amounts of large queries as opposed to a large amount of small queries. Timely processing is not so much critical as is proper handling of large amounts of data. These queries can run up to several minutes and be crunching large amounts of data (in the order of terabytes and more than 100 million records). Therefore, the architecture of the data stored in the OLAP system can be quite different from the transactional use case. Whereas in the latter duplication is avoided and most of the time normalized schemata are used, in OLAP data can be duplicated and transformed in such a way to support easy creation of dashboards or analytical reports that support drill down or slicing of data to get insights. One example could be viewing the data of all transactions aggregated by day, distributed over locations rather than having the individual transactions one by one in the database.</p><p>Due to the need for aggregated data, data stores are often columnar to support fast query operations (and hence often unsuitable to support ACID) whereas OLTP systems are record focused (row oriented).</p><p>Most of the time, the data from the OLTP system is extracted, transformed and then loaded (ETL (Extract Transform Load) or ELT (Extract Load Transform)) to the OLAP system for later analysis. This use case is also supported by building a historic record of transactions of the OLTP system that cannot be kept in the transaction system for the sake of speed, simplicity and consistence.</p><h3>Use Cases for Data Architecture and Data Infrastructure</h3><p>Each data architecture can have their very specific use cases. In the following sections, common example application cases are listed and described with requirements towards the supporting data architecture and technology. These examples are to be seen in the context of an online marketplace company that connects sellers and buyers through a common platform to offer goods and place orders, respectively. The core of the business is the online sourcing process, which includes services such as procurement optimization, cost savings and optimization of the supply chain. Those are complemented with additional services, such as compliance handling to offer the full procurement as a service experience for both buyers and sellers on the platform.</p><h3>Business Intelligence/Dashboarding</h3><p>The data architecture with respect to business intelligence (BI) clearly has all the requirements that were described in the OLAP section. That means having a lot of historical data available, having it prepared in a way to drill down to any dimensions and being able to filter through vast amounts of data. So, the requirements towards a data infrastructure supporting the BI use case are</p><ul><li>scalable storage for historical data in terms of transaction growth multiplied with time</li><li>scalable computation for processing large amounts of data for few queries</li><li>data structured on a per-entity level (e.g. customer, country, quarter, year, …)</li><li>aggregation alongside dimensions (e.g. sums over quarters)</li></ul><h3><strong>Process of Core Business: Transactions</strong></h3><p>As mentioned above, the core business is transaction-based in the purchasing process. This means a customer places an order, the order gets processed and modified and then after shipping and invoicing the order is finished. As a result, the requirements for the core business of transactions are clearly oriented on smaller transactional entities that are created and updated frequently. After a transaction is placed or an order finished, the data is no longer needed for fulfilling the core business (apart from archival processes). The requirements for supporting infrastructure from this use case are</p><ul><li>scalable storage in terms of transaction growth</li><li>relatively constant computation to handle the amount of transactions</li><li>data structure on a per-transaction level</li><li>fast turnaround times for modifying single entities with simple but frequent queries</li></ul><h3><strong>Process of Core Business: Catalogs</strong></h3><p>To support the core business of transactions, the customer has to choose articles from a range of catalogs offered on the platform. Therefore, a second part of the core business is based on catalog data processing. This data is supplied by vendors on the platform up to several times a day. Although the updates of this data are infrequent, the updates themselves are larger in size. Also, the processing for this type of data has challenges of computing statistics across multiple entities contained in a catalog (e.g. consistency checking). This use case manifests itself farther away from the classical transaction requirements and could fall more into the type of pipeline processing with big batches of data. Additionally, the process requires a fast read database to support the live customer queries from the user interface. Requirements are</p><ul><li>scalable storage and computation in terms of vendor growth</li><li>data structured on a per catalog level, when supporting the user interface on a per-article level</li><li>fast queries for searching and displaying individual element data</li><li>infrequent write access, frequent read access</li></ul><h3><strong>Customer Services Based on Data</strong></h3><p>Apart from the core business one could envision internal products purely based on the catalog and transaction data of customers. Think of specially tailored offerings, such as shopping bundles, as a representative of such a business-supporting internal product based heavily on data. Here several granularities and types of data have to be correlated and processed. On the one hand there is the catalog data that a customer could potentially find useful in their core assortment. On the other hand, for selecting the articles from the catalogs the customer can order from, general customer classification attributes as well as past transactions could be taken into account. The computation in this case could be envisioned to be taken offline but turnaround times for generating updated offerings are ideally fast (multiple times a day). The requirements here tend towards being similar to analytical use cases.</p><ul><li>scalable storage in terms of transactions, buyers and vendor growth</li><li>data structured at diverse granularities of articles, transactions and customers</li><li>long running very complex queries and computations not only supporting aggregating and transforming the data but supporting machine learning models and recommender systems</li><li>infrequent but very data heavy read access</li></ul><h3>BI/Dashboards for Customers</h3><p>Similar to internal dashboards, customers would also like to analyze their interactions on the platform and optimize their spending. To support this, a dashboard with their own history of transactions and interactions with the platform is necessary. A distinction from the general BI use case for internal actors is that the data is restricted to one customer’s data only and very likely the dashboards are pre-defined. This means that certain types of reports and visualizations are prepared by data analysts which can only be filtered and drilled down by the customer themselves. Therefore, no full capacity for correlating all data with all other data across customers and products is necessary. This, however, calls for similar capabilities of the supporting infrastructure as the internal BI use cases with the adaptation that most of the data for queries can be pre-calculated and pre-formatted to optimize for query performance and user experience. Requirements are</p><ul><li>scalable storage in terms of transactions</li><li>data structured clearly on a per-customer and per-view use case</li><li>moderately complex queries that should finish quickly in order to maximize user satisfaction which can be supported by pre-calculation and optimization</li><li>quick turnaround time for data ingestion with the possibility for incremental data update to provide the newest data</li></ul><h3>Machine Learning + Research</h3><p>In order to come up with new internal and external services and products based on data, the research and machine learning department has to develop prototypes that subsequently have to be put into production by feature teams. While the requirements on supporting infrastructure can be very different, the sources of data are the same. In the process of training and testing machine learning models, a research scientist needs potential access to a diverse portfolio of data sources in order to find the best features and transformations to support the solution. In most cases timely access and high performance queries are not directly necessary but can come in handy in accelerating the development process. For example, it could be envisioned that a machine learning engineer would like to have access to the full analytical database to pre-compute the data in such a form that it is easily usable for machine learning packages to be processed. In a lot of cases, however, the data is extracted once and then processed as a static dataset in order to observe the changes to the algorithm independent of the changes of the input data. This results in the requirements of</p><ul><li>scalable storage in terms of transactions, buyers and vendor growth</li><li>no clear pre-structuring of data definable and heavily dependent on the application</li><li>scalable computation to support running machine learning models</li><li>heavy and infrequent queries</li></ul><h3>A Hybrid View</h3><p>Looking at the diverse requirements from the above few example use cases stirs the wish for a unified platform which can support all of those workloads equally. Additionally, all secondary requirements such as governance, lineage and regulatory compliance would ideally be covered with one single and homogeneous mechanism. A new approach of fusing transactional and analytical data processing in one infrastructure emerged from this wish.</p><h3>HTAP</h3><p>Hybrid Transactional and Analytical Processing (HTAP) is currently emerging as an alternative to both above mentioned approaches OLAP and OLTP. HTAP tries to combine both workload schemes in one data platform and architecture. This is possible to envision due to the emergence of cloud technologies, where data and computing can be scaled independently and modern database technologies allow for quick querying of large amounts of data. This could be for example an in-memory database which tracks the transaction entries but at the same time is quick enough for processing large chunks of data in order to support the aggregation use case for business analytics. The same is valid for quickly scaling cloud database technologies where computation is detached from storage and can be scaled independently or even is transparently allocated on a query-to-query basis.</p><p>When looking into HTAP as a guiding principle for selecting and designing data infrastructure, the field of technologies and recommendations seems very uneven and sparse. The idea of HTAP itself is more out there as a future concept of leveraging different cloud technologies in a virtual data landscape but without a clear and widely consistent definition. Of course, every vendor of data technology promises to deliver benefits for all fields of data workloads but upon closer inspection the term seems to be — for now — not more than a marketing slogan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GyGw7KKlnAJ5pjiaPvkUMw.jpeg" /><figcaption>“business meeting reality” by DALL-E</figcaption></figure><h3>Discussion</h3><p>As attractive it seems to have one single hybrid data infrastructure, due to the technical differences, historical contexts and varied requirements it seems very difficult to lift all use cases to the same technical infrastructure. Many technologies are tailored to a very specific use case. For example, take a key-value store against a full-featured relational database. While the first might run in memory and is very quick in retrieving objects without any static schema attached, the latter supports a very structured access to row-oriented records with the high performance support to join across several tables in a type safe way.</p><p>Cloud database technologies seem to be a first path into truly having solutions that support a wide array of use cases in data. While they are mostly very scalable in terms of storage and computation independently, this does not come without compromise. If you take for example AWS Athena, which scales greatly for querying terabytes of data with a quick response time, this response time is still too slow for supporting interactive customer queries. Additionally, since the product is scaled up transparently on query load, the initial response time is very high and wastes a lot of resources for small and frequent queries. Most of the systems like this (that are very well suited for analytical data loads, for example) are based on object storage which restricts the flexibility in updating data and prevents frequent update access.</p><p>On the architecture side for a whole data architecture, however, the unification approach seems very well advised. The overall data strategy of a company should cover the transactional contexts as well as the analytical and machine learning context with one data governance and quality strategy. Ultimately, all data should be visible and discoverable in a unified supporting infrastructure that makes it easy to — for example — comply with regulatory requirements. The specific use case for a certain domain should be supported by specialized technology tailored to workloads there.</p><h3>Some Takeaways</h3><ul><li>Unify data in an architectural perspective — this means modeling, discoverability, lineage and governance — but be cautious on infrastructural unification of the diverse domains and requirements.</li><li>Just lifting an existing data store technology to the cloud would gain only little benefit. Operating cost likely would be higher compared to on-premise hosting and running a machine 24/7.</li><li>A real-time data store (like Apache Kafka) should not be used for permanent storage but rather either as a messaging system and/or ephemeral exchange of data products.</li><li>A specific cloud data store technology often has a narrow optimal purpose and use-case and should be only used for that.</li><li>Cloud vendor lock-in is to be considered when selecting technologies. It might be beneficial to use a hosted version of an open source technology that could be run on own infrastructure.</li><li>The flexibility of a cloud data store has its price. Sometimes such big flexibility and quick scaling are not necessary and other technologies could be simpler and cheaper to run.</li><li>If the overall data infrastructure should support multiple architectural patterns, the result is often that the overall infrastructure might be diverse. Think machine learning applications in a research context vs. dashboarding and reporting to customers. These workloads cannot be optimally supported by just one technology alone and care has to be taken to not opt for an infrastructure that supports all use cases in an equally bad way.</li></ul><p>References</p><ol><li><a href="https://www.youtube.com/watch?v=FtT_zn4D1YY">OLAP vs. OLTP — nullQueries</a></li><li>Gartner HTAP: <a href="https://www.gartner.com/peer-community/post/is-anyone-using-htap-style-solutions-as-a-strategic-data-platform-7249?ref=gcom-search&amp;var=a">https://www.gartner.com/peer-community/post/is-anyone-using-htap-style-solutions-as-a-strategic-data-platform-7249</a></li><li>Gartner 2024 Planning Guide for Data Management: <a href="https://www.gartner.com/document/4752631?ref=solrAll&amp;refval=382092475&amp;">https://www.gartner.com/document/4752631</a></li><li>Gartner Comparison of Data Stores to Support Modern Use Cases: <a href="https://www.gartner.com/document/4016669?ref=solrAll&amp;refval=382279085&amp;">https://www.gartner.com/document/4016669</a></li><li>Gartner Decision Point for selecting the right DBMS: <a href="https://www.gartner.com/document/4017055?ref=solrAll&amp;refval=382080180&amp;">https://www.gartner.com/document/4017055</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7ad25efd338" width="1" height="1" alt=""><hr><p><a href="https://techblog.unite.eu/data-infrastructure-architecture-olap-oltp-and-htap-e7ad25efd338">Data Infrastructure Architecture: OLAP, OLTP and HTAP</a> was originally published in <a href="https://techblog.unite.eu/">Unite tech blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>