<?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 Djamel GHARBI on Medium]]></title>
        <description><![CDATA[Stories by Djamel GHARBI on Medium]]></description>
        <link>https://medium.com/@degharbi?source=rss-b3b4cbe212ae------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*PDAprXt3bm4Un3xodaRKUw.jpeg</url>
            <title>Stories by Djamel GHARBI on Medium</title>
            <link>https://medium.com/@degharbi?source=rss-b3b4cbe212ae------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 10:19:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@degharbi/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 analytics with AWS: Volume]]></title>
            <link>https://medium.com/data-science/picture-goes-here-53436f02f3e9?source=rss-b3b4cbe212ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/53436f02f3e9</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analytics]]></category>
            <dc:creator><![CDATA[Djamel GHARBI]]></dc:creator>
            <pubDate>Sun, 31 May 2020 03:20:50 GMT</pubDate>
            <atom:updated>2020-06-01T23:34:46.658Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FpbN0Vh5rTCtJnj-cBAs1g.jpeg" /><figcaption>Image by <a href="https://pixabay.com/users/Julius_Silver-4371822/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3021820">Julius Silver</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3021820">Pixabay</a></figcaption></figure><blockquote>Check out my previous article introduction to data analytics with AWS</blockquote><p><a href="https://towardsdatascience.com/data-analytics-with-aws-introduction-975143d11ce4">Data analytics with AWS : Introduction (part 1)</a></p><h3>There’s Big in Big Data</h3><p>One can argue that data is data whether it’s big or small, so there must be a good justification for people to call it <strong>Big data! </strong>Well, go grab yourselves a cup of tea/coffee and relax because we are going to see some numbers that can give a headache.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*IZEPbVnvAdlE4z8v8qgvMQ.png" /><figcaption><a href="https://www.bondcap.com/report/itr19/#view/151">https://www.bondcap.com/report/itr19/#view/151</a></figcaption></figure><p>The digital world as we know it today is generating humongous amounts of data, <strong>90%</strong> of data known to humanity is generated just in the past three years. This data is called the <strong>Global Datasphere </strong>and it is rapidly expanding. Some institutions predict that it will grow from <strong>33 Zettabytes</strong> (ZB) in 2018 to <strong>175 ZB</strong> by 2025.</p><blockquote>How much is a Zettabyte : 1 zettabyte = 1 <a href="https://en.wikipedia.org/wiki/1,000,000,000,000">trillion</a> <a href="https://en.wikipedia.org/wiki/Gigabytes">gigabytes</a></blockquote><h4>How all this is possible? how are we generating all this data?</h4><p>The next figure shows the data propagation schema. The outer circle is the endpoints at the edge of the network like people’s devices, mobile, IoT, industry sensors…The Edge circle represents local data collectors and storage like enterprise servers and small data centers. The Core of this schema is large Datacenters and Cloud.</p><p>I would like to say just a word about Public cloud (that would be cloud providers like AWS, Azure, GCP…) to emphasize it’s importance. Data storage is increasingly shifting towards the Core, by 2024 predictions are stating that data stored in the Cloud would be <strong>double</strong> the data stored in endpoints (for 50–50 right now). So people and enterprises need to be familiar with the Cloud where all data will be stored eventually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*-95Flh5NbUUTj9qVgyHWgw.png" /><figcaption><a href="https://www.seagate.com/www-content/our-story/trends/files/idc-seagate-dataage-whitepaper.pdf">https://www.seagate.com/www-content/our-story/trends/files/idc-seagate-dataage-whitepaper.pdf</a></figcaption></figure><p>This data generating monster must be satisfied and cared for with proper tools otherwise it would be angry and destroys everything! That’s what we’re exploring in what follows.</p><blockquote>The data-driven world will be always on, always tracking, always monitoring, always listening and always watching — because it will be always learning, IDC.</blockquote><p><strong>Volume </strong>is maybe one of the most important characteristics of data nowadays because the volume of data is what has shaped many of the IT and cloud solutions that we know today. The problems that information systems we were dealing with in the 90s were just completely different from problems we are facing in the last decade with a burst in data volumes.</p><p>Storage, data querying, analysis, massive parallel computation and data consumption by machine learning systems to cite just a few all ought to be modeled differently.</p><p>So now that we understood that big data systems are drastically different from their predecessors, let’s explore the backbone of a data analytics solution in a big data like-system and make parallels to AWS solutions.</p><h3>Data lakes</h3><p>Data can be classified in different categories: unstructured, structured, and semi-structured. The majority of data generated is unstructured and represents about 80% while structured and semi-structured data about 10% each (this subject will be treated in depth in another article).</p><p>Businesses must have a data management platform capable of ingesting, managing, analyzing this variety of data at scale. This is why data lakes were born to solve some of the problems that enterprises were facing with organizing their increasing data volume.</p><h4>So what is a Data Lake?</h4><p>Here’s AWS’ definition.</p><blockquote>A data lake is a <strong>centralized repository </strong>that allows you to store <strong>structured</strong>,<strong> semistructured</strong>, and<strong> unstructured </strong>data at any scale, AWS.</blockquote><p>A Data Lake (DL) is a centralized place for all your data, with any shape, at any scale, and lets you work with that data easily. It’s an architectural concept that helps manage your data ecosystem through a set of tools.</p><p>A proper DL should have the following characteristics :</p><ul><li><strong>Single source</strong> of truth: there has to be some kind of organization to the structure of data entering your DL</li><li>Store <strong>any type</strong> of data: data stored in the DL must be used to bring value to businesses, users must be trained to integrate the use of DL into their workflows and data must be updated regularly</li><li>Data <strong>persistence</strong>: a DL should be able to store and keep data even in the event of a catastrophe (flood of a data center for example). SLA (Service Level Agreement) should approach 100%, otherwise why work on a DL where you are not sure to keep your data</li><li><strong>Analyze</strong> your data easily: the point of centralizing your data is to use it to retrieve business insights by applying data analytics and machine learning.</li></ul><p>To operate at scale ensuring the above characteristics, the technical challenge to realize this is quite important. Just imagine having millions of CSV files and you want to perform an aggregation on that data? well, that is not an easy task and you’d probably wait hours, days maybe, before getting your results. This is where technologies like <strong>distributed systems</strong> integrated in DL are here to help.</p><p>So let’s explore some fundamental technologies<strong> </strong>that helped make this possible.</p><h4>Distributed architectures</h4><p>A distributed architecture manages a pool of resources and distributes the load on each resource to perform faster and at scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LOZgf0ZcOpSv5cf8KK1VsQ.png" /><figcaption>Distributing load with parallel execution of a task, Photo by Author</figcaption></figure><p>To illustrate the power of distribution, in the picture above, we used a pool of workers to perform a task (store data in a database) in parallel. So instead of having a single worker on the task and waiting for it, we used 8 workers at the same time and we had a near-instantaneous result. The nice thing about this kind of architecture is that if we need to add more workers to absorb more load, it’s as easy as adding a Lego.</p><p>A distributed architecture works the same way, there’s a master node giving orders of execution with a certain planning, and slave nodes executing this work in parallel sharing the load. Each node manages a small chunk of the load and at the end of execution, results are gathered and aggregated.</p><p>We can compare those systems to beehives (it’s no coincidence that Hive is the name of a Hadoop ecosystem tool) managed by the queen with an army of workers working in parallel.</p><p>A very famous distributed system is the open-source project Hadoop released in 2006. Initially developed by Google (Google File System project) then open-sourced, it facilitates the use of a network of computers to handle large amounts of data. In a nutshell, when you store a file (or other forms of data) in HDFS (<strong>H</strong>adoop <strong>D</strong>istributed <strong>F</strong>ile <strong>S</strong>ystem) the system divides it into small chunks and spreads it on all the nodes of the cluster with replication, this allows distribution of computation across nodes.</p><h3>Data lakes on AWS</h3><p>AWS has built an ecosystem that enables businesses to create and manage data lakes and data warehouses. let’s explore the options we have with the AWS ecosystem.</p><h4>Amazon S3</h4><p>One of the first AWS services is a storage service called “Simple Storage Service” or S3. It is a place where you can store semi-structured and unstructured data at any scale. S3 stores data as <strong>objects</strong> within <strong>buckets</strong>.</p><p>Think of S3 like Dropbox or google drive, but with very high availability and additional tools (REST API, Metadata Catalogue..).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nK8paS9zt_LqsU7fqSAuhw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@egnaro?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Rick Mason</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>S3 is like a Lego box, you can have multiple boxes in different rooms of the house containing different shapes (data formats) and different colors of legos (metadata). When you want to assemble a Lego house with all that, you have to grab the right box and look for the right pieces of that lego house.</p><p>The difference with S3 is that you will know exactly where each lego piece is (by its key and metadata) so that you can assemble your lego house instantly. Besides, S3 will never lose your legos because AWS can persist.</p><p>An <strong>object</strong> is composed of a file and any metadata associated with that file (tags that allow us to organize and find the object for example). It can be CSV, pdf, video, audio, or file binaries, basically any format of numeric data you can think of. Each object in S3 has a <strong>Key</strong> which is an URL for accessing the object.</p><p><strong>Buckets</strong> are containers that hold objects, basically like folders in an operating system. When creating a bucket we can specify many options :</p><ul><li>geographical region or regions where the bucket will be hosted</li><li>who (person or service) can access, create and delete objects</li><li>manage objects life cycle and versions</li></ul><p><strong>Main advantages of S3 :</strong></p><ul><li>Decoupling of storage from compute and data processing: that means that storage of data and its consumption is done in different locations. Why is that interesting? it enables data to be processed by different tools, if the compute servers got hacked they will not be able to access the data directly, storage and compute can be scaled independently (cost and speed optimization).</li><li>Centralized data architecture: facilitating data governance and reducing cost.</li><li>Integration with other AWS services: compute, business analytics, and machine learning application can easily access to S3 data without the need for third-party connectors.</li><li>Standardized Application Programming Interfaces (APIs): data can be accessed and used via Code with REST APIs in different programming languages.</li></ul><p><strong>Main disadvantages of S3</strong></p><ul><li>Depending on the use, the service can be expensive (especially with big data transfers)</li><li>It has to be used with other AWS services to query, visualize, and process data. So as a standalone solution, it is not sufficient.</li></ul><blockquote>So with all the features and advantages, Is S3 a Data Lake ?</blockquote><p>S3 is the core component of a DL, but is not a DL on its own. Remember what we said earlier in this article, that a proper DL is a set of tools that enables data ingestion, storage, and transformation. S3 has to be combined with other AWS services to form a DL such as Kinesis to ingest data, Glue, or EMR to transform data and Athena to query data.</p><h3>Data warehouses</h3><p>A Data warehouse (DW) is a very popular data storage method. It consists of a central repository of <strong>structured data</strong> already cleaned, transformed and aggregated ready for business analytics and reporting.</p><p>It concerns mainly structured data that flows from different sources, then it passes by an ETL pipeline (Extract Transform Load) before it is stored in a DW. The structure of the data is rigid, meaning that a schema has to be defined before ingestion.</p><p><strong>Why it is different than a data lake?</strong> DW store only structured data ready for business analysis. It is usually used as a complementary solution used with a data lake that stores all raw data.</p><p>Most of the Business Intelligence tools like Tableau, Qlik view, Power BI… are powered (or needs) by a DW in the backend.</p><h3>Data marts</h3><p>Data stored in DW can be massive, so massive that sometimes we need to wait hours for the result of a single query.</p><p>Imagine a bank storing transnational data on a global scale for several years and business analysts use frequently only last year’s data just for a single country. It would make sense to enable these analysts to access and analyze some parts of the global data. That’s where Data Marts (DM) comes in play, they are subsets of tables in the main DW that enables fast and cost-effective queries on a particular subject.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xRqMdAc0_TiY71eCL_vMSQ.png" /><figcaption>Photo by Author, icons designed by <a href="https://www.flaticon.com/authors/smashicons">Smashicons</a>, <a href="https://www.flaticon.com/authors/phatplus">Phatplus</a> from <a href="https://www.flaticon.com/">Flaticon</a></figcaption></figure><p>Now that we understood what’s a DL and DW, let’s discover what AWS has to offer to implement such systems.</p><h3>Data warehouses on AWS</h3><p>AWS has developed its own DW solution as a fully managed, petabyte-scale data warehouse service in the cloud Called <strong>Amazon Redshift</strong>. This means that setting up a DW has never been easier, no need to manage and maintain servers, AWS does it all. It has its ups and downs, but its clearly an advantage to be able to set up a full operational DW within minutes.</p><p>The AWS ecosystem offers a lot of flexibility to integrate Redshift with other services like S3, Lambda functions, and compute instances. A whole business intelligence solution can be built and customized quickly based on these services.</p><h4>Pros</h4><ul><li>Easy to set up, deploy, and manage</li><li>Secure</li><li>Scales quickly to meet your needs</li></ul><h4>Cons</h4><ul><li>It can be expensive depending on the size of the business</li><li>Amazon claims it’s 3x faster than other DW solutions, but there’s no clear benchmark to be found. Performance is more dependant on how you configure the clusters</li><li>Compared to other DW solutions such as Google’s Bigquery, there’s quite a steep learning curve to set up and optimize properly. It is not as fully managed as one might think.</li></ul><p>AWS offers an excellent ecosystem to get started into data analytics quickly. They keep innovating and adding new tools and are clearly a leader in the cloud computing space. As data practices are being democratized more and more it can be challenging for a business to hope on this trend without a public cloud provider since they make it so easy to deploy ready to use solutions. The catch is cloud providers, including AWS, which has closed systems that lock-in customers, and it can be difficult to switch to other systems once the choice is made. But there is no doubt that Cloud providers have accelerated the rate of innovation in the data space.</p><p>Now that we’ve talked about data volume and storage solutions in AWS, in the next article we’ll talk about how are we going to consume all this data to make meaningful decisions, this characteristic is called the <strong>Velocity of data</strong>, or data processing.</p><p>So, stay tuned for the next article.</p><h3>References</h3><ul><li><a href="https://www.seagate.com/www-content/our-story/trends/files/idc-seagate-dataage-whitepaper.pdf">https://www.seagate.com/www-content/our-story/trends/files/idc-seagate-dataage-whitepaper.pdf</a></li><li><a href="https://www.bondcap.com/report/itr19/#view/151">https://www.bondcap.com/report/itr19/#view/151</a></li><li><a href="https://www.datamation.com/big-data/structured-vs-unstructured-data.html">https://www.datamation.com/big-data/structured-vs-unstructured-data.html</a></li><li><a href="https://www.aws.training/">https://www.aws.training/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53436f02f3e9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/picture-goes-here-53436f02f3e9">Data analytics with AWS: Volume</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data analytics with AWS : Introduction (part 1)]]></title>
            <link>https://medium.com/data-science/data-analytics-with-aws-introduction-975143d11ce4?source=rss-b3b4cbe212ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/975143d11ce4</guid>
            <category><![CDATA[analytics-platforms]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[big-data-analytics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Djamel GHARBI]]></dc:creator>
            <pubDate>Sun, 09 Jun 2019 23:36:57 GMT</pubDate>
            <atom:updated>2020-05-31T03:37:12.748Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tFl-8wQUENETYLjX5mYWuA.png" /></figure><h3>Data analytics with AWS : Introduction</h3><p><strong>Analytics </strong>is the systematic analysis of data. <strong>Data analytics</strong> is the specific analytical process being applied.</p><p>Data analytics is vital to businesses large and small. It helps decision makers base their decisions on analytics and numbers rather than using intuition and luck. Critical tasks such as : launching a new product, offering discounts or marketing new areas are subjects which require time-sensitive decisions and lots of experience. When operating at scale, managers can be overwhelmed by the number of decisions to make and sometimes, luck is your best bet.</p><p>All these problems can be addressed by data analytics solutions. However, as businesses begin to implement these solutions, they can face some challenges :</p><ul><li>What data to use and how ?</li><li>How to connect all my data sources ?</li><li>How to run fully automated pipelines ?</li><li>How to manage these pipelines ?</li></ul><p>These questions apply to small or large businesses. Both need to setup an environnement that answers these questions and anticipate future ones.</p><blockquote>Organizations spend <strong>millions </strong>of dollars on data storage. The problem isn’t<strong> finding </strong>the data — the problem is <strong>failing to do</strong> anything with it, AWS</blockquote><h3><strong>Benefits of data analytics on a big scale</strong></h3><h4>Customer personalization</h4><p>What products or services should be shown to the customer based on their behavior, past purchases and other people’s purchases ?</p><h4>Fraud detection</h4><p>What transactions are fraudulent or which users are not human (bots) ?</p><h4>Security threats detection</h4><p>How can we identify potential security risks from usage patters ?</p><h4>User behavior</h4><p>Based on his behavior online, how can we identify if a user is a potential customer and how much can he spend buying our products/services ?</p><h4>Financial modeling and forecasting</h4><p>How can we predict market trends based on financial data ?</p><h4>Real-time alerting</h4><p>What alerts do we need to receive ? who will receive which alert ?</p><h3>The data analytics solution</h3><p>The main logic of any data analytics solution is :</p><ol><li><strong>Data raw</strong> : get the data from source at its raw format. It can be text, numeric or video…</li><li><strong>Data table</strong> : organize the data into storing solutions (databases, data lakes…)</li><li><strong>Data view</strong> : visualize the data collected and cleaned to perform analytics and get insights.</li></ol><p>These steps needs to be executed in a pipeline-like structure :</p><ul><li>Connect to raw data from any sources</li><li>Ingest the data into a storage solution with any form at any speed</li><li>Store the variety of data (structured, semistructured or unstructured) in a scalable, durable and secure solution</li><li>Process this data to transform it into usable data sets ready to be consumed and analysed (aggregated, joined…). These data sets needs to be stored in a different location than raw data</li><li>Visualize the final data with business intelligence tools and dashboards to seek answers and insights. Machine learning is used in this step to apply algorithms to go beyond usual analytics.</li></ul><h3><strong>The challenges of data analytics</strong></h3><p>In modern businesses, data is generated by a plethora of sources : Ecommerce website, logs, CRM, ERP, digital marketing, social media, IoT... The important question is how to manage all this data and how to generate value from it to have an advantage over competitors.</p><p>The challenges of setting up such a data analytics solution comes down to as we call the <strong>five Vs </strong>: <strong>volume</strong>, <strong>velocity</strong>, <strong>variety</strong>, <strong>veracity</strong>, and <strong>value</strong>.</p><p>It is important to note that depending on the type of business, size and products, organisations may be challenged with a few or all those five challenges. For example, <strong>Youtube</strong> (video content) don’t have the same problems that <strong>Medium</strong> does (text content).</p><p>Here’s a brief definition of each V :</p><ol><li><strong>Volume : </strong>It’s the total amount of data that is coming in and will be ingested into the system.</li><li><strong>Velocity : </strong>It’s the speed at which data is flowing in, the challenge consists of processing the data in near real-time and return results as quickly as possible. Example : validating a credit card transaction must instantaneous (near real-time)</li><li><strong>Variety : </strong>Data to be ingested in the system can have different formats, we can’t process numeric data as we process video or text, so the data analytics solution have to manage all this variety</li><li><strong>Veracity : </strong>It’s the accuracy of incoming data. This is a very important part of any analytics solution, businesses have to ensure that data stored in the system is cleansed and accurate, otherwise all the analytics produced would be flawed and that could be dangerous</li><li><strong>Value : </strong>Any investments has to yield value for it’s investor, and the data analytics solutions don’t diverge from this rule. Decisions makers seek to extract meaningful information and insights from such systems to have a competitive edge.</li></ol><h3>AWS in all this ?</h3><p>AWS short for <strong>Amazon Web Services</strong>, is the cloud branch of the Ecommerce giant Amazon.</p><p>AWS is a cloud provider that proposes fully managed scalable durable and secure IT infrastructure solutions. That means that with a few clicks businesses are able to deploy full data analytics solutions and that’s very powerful. The main sell point of cloud providers (google with GCP, microsoft with Azure and others) is “<em>focus on the your business and let us do the rest</em>”.</p><p>In this series, we’ll explore the solutions/products that AWS proposes to setup every step of a data analytics solution.</p><h3>What Next ?</h3><p>This article is part of a series of articles where I’ll be introducing data science and analytics using AWS. By the end of this series, you’ll have an overviews of the AWS solutions used in data analytics.</p><p>In the next articles of this series, I’ll publish a specific article about each component of a data analytics solution. We’ll explore in depth the AWS ecosystem to setup a full analytics infrastructure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=975143d11ce4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/data-analytics-with-aws-introduction-975143d11ce4">Data analytics with AWS : Introduction (part 1)</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>