<?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 Edward Bullen on Medium]]></title>
        <description><![CDATA[Stories by Edward Bullen on Medium]]></description>
        <link>https://medium.com/@ed.bullen?source=rss-e85b8edf9f08------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*krnR-JtHpWkQpu_lfAqOag.png</url>
            <title>Stories by Edward Bullen on Medium</title>
            <link>https://medium.com/@ed.bullen?source=rss-e85b8edf9f08------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 20:37:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ed.bullen/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[Building Analytics Apps on Databricks]]></title>
            <link>https://medium.com/@ed.bullen/building-analytics-apps-on-databricks-a0e3d27b0593?source=rss-e85b8edf9f08------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0e3d27b0593</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[lakebase]]></category>
            <dc:creator><![CDATA[Edward Bullen]]></dc:creator>
            <pubDate>Mon, 12 Jan 2026 18:31:28 GMT</pubDate>
            <atom:updated>2026-01-12T18:33:23.702Z</atom:updated>
            <content:encoded><![CDATA[<h4>Databricks Apps, Lakebase, and the Lakehouse</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BX1dxKohE1G_-91gdTdMzQ.png" /></figure><p>Databricks is often framed as notebooks + big data. That view is outdated.</p><p>Today, Databricks is a credible platform for building user-facing analytics and AI applications — the kind that non-technical users can actually interact with without stitching together half a dozen external services.</p><p>Using a small, open-source demo app, this post walks through how Databricks Apps, Lakebase, and the Lakehouse fit together to create a clean, production-grade pattern for analytics web apps — one you can clone and adapt in minutes.</p><h3>Overview</h3><p>The example app combines:</p><ul><li>a simple interactive web UI</li><li>analytical queries over data in cloud object storage</li><li>a transactional Postgres-compatible database for application state and configuration</li></ul><p>All of it runs inside Databricks, with serverless infrastructure, native authentication, and no long-lived secrets.</p><p>The full project is here:</p><p>👉 <a href="https://github.com/edbullen/dbx-streamlit-app">https://github.com/edbullen/dbx-streamlit-app</a></p><p>You can run it on Databricks Free, with zero cloud cost, which makes it ideal as a learning template or starter project.</p><h3>What the demo app actually does</h3><p>The application is intentionally boring — in a good way.</p><p>It’s a lightweight analytics UI that:</p><ul><li>stores application configuration and user-defined settings in Lakebase</li><li>runs analytical queries against a Databricks SQL Warehouse</li><li>renders results in a simple Streamlit-based web interface</li></ul><p>This is not a toy GenAI demo. It’s a realistic pattern you can reuse for:</p><ul><li>internal analytics dashboards</li><li>configuration-driven data products</li><li>chat or agent front-ends backed by governed data</li></ul><p>The repo is structured as a template, not a one-off:</p><ul><li>app.py → the web application</li><li>lakebase_plsql.py → transactional DB access</li><li>warehouse_queries.py → analytics via Databricks SQL</li></ul><p>Clone it, replace the business logic, keep the wiring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0WMIDNVpY6usy7yuHcadaA.png" /></figure><h3>Databricks Apps: deployment without the glue code</h3><p>Databricks Apps solve a long-standing problem:</p><blockquote>How do I deploy a web app next to my data and AI without building custom infrastructure?</blockquote><p>With Databricks Apps:</p><ul><li>your app runs on serverless compute</li><li>it lives in the same security boundary as your data</li><li>SSO just works; no custom auth layer required</li></ul><p>This is ideal for analytics and AI apps where the app is “thin” and the value lives in the data, models and governance / security model.</p><p>If you’ve ever bolted Streamlit or FastAPI onto a data platform and then fought auth, networking, and secrets — this removes most of that pain.</p><h3>Lakebase: transactional data without the hassle</h3><p>Lakebase is Databricks’ managed, Postgres-compatible transactional database.</p><p>How it fits in this pattern:</p><ul><li>Fully managed: no VMs, no patching, no tuning</li><li>Decoupled compute and storage: scale each independently</li><li>Postgres compatibility: simple to use, following the defacto standard for txn data</li></ul><p>Recent additions from Databricks like serverless scale-to-zero make it cheap enough to use for app configuration, reference data or small infrequently used apps.</p><p>In other words, choose the right horses for courses: Lakebase for transactional and Databricks Lakehouse for analytical and use the two together.</p><h3>Developing apps properly (no notebooks required)</h3><p>This repo is deliberately not notebook-centric. Instead, it shows how to:</p><ul><li>develop locally in VS Code or PyCharm</li><li>authenticate using OAuth (no PAT tokens)</li><li>push to Git and deploy cleanly into Databricks</li></ul><p>Key components:</p><ul><li>Databricks CLI &amp; SDK for environment interaction</li><li>OAuth-based auth aligned with enterprise SSO</li><li>a workflow that supports unit tests and CI/CD</li></ul><p>The result is an end-to-end setup where:</p><ul><li>no secrets are hard-coded</li><li>no tokens are shared</li><li>the same code runs locally and in Databricks</li></ul><p>This is a much better security posture than the “token in a .env file” approach that still shows up far too often.</p><h3>Why this pattern works</h3><p>This combination — Apps + Lakebase + Lakehouse — hits a sweet spot:</p><ul><li>Simple mental model</li><li>Minimal infrastructure</li><li>Enterprise-grade security by default</li></ul><p>You’re not building a full microservices platform.</p><p>You’re building data products with a UI, and Databricks now supports that natively.</p><h3>Try it out</h3><p>If you want to explore this pattern:</p><p>1. Sign up for <a href="https://www.databricks.com/learn/free-edition">Databricks Free</a></p><p>2. Clone the repo</p><p>👉 <a href="https://github.com/edbullen/dbx-streamlit-app">https://github.com/edbullen/dbx-streamlit-app</a></p><p>3. Run it locally</p><p>4. Deploy it as a Databricks App</p><p>5. Start replacing the example logic with something real</p><p>If you already work with Databricks, this is an easy way to expand beyond notebooks and put busines users in front of your data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0e3d27b0593" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Text analytics in Data Pipelines using AI]]></title>
            <link>https://medium.com/@ed.bullen/text-analytics-in-data-pipelines-using-ai-1443d28d1f70?source=rss-e85b8edf9f08------2</link>
            <guid isPermaLink="false">https://medium.com/p/1443d28d1f70</guid>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[sentiment-analysis]]></category>
            <dc:creator><![CDATA[Edward Bullen]]></dc:creator>
            <pubDate>Sun, 14 Sep 2025 15:51:12 GMT</pubDate>
            <atom:updated>2025-09-14T15:51:12.517Z</atom:updated>
            <content:encoded><![CDATA[<h4>Building GenAI into ETL Pipelines with Databricks and AI Query</h4><h3>Summary</h3><p>Generative AI, underpinned by <a href="https://en.wikipedia.org/wiki/Large_language_model">LLM</a>s, provides a great tool-set for processing text data and summarising it in a way that it can be quantitatively assessed in business processing data pipelines (ETL).</p><p>Using Databricks SQL and AI Functions provides a simple and quick path to value for many business applications across domains such as marketing, customer success, fraud detection and client onboarding.</p><p>In this blog I give an overview of the general approach using Databricks and then work through an example, testing the theory with a popular open data set — the Amazon Reviews sample data set. The results were impressive showing how easy it is to integrate LLMs into business ETL pipelines with SQL and get accurate and useful results.</p><h3>Introduction and Overview</h3><p>Unstructured text such as conversation transcripts can be summarising with a numerical score for metrics of interest (i.e. customer satisfaction or signs of deceptive activity) by using an LLM. This can be bolstered by generating a fixed classification (i.e. what type of customer enquiry was this or what type of activity is suspected) as well as recording the reasoning process that was used to generate the score and classification.</p><p>This is a whole separate avenue of potential compared to the more commonly discussed chatbots and agentic-AI opportunities that are also made possible by LLMs. In many cases GenAI in ETL pipelines is a simpler entry point to get business value more quickly from GenAI.</p><p>The process of integrating the latest LLMs into business ETL data pipelines is made much easier by <a href="https://docs.databricks.com/aws/en/large-language-models/ai-functions">Databricks AI Query</a> capability coupled with <a href="https://docs.databricks.com/aws/en/machine-learning/model-serving/foundation-model-overview">Databricks Foundation Models</a>.</p><ul><li><strong>Databricks Foundation Models</strong> provide platform-integrated access to many state-of-the-art LLMs, allowing easy evaluation and comparison between models without complex engineering and build tasks.</li><li><strong>Databricks AI Query</strong> allows GenAI instructions to be embedded directly into SQL, so that data processed via the business-friendly SQL language can use an LLM to extract structured business data from free text.</li></ul><h4>Example Use-Cases</h4><ul><li><strong>Call centre optimisation</strong>: bulk process text (or audio-to-text transcripts) to assess customer satisfaction, and determine call topic classes. The goal is to improve NPS or reduce customer churn.</li><li><strong>Onboarding clients</strong>: analyse interviews and document submissions, providing a “second pair of eyes” to score and evaluate new clients or counter-parties. The goal is to streamline the customer onboarding process as well as apply extra governance and consistency on top of other manual processes.</li><li><strong>Fraud detection</strong>: check for patterns and inconsistencies in verbal and written communication that could signify fraud activity. The goal is to reduce the risk and cost to an organisation for fraudulent or deceptive activity.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pH-Gnnh-Yoa4Gx4AbufsgQ.png" /></figure><h3>Approach</h3><p>Example Dataset — Amazon Reviews</p><p>I used the <a href="https://jmcauley.ucsd.edu/data/amazon/index_2014.html">Amazon Reviews</a> data-set as a sample set of text transcripts with an associated set of rating scores. This is an open-sourced data set with a real-world set of purchaser review comments and scores for products sold in different categories. This is a commonly used data-set for sentiment analysis experiments has the advantage of:</p><ul><li>real-world human interaction text from many sources</li><li>numeric scores provided as part of the review process; this can be used to compare with the model’s attempt to derive a score based on the text.</li></ul><p>The Amazon reviews data is pre-loaded as part of the Databricks sample data sets, making it easy to use in a Databricks environment:</p><pre>df = spark.read.format(&quot;parquet&quot;).load(&quot;/databricks-datasets/amazon/data20K/&quot;)</pre><p>A sample of a few rows of the data looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ki-5kcqcoJKfIO6NlD3eQ.png" /></figure><p>So the goal is to build a system that just takes the raw review text and makes a guess what the rating would be. Then we can compare our results with what the actual rating score was recorded as in the Amazon data-set to see how well the process works.</p><p>I also decided to try to apply a category for each set of review-text. As can be seen from the example, some of the reviews of text are easier to categorise than others.</p><p>This categorisation target was driven out of a discussion with a customer I was working with; they specifically wanted a system that could accurately estimate which was the best category to apply to some text and not rely on key-words or pre-training (as well as providing a numeric rating score). Also they wanted the system to (1) state when it could not identify a category (2) provide details on how the category had been identified. This seemed like a perfect use-case for an LLM.</p><h4>Databricks processing pipeline</h4><p><a href="https://docs.databricks.com/aws/en/introduction/">Databricks</a> makes it easy to load unstructured data into structured tabular format for processing. Raw files (text or audio) can be staged in cloud object storage and then surfaced via <a href="https://docs.unitycatalog.io/">Unity Catalog</a> volumes for ingestion processing.</p><p>SQL processessing of data loaded using Spark and stored in Delta Tables is easy using <a href="https://docs.databricks.com/aws/en/compute/sql-warehouse/">Databricks SQL Warehouses</a>. No extra data movement or transformation is needed — the raw data is available for processing in SQL. This cuts out the need for separating processing stages out into different teams of responsibilities (“Data Engineers”, “ML Engineers”, “Data Scientists”), which significantly simplifies things in a real world situation.</p><p><a href="https://docs.databricks.com/aws/en/large-language-models/ai-functions#-general-purpose-function-ai_query">Databricks AI Query</a> makes it easy for Data Analysts to apply GenAI to SQL data tables. This brings the power of applying LLMs and AI to data within the reach of everyday data users and analysts.</p><h4>AI Query</h4><p>Databricks AI Query (a subset of <a href="https://docs.databricks.com/aws/en/large-language-models/ai-functions">AI Functions</a>) allows you to include a call to an LLM or a traditional machine learning model via a SQL function call.</p><p>The model needs to be served out by Databricks model serving or be part of the <a href="https://docs.databricks.com/aws/en/machine-learning/model-serving/foundation-model-overview">Databricks foundation models</a> that are available by default as part of the Databricks platform.</p><p>Data (text or numeric) can be passed from a query in to the model as one of the AI Query SQL function parameters. Another function parameter is the name of the model that is registered in model-serving. The output results from the model are returned in-line in the SQL query.</p><p>The general AI query format, when selecting the <em>data_to_llm_col</em> from table <em>source_table </em>and applying <em>my_foundation_model</em> looks something like this:</p><pre> SELECT<br>    another_table_col,<br>    AI_QUERY(<br>      &quot;my_GenAI_LLM_model&quot;,<br>      request =&gt; concat(&quot;LLM Prompt goes here ... with output format: <br>                        Output format must be:<br>                        JSON: {&#39;classification&#39;: &#39;&lt;CATEGORY&gt;&#39;,<br>                               &#39;sentiment&#39;: &lt;SENTIMENT_SCORE&gt;,<br>                              &#39;classification_reason&#39;: &#39;&lt;REASON&gt;&#39;}&quot;, <br>                        data_to_llm_col)<br>            ) as llm_response<br>  FROM<br>    source_table;</pre><p>In this example, the function adds a column <em>llm_response</em> with the output processed according to the prompt details and in the format of a JSON struct.</p><p>By concatenating a prompt into the string of data and structuring the function output into a JSON dictionary we can use our query to</p><ul><li>Pass in data by querying a table of data</li><li>Apply an LLM prompt, in this example including a few-shot learning template</li><li>Specify a Databricks foundation LLM model to use (i.e. Llama, GPT, Gemma, Claude)</li><li>Structure the output so that we get a fixed structured response for business analytics</li></ul><p>In reality the prompt will be much bigger than in the above example, in order to tell the LLM how to process the data and structure the output in the required format. There is an example referenced in the Example Code section later in this blog.</p><h4>Example Code and End to End Flow</h4><p>I’ve created a working example at this <a href="https://github.com/edbullen/dbx-review-sentiment/">Github repo</a> (see the <a href="https://github.com/edbullen/dbx-review-sentiment/blob/main/Amazon%20Reviews%20Sentiment.ipynb">Amazon Reviews Sentiment.ipynb</a> notebook).</p><p>This example loads 19959 rows of data from the Amazon reviews data-set, adds an ID key to the data in a feature table, and then demonstrates generating predicted ratings as well as a topic classification category and a justification for the category.</p><p>The end-to-end flow looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*al3QH7KVFMS3e5kH6zf4HA.png" /></figure><p>Here’s some sample output for a few rows of data showing the predicted rating vs the actual rating in the sample data-set as well as the classification that was derived from the review data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZHJvMShtEBLJ6k78-MVHbw.png" /></figure><p>Just by basic inspection it seems to be working pretty well. Where there is little information in the review text, the LLM is correctly stating the classification as unknown, and not making one up. The predicted rating vs actual rating looks good too, with some variance but only by a small amount.</p><p>Because we have a labeled sample-set with a ground-truth prediction-rating, I was able to join the predictions back to the features and compare the accuracy over the whole 19959 rows of data.</p><h3>Results and Conclusion</h3><p>The accuracy of this experiment with some real-world data was really impressive. I generated a histogram of the variance between the original Amazon review rating and the rating predicted by the LLM (see the notebook code). Here a prediction variance of Zero means the prediction was the same as the original rating and a variance of One means the prediction was only 1 unit different from the original. The results I got without much experimentation were 97% within +/- 1 of the real rating. Probably humans reading the reviews and re-grading them would struggle to match this accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AD5DHzPW_idBt9JCstm_EA.png" /></figure><p>In the code example I provided I used a “few shot learning” prompt technique. Eventually as the prompt gets bigger (and incurs cost sending more tokens) it might make sense to fine-tune a smaller model specialised for the task. However this approach is a fast-track to an MVP and quick business value realisation.</p><p>In summary, this is a really fast and easy way to get business value from data using Generative AI and LLMs without weeks of development cycle and teams of expensive experts in different domains. The potential for this is much wider than just sentiment analysis; any use-case involving bulk categorisation and scoring of conversational input is a potential opportunity for this approach.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1443d28d1f70" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LLMs— From Research to Reality]]></title>
            <link>https://medium.com/analytics-vidhya/llms-from-research-to-reality-57d5936552c1?source=rss-e85b8edf9f08------2</link>
            <guid isPermaLink="false">https://medium.com/p/57d5936552c1</guid>
            <category><![CDATA[open-model]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[vector-database]]></category>
            <category><![CDATA[multi-agent-systems]]></category>
            <dc:creator><![CDATA[Edward Bullen]]></dc:creator>
            <pubDate>Sun, 08 Sep 2024 15:04:05 GMT</pubDate>
            <atom:updated>2024-09-08T15:11:21.090Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Open Models and Multi Agent Systems for Business Applications</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qf60xMXqi_p4wbDjAmUf6g.jpeg" /></figure><p>Artificial Intelligence (AI) has undergone a remarkable transformation over the past decade. It’s no longer confined to the realms of academia and experimental labs. Large Language Models (LLMs) have swiftly moved AI into mainstream business applications.</p><p>Previously businesses were mainly focused on applying Machine Learning (ML) for automating tasks based on models trained on data-sets, but now AI can mimic human intelligence for certain targeted tasks.</p><p>This transition is fuelled by 4 developments:</p><ul><li><strong>LLMs</strong> based on the <strong>Transformer Architecture</strong> (an improved deep learning or neural network architecture developed by Google)</li><li><strong>RAG</strong> (Retrieval Augmented Generation) architecture that pairs generalised LLMs with domain-specific data sets in <strong>Vector Databases</strong></li><li><strong>Multi-Agent Systems </strong>combine multiple LLM agents, Vector Database sources and Function Execution to perform complex tasks</li><li><strong>Open Models</strong> based on either open, free to use weights (i.e Llama from Meta) or open source (i.e. Mixtral from Mistral). These can be fine tuned and allow proprietary low-cost model serving solutions to be developed.</li></ul><p>In this blog I summarise how the combination of Open models with Multi Agent Systems, Vector Databases and RAG allows smaller, cheaper models to take centre stage for everyday business applications, providing real business value.</p><blockquote>Opening up the technology means that the winners are likely to be organisations with data who are able to capitalise on these technologies and create useful applications, rather than purveyors of picks and shovels</blockquote><h3><strong>Current Situation</strong></h3><p>The <strong>Google</strong> Transformer architecture introduced in 2017 with the seminal “<a href="https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf">Attention is All You Need</a>” paper provided a step-change in terms of what can be achieved with deep learning networks. The approach focused on mapping outputs to vectors of weighted dependant inputs, irrespective of the position in the sequence of inputs. This proved to provide better results and be more efficient to train.</p><p><strong>OpenAI</strong> took this approach developing the GPT series of models, operating as a private entity with a hybrid / complicated part non-profit, part capped for-profit organization, eventually ending up in a partnership with <strong>Microsoft</strong>. When <strong>ChatGPT</strong> was released as a free preview in December 2022, based on the GPT 3.5 model it took the world by storm. From the point of its release, 100 million users signed up to ChatGPT in 2 months compared to Facebook reaching that number of registered users in about 4 years. This took AI and LLMs from being a technical and academic topic to a world-wide social and economic event.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/0*UuVbYr99SJIfXqsp" /><figcaption>(source: r/ChatGPT)</figcaption></figure><p>In parallel, the <strong>Hugging Face</strong> community hub has become the GitHub of AI, with over a million registered users and 50,000+ orgs using the site. This has fuelled the rise of Open Source and just “Open” models. Many models, such as Meta’s Llama series are Open in the sense the models are free to use and the model weights are shared, but not the details of training data and training approach.</p><p><strong>Nvidia</strong> is the leading designer of chips with GPU architecture. These are processing units that are optimised for linear algebra operations. Much of the processing required by the LLM models involves combining and reducing large matrices of numbers which the GPU architecture is optimised for. In turn, some of the development of the Transformer architecture series of LLMs was optimised to perform well on an Nvidia GPU chip architecture, giving Nvidia a huge advantage in this market for training and running LLM models. In 2019 Nvidia’s market capitalisation was around 144 million USD. In 2024 it reached 3.1 trillion USD.</p><p>Finally the introduction of <strong>Vector Databases</strong> into the LLM processing chain has opened up the use of LLMs for use in general business applications. Unlike traditional keyword-based searches, vector databases perform semantic similarity searches by encoding data into high-dimensional vectors. This allows LLMs to retrieve and generate contextually relevant responses from vast, unstructured datasets efficiently. This forms the foundation of Retrieval-Augmented Generation (<strong>RAG</strong>), which enhances the accuracy and relevance of AI outputs by incorporating domain-specific (and private) information stored in vector databases. This concept then extends out further into <strong>Multi Agent Systems </strong>where combinations of LLMs and Vector Databases are combined to solve a particular business need.</p><h4>Is this a bubble?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9QYmq2H4cheoOF6Z" /></figure><p>Obviously I don’t know for sure, but this is a widely discussed and debated topic with many well known commentators on the record for this point:</p><blockquote>“The internet bubble was hype. This is not hype. It’s real”</blockquote><p><em>— Jamie Dimon, JPMC</em></p><blockquote>“The top 10 companies are more overvalued than during the tech bubble”</blockquote><p>— <em>Apollo Global Management’s chief economist</em></p><blockquote>“[This is a] rally fuelled more by earnings rather than valuations”</blockquote><p>— <em>Capital Economics</em></p><blockquote>“The big winners in AI will be applications rather than tools”</blockquote><p>— Marc Andreessen, Andreessen Horowitz</p><p>One thing is clear, even if this is a stockmarket bubble, the revolutionary change in how people use technology and how it impacts the world and businesses has already happened.</p><blockquote>After the dot-com bubble, the world never looked back and went back to how things were before. Similarly, this new world of LLMs will never be the same again.</blockquote><h3>Beyond Chatbots — what are people using this for?</h3><p>So what are people actually doing with this technology? The internet and social media is full of examples of chat-bots and neat parlour tricks either getting a Chat Bot to behave like a human (telling jokes etc) or tricking it into providing incorrect or inappropriate responses. Meanwhile, in the background people and businesses are now productively using LLMs to usefully:</p><ul><li>Bulk-process text data</li><li>Create content (code / marketing content / learning material)</li><li>Execute work-flow operations</li><li>Provide advice and forward analysis</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P2kwg7H6P2kRnVWXkBWU7g.png" /></figure><p>For the actual business use-cases, often the LLM and associated application frame-work is tied to a particular business function, with a set of users who have no intention or motivation to trick it — rather they want to learn how to use it so that it gives them the content / insight that they need.</p><p>Typically all these use-cases have a human-in-the loop aspect who can assess the output and qualify it and decide how to use it (or re-phrase their interaction with the LLM to get what they want).</p><h3>The Advance of Open Source</h3><blockquote>Smaller, Cheaper, Faster</blockquote><p>Open-Weight (and Open Source) LLMs provide businesses with greater flexibility and control over their AI implementations. By combining open, free-to-use models that are either fine-tuned with their own data or combined with their own proprietary data in a local vector database, they can ensure intellectual property is retained and sensitive data is protected.</p><blockquote>In general, the long-term trajectory for taking an Open / Open-Source path has been to accelerate innovation and reduce costs. There is no reason why AI shouldn’t follow the same path.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AZJt42ILOaIjO3g5bw1mFA.png" /></figure><p>As the performance (quality) of Open LLMs rapidly catches up with proprietary models and techniques such as <a href="https://huggingface.co/docs/transformers/en/main_classes/quantization">quantization</a> are applied, LLMs are becoming easier and cheaper to deploy for every-day applications.</p><blockquote>“We have no moat and neither does OpenAI”<em> (</em><a href="https://www.semianalysis.com/p/google-we-have-no-moat-and-neither"><em>Google</em></a><em>)</em></blockquote><p>Many applications don’t need a PhD-equivalent LLM to back it. The consideration of “is it open”, “can I deploy it locally”, “how much does it cost”, “how do I integrate it with my application” are often more important than having the model with the very highest “<a href="https://en.wikipedia.org/wiki/MMLU">MMLU score</a>”, although this is still an important factor too.</p><h3>Understanding RAG, Vector Databases and Multi-Agent Systems</h3><p>The key for taking LLMs from research break-though to practical business applications is to use:</p><ol><li><strong>RAG Architecture</strong> to easily combine them with extra contextual data</li><li><strong>Multi Agent Systems</strong> to create a functional business application around an LLM</li></ol><h4>RAG (Retrieval Augmented Generation)</h4><p>The RAG architecture has some sceptics due to the simplicity of the approach for prompting a fixed LLM with additional data. However, it is RAG’s very simplicity that makes it so popular and powerful. It empowers regular practitioners to easily create custom business applications targeting a specific requirement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qbkE0RhqQw8AH6N9EeMnnw.png" /></figure><p>A vector database allows numeric vector embeddings that represent text or images to be stored. This enables <a href="https://en.wikipedia.org/wiki/Semantic_search">semantic search</a> (rather than text string searches) to bolster the LLM with specific content.</p><p>A lesser LLM that is Open, free, and has a more lightweight processing footprint can be more useful than standalone ChatGPT if it is paired with domain-specific data to augment the prompt passed to the LLM interface.</p><h4>Multi Agent Systems</h4><p>Multi-agent systems enable the creation of sophisticated AI environments where different agents collaborate to achieve goals that are unattainable by single models alone. This collaborative intelligence is especially beneficial in sectors requiring multifaceted solutions, such as financial services, where agents monitor market trends, analyze customer data, and detect fraud — all feeding into a central decision-making system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cJT7HJAhLZHx8zVw2jdsxQ.png" /></figure><p>This structure (which may contain elements of the RAG architecture and vector databases within it) enables aspects such as:</p><ul><li>Guardrails to check output quality — techniques such as LLM-as-a-judge can check for signs of hallucination or inappropriate responses</li><li>Enable automation process flows by calling functions</li><li>Include a human-in-the-loop to provide feedback on the responses being provided and to make an expert assessment of automated content.</li></ul><p>The application of multiple smaller, more lightweight, and less sophisticated models can combine to provide an overall more valuable business processing capability for specialised tasks.</p><h3>Summary</h3><p>Whether there is a financial markets bubble or not, irrespective of if we are about to experience another dot-com crash, the revolution has already happened and LLMs and AI are here to stay. Simple implementation architectures such as Vector Databases, RAG and Multi Agent Systems are being combined with Open models that can now be run on relatively cheap hardware and used to provide real business value.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57d5936552c1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/llms-from-research-to-reality-57d5936552c1">LLMs— From Research to Reality</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fixing the Data Warehouse]]></title>
            <link>https://medium.com/swlh/fixing-the-data-warehouse-93121d779faa?source=rss-e85b8edf9f08------2</link>
            <guid isPermaLink="false">https://medium.com/p/93121d779faa</guid>
            <category><![CDATA[data-lakehouse]]></category>
            <category><![CDATA[data-warehouse]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[data-lake]]></category>
            <dc:creator><![CDATA[Edward Bullen]]></dc:creator>
            <pubDate>Thu, 23 Jun 2022 17:46:46 GMT</pubDate>
            <atom:updated>2022-06-29T07:53:55.889Z</atom:updated>
            <content:encoded><![CDATA[<h4>with Databricks</h4><p>I recently joined Databricks, a company founded by the creators of Apache Spark. At the time that I am joining the company they have moved far beyond just “Spark in the Cloud” and I believe they are leading the next revolution in Data Warehousing and Analytics.</p><p>This blog article starts by looking back at the evolution of data warehouse and analytics platforms through previous decades, then introduces some example case-studies showing the challenges using a data lake and data warehouse combination. Finally there is an overview of the <a href="https://databricks.com/blog/2020/01/30/what-is-a-data-lakehouse.html">Databricks Lakehouse</a> and an explanation of how it solves the issues described for the case-studies.</p><p>TL;DR — you can go straight to the final <em>The Lakehouse</em> section of this blog to see how this new architecture can be applied to some sample real-world case-studies.</p><h3>Brief History of Data Warehouses</h3><p>The data warehouse has been a core part of the data processing landscape at most organisations for as long as I have worked in IT. Periodically it has been announced as defunct or no longer necessary and ready for replacement with a new technology or methodology - but the data warehouse has endured.</p><p>The core function of a <a href="https://en.wikipedia.org/wiki/Data_warehouse">data warehouse</a> is to provide reporting and analytics across an entire business, or at least across a set of multiple business functions. This can be used for retrospective reporting and future planning, decision-making, predictions and task automation. One of the central aspects of data warehouses is the use of <a href="https://en.wikipedia.org/wiki/SQL"><strong>SQL</strong></a> for defining the data structures and accessing (querying) the data that is fed into it. Broadly, the incumbent vendors in this space were pretty constant throughout the 1990’s and 2000’s — namely <strong>IBM, Sybase, Oracle, Teradata </strong>and <strong>Microsoft</strong>.</p><p>In the 2010’s<a href="https://en.wikipedia.org/wiki/NoSQL"> <strong>NoSQL</strong></a> from companies such as <strong>MongoDB</strong> arrived on the scene, but failed to conquer the data warehouse world (probably due to it being based on a non-relational model and its lack of support for transaction consistency). After the NoSQL boom, the<a href="https://en.wikipedia.org/wiki/Apache_Hadoop"> <strong>Hadoop</strong></a> and Big Data hype took off — the mid 2010’s was the period when companies like<strong> Cloudera</strong> and <strong>Horton Works</strong> along with <strong>Amazon EMR</strong> were pitching Big Data on Hadoop as the replacement for the data warehouse. There was a huge migration to the new data lake paradigm, but it turned out to be a complex way for running regular business use-cases, and a broad trend back towards systems with capabilities more like a data warehouse started, as this was easier for business users to consume.</p><p>Recently the move to cloud has seen a different angle on the data warehouse from <a href="https://en.wikipedia.org/wiki/BigQuery"><strong>Google</strong> <strong>BigQuery</strong></a>, and <a href="https://en.wikipedia.org/wiki/Snowflake_Inc."><strong>Snowflake</strong></a><strong> Inc.</strong> They have moved the SQL warehouse into a cloud service that requires no end-user configuration and is run for you on a consumption-cost basis — this has revolutionised data warehouse processing. However, these platforms focus on the data warehouse capabilities rather than the machine learning and new analytics workloads born out of the Hadoop revolution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f3Tws1TzFOfyGp57o51BZw.png" /></figure><blockquote>So - what can we learn from all this history? In short, it looks like the SQL data warehouse is here to stay. It is obviously useful enough and important enough for just about every major company and organisation to invest huge amounts of time and money in it and it has survived countless attempts to replace it.</blockquote><h3>The Problem and What Comes Next</h3><p>Despite its longevity, vendors and end-users have repeatedly tried to re-invent or replace the <strong>Data Warehouse</strong>. The reason for this is to resolve gaps and limitations in its overall capability to match the full breadth of what is actually required by the businesses using them. Often the replacement architecture has been a <strong>Data Lake</strong>, but this has failed to improve things, and sometimes has turned out to be a step backwards in terms of business value and added complexity.</p><p>To illustrate this, I have picked some example use-cases from real companies I have worked with over the last few years. Working through the issues these companies had and then seeing the completeness of vision that the Databricks <strong>Lakehouse </strong>solution can bring to these scenarios is what persuaded me to take up a job working for Databricks.</p><h4>Some Case Studies</h4><p>1. “<strong>Car Manufacturer</strong>” — The goal of the project I worked on was to allow the business to more accurately target sales and marketing activities with a mixture of reporting and machine learning (ML) clustering and recommendation systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vO3J-rDk5DLZKB5fJIf3zA.png" /></figure><p>To get access to the data-sets used for the analysis, a major project was set up to take regular extracts from one data lake into another data lake, even though each data lake was based on the same cloud service technology. This was required to work around the inflexibility of the data lake security model and the associated regulatory compliance challenges (such as handling <a href="https://en.wikipedia.org/wiki/Personal_data">PII</a> data and GDPR). On top of this, once the data had been prepared for machine learning and analytics the data was extracted <em>again</em> into other system to apply machine learning models to them and then the results persisted back to the very first “core” data-lake to make them available for consumers.</p><p>The result of this was a year-long project consisting of many agile squads with teams of people from multiple vendors and the Car Manufacturer, with huge cost, complexity and technical limitations around data synchronisation and data quality resulting from the interfaces between each system — not to mention the cloud service cost for replicating a global data-hub and part of its data in triplicate. <em>All of this was just to provide different groups of people fine-grained access to the data they were supposed to see and to allow different personas (Data Scientist, Data Analyst, Data Engineer) access to the tools needed for their role</em>.</p><p>2. “<strong>Energy Supermajor</strong>” — This company had developed a sophisticated multi-tenant data lake platform for BI and Data Science consumers covering multiple use-cases and business areas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xyg3IXVIIidZ_lu5O2fPwg.png" /></figure><p>Providing everything from financial reporting in BI style reports, through to automating analysis derived from images using Machine Learning, this combined data lake and data warehouse solution provided real business value. However, the effort and time-to-market for on-boarding new data sources and the development of new features was increasing with each new data product. The majority of time was spent solving infrastructure deployment, security and operations issues rather than developing new business functionality.</p><p>The causes of this spiralling inertia, complexity and cost could broadly be attributed to a) combining multiple different technologies (AWS S3, Athena, Redshift, Glue, EMR Spark, Lambda) linked together in a combined chain of components to deliver a hybrid Data Warehouse / Data Lake capability, b) manual coding to handle concurrent business transactions and incremental data-loads against shared data-sets c) the challenge of applying a uniform security model across multiple technology components, each with a different set of capabilities which resulted in complex data pipeline engineering and a complex data-onboarding processes.</p><p>3. “<strong>Bioinformatics Research</strong>” — I was tasked with developing a system to provide research project managers with a summarised view of genome research activity, mapping compute grid usage to projects. This was to enable cross-team collaboration and attribute costs to research projects and different organisations sharing access to the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Z57ElStomPzYEIFBNQ04w.png" /></figure><p>To achieve this it was necessary to collect continuous streams of machine logs in semi-structured format from multiple compute-grids and join it with tabular organisational and cost data. This required implementing one system for handling streams of machine data (Elasticsearch) and then integrating it with another system that could store the structured finance, project and organisational mapping data (in a Postgres relational database deployed in AWS). This relational database layer was also required to support the interface to Tableau BI dashboards that the management consumers required for accessing the summarised data, authenticating via the company’s cloud <a href="https://en.wikipedia.org/wiki/Single_sign-on">SSO</a> service.</p><p>The system satisfied it’s primary requirement, but was complex to support with multiple technologies required to cater for the different data-types. Also the system was not flexible for allowing different personas access to different views of the data. As this was originally requested by the research project managers, the data access model allowed them access to the level of data they needed to see via the BI tool they wanted to use. However, other parts of the solution were deployed on different technology components with different access models that were under the jurisdiction of other parts of the IT organisation.</p><p>This resulted in a system that was not flexible for allowing different personas access to different views of the same data. Once the Data Scientists and Data Analysts saw the useful charts and reports their management had access to, they naturally assumed they should be able to access the raw or underlying joined data sources. Unfortunately this was locked away and only accessible to central IT operations staff.</p><h4>Observations</h4><blockquote>None of these organisations really wanted a data lake — they wanted a better data warehouse that they could also use for machine learning and new types of data.</blockquote><ul><li>As well as servicing static management summary reports they want to apply statistics and machine learning to their data using the same system.</li><li>They also need to process multiple types of data (business transaction, semi structured machine logs and unstructured image and text data) all arriving at different rates and frequencies.</li><li>Managing access to the data for different groups of people and different types of tools for targeted subsets of the data is as important as the business functions being served.</li><li>The main cloud providers — Amazon, Google, Microsoft — provide a solution based around adding multiple separate components to fill different parts of the overall data platform capability. This results in complex data pipelines, engineering and operations team overhead and complex projects to link all the pieces together.</li></ul><h3>The Lakehouse</h3><h4>The problems solved by the Databricks Lakehouse</h4><p>Databricks has coined the term “Lakehouse”, to describe a single technology platform for data warehouse workloads <em>and </em>data-lake big data analytics workloads.</p><blockquote>Databricks provides SQL data warehousing (with ACID compliance and transaction support), big data analytics and Spark execution of Python, Scala and R using the same integrated tool-set. This is built into a single data platform catering for structured, semi-structured and unstructured data with an integrated machine learning model-management system all in the same environment.</blockquote><p>Web-based notebooks, dashboards and SQL endpoints are provided as an integrated service running against the same platform. This allows multiple roles or personas to operate against the same data sets:</p><ul><li>Data Engineers and Data Scientists can use notebooks to discover, analyze and pre-preprocess data in a mixture of Python, R, Spark, Scala, SQL as well as including Markdown documentation in shared notebooks.</li><li>Data Analysts and Business Analysts can either use the built in web-based SQL worksheets and dashboards to perform business analytics and create data products, or they can connect their existing tools such as Tableau and Power BI to the Databricks SQL endpoint service.</li><li>Machine Learning engineers can develop, test and deploy machine learning models in the Databricks environment working against the same data-sets as everyone else. An open-source framework for managing the model lifecycle, called <a href="https://mlflow.org/"><strong>MLflow</strong></a>, allows data engineers and data analysts to reference AI/ML models directly in data pipelines and data analytics in the same context as the rest of the Lakehouse.</li></ul><blockquote>The Databricks integrated Data Science, Data Engineering, Data Analyst and Machine Learning environment is unique and solves the problem of inertia caused by different teams working in different technology silos. It avoids complex processes to move data, models and results to and fro between data scientist, analyst, machine learning and data warehouse / data-lake environments.</blockquote><p>Underpinning this, the <a href="https://delta.io/"><strong>Delta Lake</strong></a> storage framework (another open-source project originating from Databricks) allows a mixture of batch and streaming and business transaction updates to data to be seamlessly catered for at the data layer.</p><blockquote>Delta Lake solves the problem of how to handle concurrent streams of business activity against a shared data-set without having to build extra logic into the data pipelines.</blockquote><p>Databricks <a href="https://databricks.com/product/unity-catalog"><strong>Unity Catalog</strong></a> provides a unified catalog, governance and fine-grained access model against all the assets stored in the Lakehouse.</p><blockquote>Unity Catalog solves the problem of having different security models and technical systems for managing privileges across different components and layers in the overall data platform.</blockquote><p>Finally, the same Databricks functionality works against all three of the major cloud vendors (Google GCP, Microsoft Azure, Amazon AWS) and the Databricks Lakehouse operates directly against data stored in the storage of these three vendors. Open-source <a href="https://parquet.apache.org/">Apache Parquet</a> format can be used or data can be loaded from CSV or JSON files, or unstructured data stored in Google GCS / Azure Blob / AWS S3 can be directly processed in machine learning pipelines developed in Databricks notebooks.</p><blockquote>Cloud portability solves the problem of having to re-architect for multiple cloud providers and challenges such as catering for <a href="https://www.bankofengland.co.uk/-/media/boe/files/prudential-regulation/supervisory-statement/2021/ss221-march-21.pdf">Stressed Exi</a>t / <a href="https://www.eiopa.europa.eu/sites/default/files/publications/eiopa_guidelines/final_report_on_public_consultation_19-270-on-guidelines_on_outsourcing_to_cloud_service_providers.pdf">exit planning</a> at banks and regulated industries as well as providing an easy path to a Data Mesh strategy.</blockquote><p>This is all provided as a cloud software-as-a-service (SaaS) that doesn’t require extensive engineering or configuration and is charged for on a pay-per-consumption cloud basis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_gbTEIyji2Yo5Xg7XB4pAw.png" /></figure><p>Databricks’s Lakehouse idea has subsequently been taken up as a concept by other vendors such as <a href="https://cloud.google.com/blog/products/data-analytics/open-data-lakehouse-on-google-cloud">Google</a> and <a href="https://aws.amazon.com/blogs/big-data/build-a-lake-house-architecture-on-aws/">Amazon</a>. However these other approaches to the multi-modal Lakehouse challenge consist of multiple different technology components that each provide subsets of the overall functionality. This adds complexity in the implementation and operation of applications based around them.</p><p>In terms of Price/Performance, independent tests such as the TPC Decision Support benchmark have shown Databricks <a href="https://www.zdnet.com/article/databricks-tpc-ds-benchmark-results-and-the-analytics-platform-wars/">outperforming the other options</a> in the market for SQL data warehouses by a significant factor. Databricks currently holds the <a href="https://databricks.com/blog/2021/11/02/databricks-sets-official-data-warehousing-performance-record.html">world record</a> for the TPC-DS 100TB DS warehouse category.</p><p>Further performance comparisons between Delta Lake and Apache Hudi and Apache Iceberg can be found here: <a href="https://databeans-blogs.medium.com/delta-vs-iceberg-vs-hudi-reassessing-performance-cb8157005eb0">https://databeans-blogs.medium.com/delta-vs-iceberg-vs-hudi-reassessing-performance-cb8157005eb0</a></p><h4>Case Studies Re-Visited</h4><p>If we take the Databricks Lakehouse design and apply it to the three case-studies mentioned earlier, we can see how much this approach simplifies the system architecture and makes access to hybrid data processing and data analytics patterns easier. In summary, if these use-cases were moved to the Databricks Lakehouse:</p><p><em>1.Single Integrated Platform:</em></p><p>The Car Manufacturer and the Energy Supermajor would no longer need to extract data out of data lakes and data warehouse and move it between systems to enable functionality and apply access controls.</p><p>The Bioinformatics Research organisation could use a single service to combine streaming semi-structured data and structured finance and organisational data.</p><p>The Bioinformatics Research organisation could also allow the BI dashboards service to connect directly to the same platform supporting both the semi-structured and structured data.</p><p><em>2.Support for Business Transactions and Data Science / Machine Learning data in a combined service</em>:</p><p>The Energy Supermajor could cater for concurrent business transactions and incremental data-loads against shared data-sets without developing in-house systems for tracking change and transaction markers.</p><p>The Car Manufacturer would not need to extract data from the Data Lake to a separate environment to enable the Data Scientists training and modelling activities with open source libraries, as these are loaded and integrated into the same platform.</p><p><em>3.Unified catalog, access-control and data lineage system:</em></p><p>The Bioinformatics Research organisation could easily allow different parts of the organisation access to different aggregations and levels of data-detail, depending on their job-role, without having to create custom access-control solutions across multiple systems.</p><p>The Car Manufacturer would not need to extract data into different sub-set copies to provide data masking and permission control, as this could be provided by fine-grained (column and row-level) access permissions, masked views and a single data catalog.</p><h3>Conclusion</h3><p>In the world of Hadoop and Spark there is a huge amount of discussion about optimal architectures and coding strategies and how the internal processes of this technology work.</p><p>The focus for the Databricks Lakehouse is much simpler; it is presented as and used as a set of capabilities in a single package that you choose from. This means you can focus on what you actually do with the Lakehouse platform instead of how you build it. This simplicity is deceptive as it brings a huge amount of value by moving the focus back to business-function use-cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93121d779faa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/fixing-the-data-warehouse-93121d779faa">Fixing the Data Warehouse</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spark and Kafka on your Laptop]]></title>
            <link>https://medium.com/@ed.bullen/spark-and-kafka-on-your-laptop-e47c5a952cd0?source=rss-e85b8edf9f08------2</link>
            <guid isPermaLink="false">https://medium.com/p/e47c5a952cd0</guid>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[pyspark]]></category>
            <category><![CDATA[streaming]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Edward Bullen]]></dc:creator>
            <pubDate>Mon, 14 Mar 2022 14:12:33 GMT</pubDate>
            <atom:updated>2022-03-15T12:30:46.074Z</atom:updated>
            <content:encoded><![CDATA[<p>Create a private Spark and Kafka environment on your laptop using Docker images to deploy the infrastructure.</p><p>This article describes how to quickly set up your laptop or workstation with a local Kafka and Apache Spark environment running in Docker. The build can be cloned from a Github repository, simplifying and speeding up the installation.</p><p>The motivation for this is to have an independent area for trying things out and testing syntax or developing examples of new functionality before taking these into an official development environment. It allows you to try things out without having to consider cloud usage costs, corporate configuration controls or needing cloud network connectivity.</p><h4>Contents</h4><p>1. Functionality Overview<br>2. Install and Build<br>3. Cluster Operations<br>4. PySpark Example Notebooks<br>5. Submitting Spark Jobs to the Spark-Master<br>6. PII Data Hashing and UDF Example<br>7. Kafka and Spark Streaming Integration</p><h3>1. Functionality Overview</h3><p>I have copied the approach from another blog article here:<br><a href="https://towardsdatascience.com/apache-spark-cluster-on-docker-ft-a-juyterlab-interface-418383c95445">https://towardsdatascience.com/apache-spark-cluster-on-docker-ft-a-juyterlab-interface-418383c95445</a><br>and added some extra functionality to the core Spark cluster environment:</p><ul><li><strong>Spark 2.4.5</strong> cluster running in Docker containers</li><li>Added a <strong>Spark History Server</strong> service for analysis of execution plans and performance profiles</li><li>Enabled <strong>UDFs</strong> running <strong>Python 3.7</strong> on the worker nodes</li><li>Integrated with <strong>Kafka 2.5.1</strong> and <strong>Spark Streaming</strong> with instructions for setting up a working Kafka environment (with tested versions that are compatible with the cluster-build version)</li></ul><p>There are also some code examples in notebooks bundled in the repo with working examples of:</p><ul><li>Basic PySpark data aggregate and filter operations</li><li>Viewing and interpreting Spark execution plans</li><li>Writing User Defined Functions</li><li>Building Spark ML machine-learning pipelines</li><li>Streaming data from Kafka into Spark Streaming</li></ul><p>All the examples use PySpark, but Scala can also be used in this environment.</p><p>Spark 2.4 is over a year old now and I plan to work on a Spark 3 version of this same configuration in a separate Git Repo. Also on my ToDo list is testing a build of this on <a href="https://podman.io/">Podman</a> instead of Docker.</p><p>The current Kafka build is outside the Docker environment as it is convenient and easy to set up running in a JVM and link it in to the Spark cluster Docker service.</p><h3>2. Install and Build</h3><p>The build and build instructions have been tested on<em> MacOS 10.15</em> and <em>Windows 10</em>. This will probably work on Linux too, but I haven’t tested it.</p><p>The build and build instructions for the Spark 2.4.5 version are located in a GitHub repository here: <a href="https://github.com/edbullen/DockerSpark245">https://github.com/edbullen/DockerSpark245</a></p><h4>Build Steps</h4><ul><li>Install Docker.</li><li>Clone the <em>DockerSpark245</em> repo from GitHub.</li><li>Follow the Docker configuration instructions in <em>README.md</em>.</li><li>Create the Docker volume hadoop-distributed-file-system (this gets mapped to the identifier shared-workspace in the Docker configuration).</li><li>Run the build.sh script. This compiles a specific version of Python for compatibility reasons, which means the build takes some time to run.</li><li>Start the cluster using docker-compose up</li><li>Optional: install Java JDK 1.8 and follow the instructions in <em>README_KAFKA.md </em>to set up a Kafka streaming service.</li></ul><h4>Build Architecture</h4><p>The core Spark Cluster consists of a set of Docker images to create a Spark Master container, two Spark Worker cluster nodes and a JupyterLab server that can also submit jobs to the cluster.</p><p>The Kafka environment is installed outside Docker, running on a Java 1.8 JVM. This requires a manual build by following the instructions provided in a README. Apache Zookeeper is used as a cluster-manager for the Kafka processes (this also runs in the JVM).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zIbV-1YsBLq0_IpC_vJdSw.png" /></figure><p>Once the environment has been built, and the Docker processes have been started and, optionally, the Kafka environment started, it is possible to interact with the environment either by either:</p><ul><li>Connecting to the JupterLab environment at <a href="https://localhost:8888/">https://localhost:8889/</a></li><li>Starting a Docker remote shell session on the JupyterLab server and submitting jobs to the Spark cluster from there using spark-submit.</li></ul><p>The Spark cluster uses the shared Docker volume <em>shared-workspace</em> that is mounted as /opt/workspace on all Docker containers.</p><p>An external Docker fileshare is set up to link a local Workstation folder to /opt/workspace/notebooks that is mounted in the Docker containers, allowing Jupyter notebooks and jobs for submitting to the cluster to be shared and edited from outside the Docker environment.</p><h3>3. Cluster Operations</h3><p><strong>Start</strong> the Spark cluster:</p><pre>docker-compose up --detach</pre><p><strong>Stop</strong> the Spark cluster:</p><pre>docker-compose down</pre><p><strong>Spark Master Web UI</strong> for viewing the status of jobs running on the cluster:</p><p><a href="http://localhost:8080/">http://localhost:8080/</a></p><p>This provides a list of currently running and previously completed jobs. Because of the limited resources in this cluster, generally only one job can be run at a time. If a previous job is listed as still active and is blocking another job it can be killed with this interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tQZRmBoH6YfHNbLl-hnE9w.png" /></figure><p><strong>Spark History Server Web UI </strong>for viewing execution details of previously executed jobs:</p><p><a href="http://localhost:18081/">http://localhost:18081/</a></p><p>This is useful for seeing the timeline for different stages in a job and identifying which stages incur the most processing time and drilling in to the detail of how many rows of data were processed at each stage and how much data was transferred during partition exchange operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CiItewyvLvemGlxseDzFNQ.png" /></figure><p><strong>Docker Container Operations</strong></p><p>View running containers:</p><pre>docker ps</pre><p>Connect a shell session to run inside one of the cluster hosts (Docker containers):</p><pre>docker exec -it &lt;container-id&gt; bash</pre><p>(find the container ID by running docker ps)</p><p>View logs from a running container:</p><pre>docker logs &lt;container-id&gt;</pre><p><strong>Kafka </strong>operations are discussed in a separate section at the end of this article.</p><h3>4. PySpark Example Notebooks</h3><p>Once the Docker containers are running, a JupterLab service is available at</p><ul><li><a href="https://localhost:8889/">https://localhost:888<strong>9</strong>/</a></li></ul><p>The non-default port is chosen to avoid clashing with other local notebook environments. Navigate to the notebooks folder to view the sample notebooks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*czNG5XXaxxVZPS_uHEyHPw.png" /></figure><ul><li>Notebook data-download.ipynb downloads <strong>sample data</strong> to the datain folder. This is used as a data-source for the other example notebooks.</li><li>Notebook pspark-nb-1.ipynb is a basic “hello world” <strong>test</strong> of the Spark environment to check that a job can be successfully run on the cluster.</li><li>Notebook pyspark-nb-2-execplan.ipynb shows the basics of viewing the <strong>Spark execution plan</strong> and filtering data.</li><li>Notebook pyspark-nb-3-analysis.ipynb runs through some examples of basic data <strong>aggregations</strong>, ranking and <strong>analytic window functions</strong>, with more examples of the execution plan implications.</li><li>Notebook pyspark-nb-4-streaming.ipynb shows how to process streaming data in a <strong>Spark Streaming</strong> dataframe.</li><li>Notebook pyspark-nb-5-kmeans.ipynb provides an example building a K-Means clustering model with a machine learning pipeline using <strong>Spark ML Lib</strong></li></ul><h3>5. Submitting Spark Jobs to the Spark-Master</h3><p>Jobs can be submitted to the cluster from the JupterLab host running in the jupyterlab container. This allows testing and development of self-contained Spark processing scripts instead of interactive notebook sessions.</p><p>Sample job-scripts are provided in the location</p><pre>/opt/workspace/notebooks/jobs</pre><p>The shell-script spark-submit.sh provides an example of how to submit jobs to the Spark Master at spark://spark-master:7077 for execution.</p><p>An example to estimate the value of pi is provided in pi.py and can be submitted from a bash session running the JupyterLab container as follows:</p><pre>/opt/workspace/notebooks/jobs/spark-submit.sh pi.py</pre><p>A great deal of logging diagnostic information is output to the terminal, but an estimate for the value of pi is also provided.</p><h3>6. PII Data Hashing and UDF Example</h3><p>An example of how to hash-anonymize sensitive data in a data-processing pipeline is provided in the Jupyter notebook</p><ul><li>creditcard_hash_anonymize.ipnyb</li></ul><p>This shows how the Python hashlib library can be used to anonymize data. The example notebook then saves the data out in a partitioned parquet format to the dataout folder area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UBemBe6RucZx34lmcWjPEA.png" /></figure><h3>Partition Read and Write Operations</h3><p>An example of reading partitioned data is provided in the notebook</p><ul><li>creditcard_partition_operations.ipnyb</li></ul><p>This also demonstrates using the Spark execution-plan to confirm that partition-pruning is being used for efficient data read operations and the process of changing data in a partition and overwriting the old partition with new values.</p><h3>7. Kafka and Spark Streaming Integration</h3><p>To set up a local Kafka service that runs locally on your laptop / workstation, follow the instructions in <a href="https://github.com/edbullen/DockerSpark245/blob/master/README_KAFKA.md">README_KAFKA.md</a> in the GitHub repo. This provides instructions for manual install and configuration of:</p><ul><li>Java JDK 1.8</li><li>Install and configure Apache Zookeeper</li><li>Install and configure Apache Kafka</li><li>Starting and Stopping services</li><li>Creating test Kafka topics and testing with the Kafka console Producer and Consumer utilities.</li></ul><h4>Stream Aggregation Example</h4><p>Instructions for setting up a simple example are provided in <a href="https://github.com/edbullen/DockerSpark245/blob/master/README_KAFKA_EXAMPLE.md">README_KAFKA_EXAMPLE.md</a> in the GitHub repo.</p><p>This describes the process of using the Kafka console producer to simulate a stream Producer to send key-value messages to a Topic that is aggregated by the PySpark kafka-example.py script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*1p8-VFpkADSW8AtjMWufNA.png" /></figure><p>A rolling update of aggregate values-by-key is sent to the console. In a real application this could be updated in a data-store or sent to a down-stream Kafka topic.</p><p>In order to submit the kafka-example.py to the Spark Master, the spark-submit.sh script loads a specific version of the Java library org.apache.spark:spark-sql-kafka that is compatible with the version of Kafka and the version of Spark being used.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e47c5a952cd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Rise of the Machine Learning Engineer]]></title>
            <link>https://medium.com/swlh/the-rise-of-the-machine-learning-engineer-c04bab0c29e?source=rss-e85b8edf9f08------2</link>
            <guid isPermaLink="false">https://medium.com/p/c04bab0c29e</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Edward Bullen]]></dc:creator>
            <pubDate>Thu, 13 Aug 2020 16:35:43 GMT</pubDate>
            <atom:updated>2020-08-28T22:35:18.611Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>…and the journey so far; the evolution of data and analytics</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*UzYNrkYeErDxAA9L81SkpQ.png" /></figure><h3>In the beginning — The Data Scientist</h3><p>At the start of the 2010’s the hype around Big Data really took off. As the expectations around advanced analytics and analyzing unstructured data grew, the role of “Data Scientist” appeared on the upward slope of the Gartner hype-cycle (see figure below).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z9VLv0i8Yt3Lfw8IWN6Rvw.jpeg" /></figure><p>At the same time challenges with implementing various important new data platforms referenced in the Gartner graphic were starting to become apparent (i.e. Map Reduce and other distributed systems and Database Platform as a Service) and these start to appear on the downward slope of the same Gartner hype-cycle. These platforms didn’t magically provide the Data Scientists with the data they required and it became clear that a lot of design and engineering was required to align these data-platforms with what the Data Scientists needed. Also, a huge amount of hype and expectation was developing around noSQL databases, but this mainly focused on the needs of web-scale applications and agile development rather than the needs of data analysis.</p><h3>Where most people have got to — half way there</h3><p>This disconnect between the Data and the Analytics led to disillusionment, frustration and inability to deliver many data science and analytics projects as the data part was missing.</p><p>By 2015 Big Data had been dropped off the hype-cycle (i.e. see <a href="https://www.datasciencecentral.com/profiles/blogs/big-data-falls-off-the-hype-cycle">https://www.datasciencecentral.com/profiles/blogs/big-data-falls-off-the-hype-cycle</a>), and the world of analytics and data science was pinning its hope on new data platform technologies such as<strong> Apache Spark</strong> and <strong>Data Lakes</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QFsv43GynIqmS3YxNI4-KQ.png" /></figure><h3>Enter the Data Engineer</h3><p>As a result the role of the Data Engineer was born and demand for this position soared — by 2020, according to <a href="https://www.itjobswatch.co.uk/,">https://www.itjobswatch.co.uk/,</a> 1.5% of all IT jobs in the UK were related to Data Engineering — to put this in perspective, 1.2% of all IT jobs were advertised for Web Development:</p><p>Interestingly at the same time, back in 2015, hopes and expectation for <strong>Machine Learning</strong> were judged to be at a peak. Machine Learning offered a way to put all this data to work.</p><h3>A new problem to solve — how do we get this into production?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XWCloIaxmqxe2YqUcutyYg.jpeg" /><figcaption>Heath Robinson’s pancake-making machine</figcaption></figure><p>As the role of the data engineer matured and these experts got to work fixing all the data sourcing and processing problems for the data scientists, a new issue arose — how to get all those machine learning models deployed into production (i.e. get them running real parts of the business), now that the Data Scientists had access to the data they needed?</p><p>By 2019 the focus on Machine Learning had moved up a level and on to a whole separate Gartner Hype-Cycle with multiple types of machine learning and AI techniques and use-cases considered: <a href="https://twitter.com/kdnuggets/status/1234871536391245824">https://twitter.com/kdnuggets/status/1234871536391245824</a></p><h3>Enter the Machine Learning Engineer</h3><p>To have a machine learning solution that is valuable to the business or research institute or NGO where it is deployed, it needs to:</p><ul><li>Integrate with live data sources</li><li>Be reliable, robust and accurate</li><li>Actually be usable by other people — probably many other people and applications.</li></ul><p>Ultimately a machine learning or “AI” solution is just a software product that applies algorithms or maths to some data.</p><p>To achieve an integrated robust and scalable software product, software source control and automated test frameworks for merging changes and updates into releases will be required. This allows a team of people to collaborate on a complete product that goes beyond a concept that is demonstrated by a data-scientist in a Jupyter (IPython) notebook.</p><p>Also, this needs to be underpinned by an architecture that can cater for hardware and network failures and scale to meet demand.</p><p>Finally, the nature of the domain means that the application will be heavily data-centric with more complex requirements in this area than the typical web application or transactional system. There are likely to be many bulk data aggregation requirements and complex data-feature engineering aspects, perhaps coupled with a high-volume data-streaming context.</p><p>To achieve this someone must straddle the multiple disciplines of <em>Data Architecture and Engineering</em>, <em>Data Science and Statistics</em> and <em>DevOps or Software Engineering</em> — the role of Machine Learning Engineer is born:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZHDr4frxqHn5ZzkatDEpmg.jpeg" /></figure><blockquote>A Machine Learning Engineer doesn’t just Build, they also Design.</blockquote><p>With a hybrid knowledge across multiple domains, the machine learning engineer is a critical part of the design process, not just the implementation.</p><p>Often small compromises at the data science and modelling stage can lead to huge efficiencies at the data-layer. Also, understanding the context of the coding approach taken by the data-scientist will help with translation into the production-code deployment. Conversely, being able to feed back the constraints of the code deployment platform and the data-processing platform to the data-scientist in language that makes sense to the data scientist allows this to be factored into the analysis and modelling approach.</p><p>In this way, the introduction of the machine learning engineer breaks down the inter-disciplinary silos and finally leads to the promised land of a machine-learning application delivering value from the data provided by the data engineer and analysed by the data scientist.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c04bab0c29e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/the-rise-of-the-machine-learning-engineer-c04bab0c29e">The Rise of the Machine Learning Engineer</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Data Driven Organisation]]></title>
            <link>https://medium.com/swlh/the-data-driven-organisation-44b194217f5e?source=rss-e85b8edf9f08------2</link>
            <guid isPermaLink="false">https://medium.com/p/44b194217f5e</guid>
            <category><![CDATA[data-driven-organization]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <dc:creator><![CDATA[Edward Bullen]]></dc:creator>
            <pubDate>Thu, 02 Jul 2020 11:03:22 GMT</pubDate>
            <atom:updated>2022-03-31T08:55:30.958Z</atom:updated>
            <content:encoded><![CDATA[<p><em>… and why your company should become one and how to get there</em></p><p>There are many different accounts of what a Data Driven Organisation is and the term has become synonymous with another current theme — Digital Transformation. This version is based on my personal experience across many domains from banking to charities, and from healthcare and bio-informatics to the legal and insurance sectors.</p><p><em>(artwork by Fred Bullen, age 12)</em></p><p>An organisation can be described as “data driven” when it evolves beyond processing data in core business transaction systems and record keeping stores. The Data Driven Organisation uses data to drive and transform the business as opposed to it being just a necessary operating task.</p><p>There are three repeating characteristics of a classic data driven organisation, with each class approximately mapping to a different level of maturity or sophistication:</p><h3>Decide -&gt; Automate -&gt; Create</h3><ol><li><strong>Making Decisions</strong> based on data</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mC698Y-5P6ZqDFXmDCCkbg.jpeg" /></figure><p>There is a subtle difference between having data that tells you what has happened — i.e.</p><ul><li>how much you spent / how much you earned</li><li>how many things failed / how many things are running</li><li>Who is happy / who is not happy.</li></ul><p>versus having data that can be used to inform decisions — i.e.</p><ul><li>Where to invest money / how to save expenditure</li><li>Which things are likely to fail / what the future capacity is</li><li>How to improve customer satisfaction.</li></ul><p>Making this this leap requires sufficient and accurate data. Equally important is expert interpretation of the data to provide a basis for informed decisions.</p><p>Fitting a trend on a chart in Excel might be enough to report past performance, but modelling the future usually requires modelling multiple inputs, maybe engineering derived features, and analysis of the estimated degree of accuracy based on the variation in the data.</p><p><strong>2. Automating Tasks</strong> and business processes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V2w8DjVl-lg3Of31ozOLmw.png" /></figure><p>The process of automating tasks has been continuously transforming industry and commerce since the days of the spinning jenny and the early industrial revolution.</p><p>With the advent of advanced data processing and machine learning systems aligned with continually updated data-sets (instead of nightly batch updates), new opportunities for automation are now possible moving beyond the automation of physical tasks into the realm of clerical tasks and simple decision making.</p><p>Some typical examples I have encountered recently show how this manifests itself in the real world:</p><ul><li>Automated processing of broker slips in the insurance industry</li><li>Automated credit scoring for loan approval</li><li>Analysis of legal documents to detect non-standard contract conditional statements, date and duration clauses and monetary amounts</li></ul><p>These examples show how the combination of data and machine learning is now combining to change the clerical and document processing aspects of businesses.</p><p><strong>3. Creating Value</strong> from data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sr2s2Ek16bnw9ZFmN8uL3g.jpeg" /></figure><p>The most advanced form of data driven organisation is one where the data itself becomes part of the business value creation process (instead of just being used to support existing functions more efficiently).</p><p>Making the leap from using data to run a business to using the data to be <em>part of the business</em> is more challenging than introducing automation and enhanced decision-making based on data analysis.</p><p>Facebook, Google, Amazon are some of the most famous examples of this type of company, basing their core value and revenue-generation strategy around their use of data for advertising and matching potential buyers to products.</p><p>Away from the famous Silicon Valley goliaths, recent examples that I have seen include:</p><ul><li>A retail company forced to optimise its online route-to-market as a result of COVID-19. The company already has an online-presence servicing digital sales from a dedicated warehouse. As business plummets for high-street sales and rockets for on-line sales, the company is changing its business-model with an algorithm to estimate the correct combinations of in-store stock to show as available on-line based on basket-combinations that can successfully picked from store warehouses. Post COVID-19, this company will have an enhanced and more efficient business model.</li><li>A healthcare company that was able to pivot away from its traditional business of providing analysis on data-sets on a per-client basis to building an algorithm against all the data it has received from multiple clients. This company was then able to offer a commercial service charging for access to the algorithm for other healthcare providers to use against their own data. This reduced the effort of providing the service while also making it more accessible and valuable and removing the need for the healthcare analytics company to store the service-consumer’s data.</li></ul><p>These examples may seem more rarefied and specialised, but if you are in the business of recruitment, retail, financial services or legal services then some of your competitors will already be developing their businesses in this way.</p><h3><strong>What happens If you don’t bother?</strong></h3><p>In the same way that Kodak missed out on the digital technology hardware revolution, the services sector is being disrupted by the digital information revolution.</p><p>Even if you don’t transform your business to dispense with all physical constraints of offices, products and “things”, if you can’t hire people as effectively as your competitors, if you can’t predict which clients have the best potential or you can’t provide the right products in the most efficient way and manage your workforce as efficiently as your competitors, gradually you run the risk of displacement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*chxf7_hOVTRm3zbsEzEAfw.png" /></figure><p><a href="https://www.gartner.com/en/information-technology/insights/data-analytics">https://www.gartner.com/en/information-technology/insights/data-analytics</a></p><h3><strong>How do you get there?</strong></h3><p>The first question to ask yourself is <em>— do you really need another data-lake</em>? The CV’s of many CIO’s and data architects are littered with expensive white-elephant technology projects where the primary goal was just to “store all data” and assume value and insight would naturally follow. Generally it didn’t.</p><p>My colleague <a href="https://www.linkedin.com/in/sandipanbhaumik/?originalSubdomain=uk">Sandipan Bhaumik</a> has written an excellent article on Towards Data Science: “<a href="https://towardsdatascience.com/do-you-really-need-a-data-lake-7faccb8c550d">Do you really need a data lake</a>”, that lays out the options and pit-falls very well and makes the key point that <em>a data-lake is a concept not a product</em>.</p><p><strong>Stop buying so much technology and start doing things</strong></p><p>Most organisations don’t need a Data Lake, they need a <em>Data Strategy</em>.</p><p>This<a href="https://www.forbes.com/sites/danwoods/2016/08/26/why-data-lakes-are-evil/#683331024f73"> article published on the Forbes website</a> makes the point <em>“…companies should view their data in a data supply chain perspective that has a beginning, middle, and end, with an organized plan for how data is brought in, found, explored, and transformed…</em>”. This simple mindset, taken from the point of view of what needs to be supplied, could save many organisations a lot of money and help them reach the stage where they can make Decisions more effectively, Automate processes and create Value from their data.</p><p>Ultimately it does not matter how sophisticated or outmoded your technology is — it is the value of the data and analytics being supplied that matters.</p><h3><strong>Diving into the technology</strong></h3><p>Despite the previous point, it is likely that most organisations will need to develop existing technology and processes and also introduce new technology to transition to being a data driven organisation.</p><p><strong>Cloud does help … but it needs to be built for data processing</strong></p><p>The benefit of migration of IT services to the cloud really does live up to the hype. Cloud services speed up the time to value and enable the transformation of capability in a way that was just too difficult to do building technology components in a private data-centre.</p><p>Unfortunately many cloud transformation programs are designed and implemented by infrastructure architects and the data platform and associated data-services are added on later. Often, the data architecture that was previously used in a non-cloud environment is just copied across. Placing data services at the centre of a cloud migration project and the future roadmap will provide greater value to the business as this is where all the value is derived from.</p><p>The move to Cloud brings in the opportunity to move to a Serverless Database architecture: Google, Microsoft, Oracle, Amazon, and other new incumbents such as Databricks and Snowflake all offer different variations of “serverless” data processing services. This just means that data is stored and processed via some form of API or interface and the details of physical deployment and management of the environment and scaling processing are managed by the cloud vendor. This sounds simple on paper but in practice it is revolutionary because all the inertia and the constraints around the complexity of IT infrastructure are abstracted away from the data service.</p><p>At a lower level, the advent of cloud object storage with API access services (Azure Blobs / Google Storage Buckets / Amazon S3) changes the way applications can be designed, how the data-lifecycle can be managed more efficiently and in some cases applications can integrate directly with the storage layer and perform processing and derive value directly in the storage service without having to move data into higher level services.</p><h3>In Summary</h3><p>to become a Data Driven Organisation it is necessary to have a <em>Data Strategy</em> not a Data Lake technology project and use this to create a <em>Platform for Innovation</em> that goes beyond just automating existing processes. This should be underpinned with a <em>Supply Chain Mentality</em> to service business functions and cloud native apps with the data and analytic processing they need.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44b194217f5e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/the-data-driven-organisation-44b194217f5e">The Data Driven Organisation</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>