<?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 Y_Lu on Medium]]></title>
        <description><![CDATA[Stories by Y_Lu on Medium]]></description>
        <link>https://medium.com/@ellieberry0419?source=rss-7e6848370781------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yJyFjPUxRt9EpCH6bBBAAw.png</url>
            <title>Stories by Y_Lu on Medium</title>
            <link>https://medium.com/@ellieberry0419?source=rss-7e6848370781------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 14:49:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ellieberry0419/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[The backbone of Databricks — 3 key features]]></title>
            <link>https://medium.com/@ellieberry0419/the-backbone-of-databricks-3-key-features-f736cb20495f?source=rss-7e6848370781------2</link>
            <guid isPermaLink="false">https://medium.com/p/f736cb20495f</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Y_Lu]]></dc:creator>
            <pubDate>Thu, 15 Aug 2024 13:32:50 GMT</pubDate>
            <atom:updated>2024-08-15T13:48:04.065Z</atom:updated>
            <content:encoded><![CDATA[<h3>The backbone of Databricks — 3 key features</h3><p>Table of contents:</p><ul><li>2024 summit new features</li><li>Lakehouse architecture</li><li>Delta lake framework</li><li>Unity catalog goverance</li></ul><p>In the recent <strong>Databricks AI summit 2024</strong>, Databricks CEO Ali Ghodsi announced two exciting new features.</p><p>1.<strong>Unity Catalog</strong> has been open-sourced, enabling more organizations to leverage its robust data and AI governance capabilities across multiple clouds, data formats, and platforms. For more insights from leading companies, check out the comments here. <a href="https://www.databricks.com/blog/open-sourcing-unity-catalog">https://www.databricks.com/blog/open-sourcing-unity-catalog</a></p><p>2.<strong>Mosaic AI</strong> introduces several new features to enhance AI development, including the Agent Framework and Vector Search. These tools not only accelerate the development process but also improve management by integrating seamlessly with Unity Catalog for better governance and tracking.</p><p>Let’s start from the basic, the most essential and backbone of Databricks</p><p><strong>#1: Lakehouse architecture</strong></p><p><strong>The Databricks Lakehouse architecture</strong> is an evolution of the traditional data warehouse, <strong>combining the capabilities of both data warehouses and data lakes</strong>. Previously, data stacks were split between BI and AI use cases, but the Lakehouse merges them into a <strong>unified system</strong>, ensuring that teams have access to the most complete and up-to-date data for all their projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a5azOd4CttYLs-zQWQCqDw.png" /><figcaption>traditional data warehouse and data lake</figcaption></figure><p>The back engine of this data lakehouse architecture is <strong>storage layer, compute engine, transaction management and efficient data governace</strong>. For the storage, it supports different storage systems (e.g., Amazon S3, Azure Data Lake Storage, or Google Cloud Storage) to store raw and structured data in its native format, such as Parquet, ORC, or Delta Lake formats. Also it includes metadata layer, including schema, table definitions, and data partitions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oqHp9SVIojQNbRdIbCnMvQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JnD8u1ztFbvtam9JlkMTtw.png" /><figcaption>Databricks SQL engine performance</figcaption></figure><p>As we could see from the test, when the data size increase over 1TB, the power of Databricks SQL engine is obvious compared with other data warehousing solutions.</p><p><strong>#2: Delta Lake Framework</strong></p><p>The Delta Lake table format is a game-changer for storage on Databricks. Built on the efficient, columnar Parquet format, it enables ACID transactions and ensures reliable data retrieval through its transaction log.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6D3W7JIZZEjOTX0eqFEMGA.png" /></figure><p>Using the Delta format provides additional benefits like transaction logs and time travel. As Delta Lake acts as a management layer, it ensures ACID (atomic, consistent, isolated, and durable) transactions and version control by storing transaction log files. For instance, when saving a file in S3 (or ADLS2/GCS), you’ll find the data file accompanied by log files after each change.</p><pre>S3a://xx/silver/trade/trade_20240812.parquet<br>S3a://xx/silver/trade/_delta_log/000000001.json<br>S3a://xx/silver/trade/_delta_log/000000002.json<br>S3a://xx/silver/trade/_delta_log/000000003.json</pre><p>Here, the .json files are transaction logs stored in the _delta_log/ directory. You can use SQL queries with a version number or timestamp to track and access previous versions of the data.</p><pre># check different versions of file with version number or timestamp<br>SELECT * FROM delta.`S3a://xx/silver/trade/` VERSION AS OF &lt;versionNumber&gt;;<br>SELECT * FROM delta.`S3a://xx/silver/trade/` TIMESTAMP AS OF &#39;yyyy-MM-dd HH:mm:ss&#39;;</pre><p>When considering storage, it’s important to think about how to partition your data (over 1TB):</p><ol><li><strong>Partition by Time</strong>: This is a common practice. For example, you might use a format like 2024/08/trade to organize your data. Querying data from a specific month, such as WHERE month = &#39;08&#39;, helps reduce the number of rows scanned.</li><li><strong>Choose Low Cardinality Fields as Partition Keys</strong>: Select fields with fewer distinct values for partitioning. For instance, use ‘country’ instead of ‘user_id’, as the former typically has fewer unique values.</li><li><strong>Use Columnar Formats Like Parquet</strong>: Parquet is a columnar storage format that can significantly reduce the number of columns read, optimizing query performance.</li></ol><p><strong>Data pipeline with delta lake format</strong></p><p>Bronze layer (raw) -&gt; Silver layer (transform, normalised data models) -&gt; gold layer(reporting, aggregated, wide table)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5IVuFhqqppT67lII" /></figure><p>Databricks offers a more organized and trackable ETL process with the added benefits of ACID transactions and versioning. Additionally, its integration with various data sources helps mitigate vendor lock-in issues, providing greater flexibility and cost savings when architectural changes are needed.</p><p><strong>#3: Unity Catalog governance</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J393UFwaneVjq_EkeCXcPg.png" /></figure><p>Let’s look at an example to understand the concept of a three-level namespace in object hierarchy: Catalog.schema.table. For instance:</p><ul><li>Dev_catalog.silver.table_1</li><li>Prod_catalog.silver.table_2</li></ul><p>In this structure:</p><ul><li><strong>Level One: Catalog</strong> — Dev_catalog represents the highest level, used to organize datasets. It reflects organizational units such as development, production, or quality assurance (e.g., dev_catalog, prod_catalog, qa_catalog).</li><li><strong>Level Two: Schema</strong> — The second level, silver, is similar to schemas in a traditional database. It represents a specific use case, project, or team sandbox. In this context, it’s used to store raw data in an ETL pipeline.</li><li><strong>Level Three: Table</strong> — The third level is typically a table (e.g., table_1), but it can also include volumes, views, functions, or models that store data and AI objects.</li></ul><p>Aside from this three-level namespace, the unified goverance is also the bonus point as you could manage the policies and permissions across different connections and sources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IUvEc34ErvOm356EyHy5Tw.png" /></figure><h3><strong>Wrapping it up</strong></h3><p>Databricks has a speciality in data analytics and AI side, especially for businesses handling large volumes of data. To maximize the benefits of Databricks, it’s crucial to understand the key components of this powerful platform. The revolutionary <strong>Lakehouse architecture</strong>, combined with the robust <strong>Delta format</strong>, significantly enhances existing data solutions. Additionally, the open-source <strong>Unity Catalog</strong> represents a milestone in advancing collaborative work within Databricks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f736cb20495f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Solution Architect Associate 101]]></title>
            <link>https://medium.com/@ellieberry0419/aws-solution-architect-associate-101-5707df59e5f2?source=rss-7e6848370781------2</link>
            <guid isPermaLink="false">https://medium.com/p/5707df59e5f2</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[solution-architect]]></category>
            <dc:creator><![CDATA[Y_Lu]]></dc:creator>
            <pubDate>Fri, 26 Jul 2024 19:02:06 GMT</pubDate>
            <atom:updated>2024-07-26T19:03:12.475Z</atom:updated>
            <content:encoded><![CDATA[<p>Five key comparsions of AWS services to help you pass the exam</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2e-jdhAIFfSB1cIzVXIX6w.png" /></figure><p>How to design the three-tier architecture in considerations of secure, resilient, high-performing, cost-optimized?</p><p>What services to choose for data migrations with different data volumes and how to ensure scalabilty, security and accuracy?</p><p>Which storage or compute resources to choose for long-term usage and which for short spike usage?</p><p>Lots of different AWS services and scenarios will be shown in this exam. Always good practice to try to evaluate the design of architecture from these four aspects:</p><ul><li>Scalability</li><li>Security</li><li>Resilience</li><li>Cost</li></ul><p>Five Comparsions of AWS key services to help you understand their features and functionalities.</p><p>ALB VS NLB<br>CloudFront VS Global Accelerator<br>Transit Gateway VS NAT Gateway<br>SQS VS SNS<br>Aurora VS DynamDB</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jWJYgLjgcO_gwwfndJlxOQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2arhR0UIXMW29JrVPvLV5w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1uVmDZ_UgWEpbTptevFT6w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9WpthSHjWReTxYB4mFDaGg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*holYQExQ74nIyFaI-oJt7A.png" /></figure><p>Resources recommeded:<br>1. Exam Prep Standard Course: AWS Certified Solutions Architect — Associate (SAA-C03) （check part 4 domain explanation)</p><p><a href="https://explore.skillbuilder.aws/learn/course/14760/Exam%2520Prep%2520Standard%2520Course%253A%2520AWS%2520Certified%2520Solutions%2520Architect%2520-%2520Associate%2520%28SAA-C03%29">Self-paced digital training on AWS - AWS Skill Builder</a></p><p>2. Udemy</p><p><a href="https://www.udemy.com/course/aws-certified-solutions-architect-associate-saa-c03/?couponCode=ST3MT72524">https://www.udemy.com/course/aws-certified-solutions-architect-associate-saa-c03/?couponCode=ST3MT72524</a></p><p>3. Youtube videos you prefer</p><p>Happy learning and good luck with all your trials! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5707df59e5f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to boost your business with loyalty programs]]></title>
            <link>https://medium.com/@ellieberry0419/how-to-boost-your-business-with-loyalty-programs-8ed5d49b325b?source=rss-7e6848370781------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ed5d49b325b</guid>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[retail]]></category>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[loyalty-program]]></category>
            <dc:creator><![CDATA[Y_Lu]]></dc:creator>
            <pubDate>Sun, 09 Jun 2024 21:15:55 GMT</pubDate>
            <atom:updated>2024-06-09T21:16:56.361Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Are you still hesitating which </em><strong><em>Amex</em></strong><em> cards to choose from or thinking about when to grab the next free coffee in </em><strong><em>Pret</em></strong><em>?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*zEMUbBJZNJBV2dq5.jpg" /></figure><blockquote><em>Why some brands are so popular in daily life and it seems they have the magic to stimulate much more topics among people than other same type of businesses? Let’s dive into those pop brands and see why.</em></blockquote><p>Below are some successful loyalty programs nowadays and how they work in different methods. Six common methods mentioned here, points-based, tier-based, subsciption-based, referral program, cashback program and hybrid program (a mix of those mentioned).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8BNC9hbzDa_U8x24gBcT3w.png" /><figcaption>common types of loyalty programs</figcaption></figure><p>It is not hard to find that they have <strong><em>smarter ways</em> </strong>to interact with their customers and <strong><em>maintain this relationship</em></strong> by satisfying their needs.</p><ul><li>create one gaming system to add interaction chances with customers</li><li>provide the special gratis (free products/services/vouchers/cashback)</li><li>leave the space for more efforts and better services</li></ul><p>They provide rewards and special services to those customers who always purchase their goods or use their products (cards, platforms) that create revenue for them. <strong><em>Those good interactions between the brand and customers make the loyalty program successful.</em></strong></p><p>Normally, those rewards are free. People naturally prefer free products along with the emotional joy and excitement they bring. Just imagine how excited you are when you receive a free brownie you like though it is cheap. <strong><em>Zero-price effect and behaviour economics</em></strong><em> </em>shows theoratically that free items will trigger positive emotions on customers. People unconsciouly related this positive emotions with this brand and naturally go for this brand.</p><p>So here are three suggestions for your loyalty program to make the magical interactions with your customers.</p><ol><li>increase times of interaction</li><li>make your customers feel special and satisfy them with them good/services your business can provide.</li><li>leave the space for surprise</li></ol><p>Now, we know the secrets of those successful loyalty programs, so how to realize it technically based on your own business?</p><p>Let’s have a look at referral program for example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fOQae2ZRWbFFadpGrU_sQw.png" /><figcaption>the process chart of referral program</figcaption></figure><p>For example, 100 points is the target set for customers in this game. They need to make efforts by recommending your brand to friends to get these 100 points. Of couse, people will evaluate if it is worth to do so. So, you need to make sure that your rewards worth that effort.</p><p>After the successful referral, the emails will be sent both to referer and referee, and here is the good chance that you can make good interactions with your customers, making them feel happy and special. The content is important <strong><em>(make it fun and emphasive your value to them)</em></strong>and you need to make sure the reward is literally send to customers when you sent the email <strong><em>(otherwise they will disappoint and that is bad for brands impression)</em></strong>.</p><p>Since you are sending the points, valued as credit by customers, that is much better compared with ads emails with no benefits.</p><ul><li><strong>design the reward system and make it run as expected technically (literally receive the rewards 100 points)</strong></li><li><strong>get email communication content ready (increase good repetitions/ interactions)</strong></li><li><strong>make customers see the growth, enjoy the specialty (the rewards and special sevices make them feel they are cherished by the brand)</strong></li></ul><p>All in all, try to dig the most valuable part of your business to your customers and <strong><em>provide related gratis (products/services)</em></strong> for your loyalty program. <strong><em>Good and effective interactions</em></strong> are the keys to maintain the relationship with your customers and try to <strong><em>make the space for higher tier and better service </em></strong>because <strong><em>who do not want to be special and cherished?</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ed5d49b325b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon Redshift vs Snowflake]]></title>
            <link>https://medium.com/@ellieberry0419/amazon-redshift-vs-snowflake-f584726e6691?source=rss-7e6848370781------2</link>
            <guid isPermaLink="false">https://medium.com/p/f584726e6691</guid>
            <category><![CDATA[redshift]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[Y_Lu]]></dc:creator>
            <pubDate>Sun, 05 May 2024 09:59:47 GMT</pubDate>
            <atom:updated>2024-05-05T10:10:57.969Z</atom:updated>
            <content:encoded><![CDATA[<h3>Amazon Redshift vs Snowflake for your business</h3><blockquote><em>Let’s dive into two popular data warehouse solutions nowadays, Redshift and Snowflake. We will explore the key features and functionalities of them, and then compara these these two data warehouse services from 5 different aspects.</em></blockquote><p>Amazon redshift and snowflake are popluar choices when it comes to <strong>migrate your data warehouse from on-premise to cloud</strong>. But which one to choose for your business? Actually, it depends on different situation and use cases of your business. For example, the <strong>volume of your data</strong>, the <strong>performace and scalability</strong> you want. Also the <strong>costs and resouces</strong> you have or plan to invest into it. Some also consider the<strong> intergrations of other services</strong>, such as stroage, BI, ETL tools all need to be considered in this process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lofg7Z1FLXP4mfhPBA-xwQ@2x.jpeg" /><figcaption>Cornwall, UK</figcaption></figure><blockquote><strong>First of all, let us look at the architectures of these two services and see how it works.</strong></blockquote><p><strong>3 key features of Redshift</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*MNP2CAZ3-iDCpMfxLTlLUg@2x.jpeg" /><figcaption>the architecture of Redshift</figcaption></figure><ul><li><strong><em>Cluster, nodes and slices </em></strong><em><br></em>The core part of redshift data warehouse is a cluster that includes one or more compute nodes. It has two nodes typically, leader node and compute node.</li><li><strong><em>Columnar storage</em></strong><br>Columnar storage could enhance query performance for analytical workloads significantly. It only need a third of I/O operations compared with row-wise storage for the same number of records. Also, Redshift use a block size of 1MB that increase efficiency compared with typical database with around 20 KB size.</li><li><strong><em>Workload management</em></strong><br>Redshift is expected to be used by multiple users and concurrency is important in this case. Amazon Redshift workload management (WLM) enables users to manage priorities and create queues with certain memory allocation, concurrency limits and timeouts, so short queries will not get stuck behind long-running queries. Normally, manual WLM has a concurrency of 5, but the queue can be configured to have maximum concurrency level of 50.</li></ul><p><strong>3 key features of Snowflake</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kc6XMLQ7Oz0JLEFEW_uGmA.png" /><figcaption>the architecture of Snowflake</figcaption></figure><p>Snowflake is a cloud based warehouse solution with 3 layers separated, <strong>compute, storage and service layer</strong>. 3 unique features worth to be mentioned are virtual warehouses, data sharing, and multi-cluster compute.</p><ul><li><strong><em>Virtual warehouse</em></strong><br>It is worth to mention that virtual warehouses is used to separate compute resources and cache, in this case it could provide excellent resilience when facing different workloads requirement.</li><li><strong><em>Data sharing</em></strong><br>Snowflake has a built-in data sharing feature so users can share data in real time without coping or moving it. It enables collaboration between different parties and enhances the security.</li><li><strong><em>Multi-cluster compute<br></em></strong>This multi-cluster resources provide near limitless compute resources. It could automatically scales upa nd down to eliminate concurrency issue. The single engine is even easier to regulate.</li></ul><blockquote>Then, let us compare the features of Redshift and Snowflake from different aspects.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EblxO8aK-GfjOFqnd1aBvw.png" /></figure><p>Because the differences in Redshift and Snowflake architectures, they have different performances when it come to different workloads.</p><p><strong><em>So which services to choose for your business?</em></strong></p><p>In real-life cases, many small company need to do data migration to cloud warehouses when they businees expands. For example, if one e-commerce company experiences a huge increase in data volume from multi sources, such as sales transcations, website interactions and customers data. they need a more scalable and cost-effective solution ot store, manage and analyze insights for business decision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BBdkw3n7O81XlDEF6lIRsw.png" /><figcaption>Services along with Redshift</figcaption></figure><p>In this case, if the company already has many existing services in aws cloud, probably they would choose redshift for its excellent integration with other AWS services such as S3, AWS Glue. It also depends on company size, workload requirements to choose on-demand or reservered instance to optimize the spending.</p><p>While other company may benefit more from Snowflake. Below is one real-life cases of <strong>How Cisco optimized performance on Snowflake to reduce costs 15%</strong>:<br><a href="https://manickaraja-39901.medium.com/how-we-cisco-optimized-performance-on-snowflake-to-reduce-costs-15-138a9a799ff6">https://manickaraja-39901.medium.com/how-we-cisco-optimized-performance-on-snowflake-to-reduce-costs-15-138a9a799ff6</a></p><p>In summary, both Amazon Redshift and Snowflake offer strong performance and cost-effectiveness for analytics workloads, but the optimal choice depends on factors such as specific requirements, budget, and preferences for architecture and pricing model. It is important to discuss the factors such as scalability, flexibility, and ease of management in your tech workflow and then choose the perfect suit for your business.</p><p>Reference：<br><a href="https://towardsdatascience.com/amazon-redshift-architecture-b674513eb996">https://towardsdatascience.com/amazon-redshift-architecture-b674513eb996</a><br><a href="https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html">https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html</a><br><a href="https://www.snowflake.com/en/data-cloud/what-is-data-cloud/">https://www.snowflake.com/en/data-cloud/what-is-data-cloud/</a><br><a href="https://www.snowflake.com/en/data-cloud/what-is-data-cloud/data-cloud-architecture/">https://www.snowflake.com/en/data-cloud/what-is-data-cloud/data-cloud-architecture/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f584726e6691" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS S3 storage types and comparsions]]></title>
            <link>https://medium.com/@ellieberry0419/amazon-s3-storage-solution-144834648acd?source=rss-7e6848370781------2</link>
            <guid isPermaLink="false">https://medium.com/p/144834648acd</guid>
            <category><![CDATA[data-engineer]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Y_Lu]]></dc:creator>
            <pubDate>Wed, 03 Apr 2024 16:12:16 GMT</pubDate>
            <atom:updated>2024-04-08T21:47:02.918Z</atom:updated>
            <content:encoded><![CDATA[<p>— find the best storage solution for your business</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*GorLAd8R2TqcKzmnLzy1Lg.png" /></figure><p>There are many different types of data and we use some of them in higher frequency like in daily ETL process, but some we only access to few times in month or year which may store to train Machine learning models or for complience needs.</p><p>Based on the frequency of accessing the data, we could devide them into cold data, warm data and hot data. <strong>Cold data </strong>is data that is not frequently accessed but mandatory to store for long for compliance, logs and governance or we may need those historical data for future development, like training Machine Learning models. <strong>Warm data</strong> is data accessed relatively frequently but with no certain latency requirement, such as ETL jobs, or data used for ad hoc query and data discovery. <strong>Hot data </strong>is data we use on a daily basis, and low-latency, high-performance access to the data is important. Services like Amazon Redshift and Amazon Quicksight are common targets for hot data.</p><p>In the cloud, we need to consider the right choice to store these data. Might be Amazon Redshift for a high performance hot data access, while data lakes would be a cost and scalability way for large amounts of data.</p><p>First, we will look at the normal <strong>S3 storage types</strong> with their use cases and pricing. Afterwards will also introduce<strong> Amazon S3 lifecycle rules </strong>that set your own storage changing plans<strong> </strong>and <strong>S3 intelligent tier</strong> that automatically optimize your storage costs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*iJPx-8dR3CZ7W_WhDT9auQ.png" /><figcaption>S3 storage types</figcaption></figure><p>Below can give you some sense of how they cost, but for more pricing details. Check here: <a href="https://aws.amazon.com/s3/pricing/?p=pm&amp;c=s3&amp;z=4">https://aws.amazon.com/s3/pricing/?p=pm&amp;c=s3&amp;z=4</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*Ik63g0ugA4xoQFWW3DAHvg.png" /><figcaption>pricing of different storage types</figcaption></figure><p><strong>Amazon S3 lifecycle and intelligent tiering</strong></p><p>When you have your own business decisions, you could also create a <strong>lifecycle rule depending on your specific cases</strong>. For example, one zara shop only uses the recent 3 months sales data frequently. So you can <strong>configure a lifecycle rule </strong>to automatically move data in the sales prefix of the bucket to Infrequent Access or Glacier Instant Retrieval storage access.</p><p>Besides, amazon provides an intelligent service to help you optimize your data storage solution. The difference between these two is the lifecycle based on the number of days since the object was created, while intelligent tiering is moved between tiers based on last accessed time.</p><p>In Intelligent Tiering, the default would be Frequent Access tier. If not accessed in 30 days, it will move to the Infrequent Access tier. If not accessed in 90 consecutive days, then Archive Instant Access tier. If one object in the Infrequent Access and Archive tier is accessed, then it will move back to the Frequent Access tier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*VjaqG56rAqrFLIRJda1U6g.png" /><figcaption>working mechanism of S3 Intelligent Tiering</figcaption></figure><p>For the pricing part, we could see S3 Standard-Infrequent Access and Glacier Archive classes also have a cost per GB of data retrieved, compared with S3 standard and S3 intelligent tiering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*2sZVpneIbDlfLdqBFIXmVg.png" /></figure><p>There are trade-offs between <strong>storage costs, data retrieval costs and time required to access data that has been archived</strong>. However, overall it is highly recommended to use the <strong>S3 intelligent tiering</strong> as this can lead to significant cost optimzation with little effort.</p><p><strong>Unlock your business value by finding the right storage solution for your valuable data.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=144834648acd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Four data metrics for your ingestion project in AWS]]></title>
            <link>https://medium.com/@ellieberry0419/four-data-metrics-for-your-ingestion-project-in-aws-e33afcc3bff5?source=rss-7e6848370781------2</link>
            <guid isPermaLink="false">https://medium.com/p/e33afcc3bff5</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[metrics]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Y_Lu]]></dc:creator>
            <pubDate>Wed, 27 Mar 2024 17:11:26 GMT</pubDate>
            <atom:updated>2024-03-27T17:11:26.476Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Four data aspects</strong> to consider and evaluate if you have an ingestion work by hand</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*c2x_HqxEMt2PMoizjn4qSQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*ac4kE3Mz_EC9sLZXfQnEUg.png" /><figcaption>template to plan and evaluate</figcaption></figure><p><strong>Data volume: the total size of data <br> — </strong>existing data + daily/monthly/yearly of data<br>Think: <br>1. What would be the cost of this ingestion job? <br>Understand the historical and future data help to budget better for associated costs.</p><p><strong>Data velocity:</strong> <strong>the speed</strong> <strong>of ingestion job</strong><br> — the speed we expected to ingest and process new data from source system into our target system<br>Think:<br>1.what is the frequency of source data? on a schedule or real-time streaming data?<br>2.what kind of insights do you want to see? Need insights from 24 hours after it is generated or need to see insights in near real time?</p><p><strong>Data veracity: the quality of data </strong>(completeness and accuracy)<br>Think:<br>1.how to validate data that comes from different sources?<br>2.how to deal with the existing problem, such as dealing with missing data?</p><p><strong>Data value: the value of the end data product.<br></strong>Think: What this ingestion project brings to the business? <br>It costs a lot to ingest and process TB of data. Devote your time and money to the valuable data product.</p><p>Case study: BMW groups<br><a href="https://aws.amazon.com/solutions/case-studies/bmw-group-case-study/">https://aws.amazon.com/solutions/case-studies/bmw-group-case-study/</a></p><h3>Unlock your business value by planing, learning and evaluating.</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e33afcc3bff5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ELT Project London Bus Safety Performance — 2]]></title>
            <link>https://medium.com/@ellieberry0419/elt-project-london-bus-safety-performance-2-40b2ccaca077?source=rss-7e6848370781------2</link>
            <guid isPermaLink="false">https://medium.com/p/40b2ccaca077</guid>
            <category><![CDATA[etl]]></category>
            <category><![CDATA[data-warehouse]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Y_Lu]]></dc:creator>
            <pubDate>Thu, 25 Aug 2022 15:15:25 GMT</pubDate>
            <atom:updated>2022-08-25T15:37:04.960Z</atom:updated>
            <content:encoded><![CDATA[<h3>ELT Project London Bus Safety Performance — 2</h3><p>In this part, we will divide data into different dimensions and store in different tables for future use. It is the normal practice in OLAP for analytical use.</p><blockquote>More about OLAP and dimensional models: <a href="https://medium.com/analytics-vidhya/data-warehousing-schemas-961391b3f3de">https://medium.com/analytics-vidhya/data-warehousing-schemas-961391b3f3de</a></blockquote><p>Here, I will divide it into 4 dimensions(<em>Date, incident place, bus group, incident type</em>). I will create 4 tables (<em>dim_date, dim_place, dim_company_cat, dim_incident_type</em>) and store relative data.</p><ol><li>dim_date</li></ol><p>There is one column of ‘Date of Accident’ in the original dataset and the format is yyyy-mm-dd. based on this data, we could analyze datetime from different aspects. Here, I will divide it into year, month, day, week, half_year, quarter.</p><p>As dividing date into dimensions is a normal practice, we could store it in a procedure for future use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*wX6BdzDqjuTcq777pZ2g3w.png" /><figcaption>Create dim_date</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*taAstdgv_aiKCxPdDSqUhg.png" /><figcaption>Create date procedure</figcaption></figure><p>2.dim_place</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9Ee6eMkWzGwIzb5O.png" /><figcaption>Subregions of London</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*gxP5_H4JvedB-PxddQVcuw.png" /><figcaption>Create dim_place</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*CADHTV5rnHKvc-ZWy7r1Dw.png" /><figcaption>Insert into value</figcaption></figure><p>3.dim_company_cat</p><p>Based on bus company, we can divide them into different categories for future analyzation. We could consider the company size, national or foreign company, listed or not…</p><p>Here, I couted the number of operation lines to decide the company size (1 big, 2 middle, 3 small)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MAZQi_AY6DxLXoYrN06CMA.png" /><figcaption>check company size</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*axnQT3Gtlr0IhsyTn0M54Q.png" /></figure><p>bonus: (another way to create and insert data using subqueries)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*muIeAk8JkIc0NxRc__9E_A.png" /></figure><p>4. dim_incident_type</p><p>After selecting distinct incident event type, we could find there are we could classify below events into different categories. Therefore, we could create a dimension for it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*10JOefsEkpZnHsEVIACiig.png" /><figcaption>check incident type</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*Pnr6aAo1aRtL-GBSqSD8RA.png" /></figure><p>In this part, we create four dimensional tables (<em> dim_date, dim_incident_place, dim_company_cat, dim_incident_type</em>) for analytical use.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40b2ccaca077" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ELT Project London Bus Safety Performance — 1]]></title>
            <link>https://medium.com/@ellieberry0419/elt-project-london-bus-safety-performance-1-dacef2f8428c?source=rss-7e6848370781------2</link>
            <guid isPermaLink="false">https://medium.com/p/dacef2f8428c</guid>
            <category><![CDATA[etl]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Y_Lu]]></dc:creator>
            <pubDate>Mon, 22 Aug 2022 12:29:36 GMT</pubDate>
            <atom:updated>2022-08-25T15:25:52.654Z</atom:updated>
            <content:encoded><![CDATA[<h3>ELT Project London Bus Safety Performance — 1</h3><blockquote>Data source: <a href="https://data.world/makeovermonday/2018w51">https://data.world/makeovermonday/2018w51</a></blockquote><blockquote>Data description:</blockquote><blockquote>Transport for London forms quarterly reports to analyze the incidents on London bus network from 2015–01–01 to 2018–09–01.</blockquote><figure><img alt="Theme: TFL (Transport for London) Bus Safety" src="https://cdn-images-1.medium.com/max/1024/0*zoZeFY1OCK-ijlbZ.jpg" /></figure><p>In order to manage database better, detect if there are some problems when updating, we need to check if the new one has the same columns as the one in the database.</p><p>Methods:</p><p>1.Create a new table as ‘elt_logs’ to store and record every updated action.</p><p>2.Check and insert updated info into table.</p><p>3. Add one column in our original table in the end as ‘load_time’ to check when it is updated.</p><figure><img alt="1. create table elt_logs" src="https://cdn-images-1.medium.com/max/658/1*ZOJUAlx99EjWdGSW-3dsGA.png" /><figcaption>1</figcaption></figure><p>Here, we could use python to do the check. Use ‘truncate table ’ here to ensure we have deleted the left data.</p><figure><img alt="2. check and insert info" src="https://cdn-images-1.medium.com/max/832/1*ay3gH9v9xfedt_TBRdSd0g.png" /><figcaption>2</figcaption></figure><figure><img alt="3. add column ‘load_time’" src="https://cdn-images-1.medium.com/max/832/1*kZ7dW4LsNZ17FGH0LskYHw.png" /><figcaption>3</figcaption></figure><p>We could check the last column to check whether we have updated data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Nsyna6kxkv1yAbXQYqTJg.png" /><figcaption>check the last column load_time</figcaption></figure><p>In this part, we created the log table and added load_time to original table to check if we update our data successfully.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dacef2f8428c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ETL]]></title>
            <link>https://medium.com/@ellieberry0419/etl-bc9efd754155?source=rss-7e6848370781------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc9efd754155</guid>
            <category><![CDATA[etl]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Y_Lu]]></dc:creator>
            <pubDate>Tue, 26 Jul 2022 13:30:32 GMT</pubDate>
            <atom:updated>2024-04-07T18:34:12.855Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is ETL?</h3><h4>What is ETL? Oh, a daily stuff that a data engineer guy does</h4><blockquote>What is ETL? ‘Extract-Transform-Load’</blockquote><blockquote>What does data engineer do? Building workflows to extract, sort and maintain data the company needs.</blockquote><p><em>ETL is a normal practice of high frequency in data engineering. It includes sourcing, cleaning, and sorting of raw data into a better form for upstream. At the same time, it is more or less of a repeat thing that could be automated. Usually, we could tool, such as Python, Airflow to help us do this job.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E6B12hFTTcOJ7Oy8RnRBLg.png" /><figcaption>From dremio</figcaption></figure><p><strong>Extract: something that could be API or a downloaded csv file</strong></p><p><strong>Transform: make your data into the form you want</strong></p><p><strong>Load: upload your data into your database</strong></p><figure><img alt="a demo of ETL" src="https://cdn-images-1.medium.com/max/794/1*cqL6pnxoBI_niwrfNL1RRg.png" /><figcaption>Demo of a ETL process</figcaption></figure><p>ETL VS ELT</p><blockquote>Actually, there are two common practice: ETL &amp; ELT</blockquote><blockquote>ETL Extract-Transform-Load</blockquote><blockquote>ELT Extract-Load-Transform</blockquote><p>How to choose? In which situation use which one?</p><p>It is also possible to use ELT and it depends on how you prepare to deal with your data. You want to transform and load into database or first load and then transform. These two practices have both advantages and disadvantages.</p><p>In the demo, I used ETL, first transformed data type in python and then use sqlachemy to load my data into database. The advantage is that data is in good form before upstream, but the disadvantage is that sometimes the data type is not proper and we did not the orignal version to process data in SQL.</p><p>Below is the experience of how to choose between these two after building 100 data pipeline: <a href="https://towardsdatascience.com/how-i-redesigned-over-100-etl-into-elt-data-pipelines-c58d3a3cb3c">https://towardsdatascience.com/how-i-redesigned-over-100-etl-into-elt-data-pipelines-c58d3a3cb3c</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*f42DjzlAP9RRT0S4XNee9w.png" /></figure><p>The data world is like a pyramid and the foundation is quite important. Data engineering is the base infrastructure that give solid supports of the more advanced exploretion. Knowing the ETL process and data pipeline is great for anyone working with data.</p><p>Happy reading and enjoy exploring data world!!! 🥳</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc9efd754155" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>