<?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 Yellowbrick Data on Medium]]></title>
        <description><![CDATA[Stories by Yellowbrick Data on Medium]]></description>
        <link>https://medium.com/@yellowbrick-data?source=rss-83c51dac6fbb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XXH_h_Knew-IArqp92ZVFQ@2x.png</url>
            <title>Stories by Yellowbrick Data on Medium</title>
            <link>https://medium.com/@yellowbrick-data?source=rss-83c51dac6fbb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:39:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yellowbrick-data/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[A Data Warehouse for Data Apps]]></title>
            <link>https://medium.com/@yellowbrick-data/a-data-warehouse-for-data-apps-6137d82b4c6b?source=rss-83c51dac6fbb------2</link>
            <guid isPermaLink="false">https://medium.com/p/6137d82b4c6b</guid>
            <category><![CDATA[modern-data-stack]]></category>
            <dc:creator><![CDATA[Yellowbrick Data]]></dc:creator>
            <pubDate>Wed, 22 Feb 2023 04:31:22 GMT</pubDate>
            <atom:updated>2023-02-22T04:31:22.872Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This blog was originally posted by Neil Carson, CEO of Yellowbrick Data on yellowbrick.com/blog</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D0kz8uzEikJe8lrFFTFziw.jpeg" /></figure><p>We’ve seen more and more customers building <em>data apps</em>: Applications that put real-time analytics in the hands of consumers and business customers at scale by presenting insights from very large data sets (typically tens to hundreds of terabytes) through easy-to-use web and mobile apps.</p><p>The most obvious example of a data app may be something like Google Analytics and Search Console for analyzing your website’s performance. In the consumer world, Intuit Mint, Credit Karma, or financial data apps like the American Express apps let us search, analyze and drill down into spending habits.</p><p>In the B2B domain, many apps fit the mold, like those from our customer <a href="https://yellowbrick.com/resources/case-studies/symphony-retail-ai">Symphony RetailAI</a> to analyze customer and supplier data of package goods, <a href="https://yellowbrick.com/resources/case-studies/threatmetrix-split-second-fraud-detection">LexisNexis</a> to protect most internet purchases against fraudulent identities, <a href="https://yellowbrick.com/resources/case-studies/teoco-insights-innovation-and-savings">TEOCO</a> to help telecom carriers with revenue assurance, or Nielsen and NCSolutions for understanding consumer behavior. We’ve also got healthcare apps for recommending provider assignments for patients, telemetry analysis apps for various types of devices, and even government apps that help find criminals.</p><h3><strong>Characteristics of Data Apps</strong></h3><p>Data applications’ needs are different from traditional enterprise data warehouses which tend to be financially focused platforms where purchasing criteria include compatibility with ETL and BI tools, batch reporting, that sort of thing. Here are some traits of data apps:</p><ul><li>The apps are built by software developers (rather than IT/BI staff) and normally born in the cloud.</li><li>The apps offer a mobile or web user interface, along with an API equivalent, that runs SQL queries against a back-end database to deliver insights with customisable, explorable criteria, frequently graphically and most often augmented with machine learned predictive models.</li><li>They typically run on Kubernetes with cloud native architecture.</li><li>The data volumes are large; in our customer base, from single-digit terabytes through to several petabytes, certainly more than traditional scale-up databases can handle.</li><li>The data velocity tends to be fairly high with a need to have the most recent data available quickly. For example, if I’m analyzing payment fraud, I need the data from the most recent seconds, not last week.</li><li>The applications require interactive responsiveness for common queries — in a couple of seconds or less; it’s not OK to ask for an insight and then wait 20 minutes for it to show up.</li><li>The workloads tend to have an ad-hoc component to let users slice and dice the data different ways, from running giant aggregates to browsing records or searching for needles in haystacks.</li></ul><h3><strong>What Data Apps Need From Their Database</strong></h3><p>Here are some things to think about when deciding on the best database to back your application:</p><p><strong>Economies of scale:</strong> As you become more successful and add users, queries, services, and concurrency, and data volumes grow, your database expenditure must increase more slowly.</p><p><strong>Run alongside, and scale with, your app: </strong>This means being based on Kubernetes to leverage the strengths of cloud native architecture for controlling scale, cost, and consumption, and not having to pay egress charges to get data in or results out.</p><p><strong>Run next to your data: </strong>Can the database run and answer queries next to the data at rest? At the edge? In your choice of cloud provider, in your own cloud account? Or in a co-lo at scale? If you have to ship all the data off to a centralized service provider, they will mark up all the supporting infrastructure and sell it back to you, pocketing your revenue and <a href="https://yellowbrick.com/blog/cloud/being-outcompeted-by-suppliers/">eating away at your margin</a>.</p><p><strong>Data velocity: </strong>Can the database ingest and analyze real-time data without the app having to worry about micro-batching, unifying queries across OLTP or OLAP databases, or other unnatural acts?</p><p><strong>Interoperability and avoiding lock-in: </strong>Is the database compatible with other open source databases, so that if one product doesn’t meet the app’s needs it can be migrated to a different one? This applies to everything from SQL dialect to connections to authentication to data ingest from tools like Kafka or Pulsar.</p><p><strong>Resource isolation: </strong>Users need fast answers that meet SLAs no matter how much ETL or data wrangling is going on. Large, important consumers of data should be allowed isolated resources. This means support for multiple compute clusters aka virtual warehouses with separate storage and compute.</p><p><strong>Workload management: </strong>Computationally expensive (or badly written!) queries must not hog compute resources and get in the way of interactive response times.</p><p><strong>Elasticity: </strong>Compute capacity must be scalable to meet demand without incurring downtime.</p><p><strong>How The Yellowbrick Data Warehouse Meets These Needs</strong></p><p>At Yellowbrick we’ve created a <a href="https://yellowbrick.com/resources/whitepapers/inside-the-yellowbrick-data-warehouse">Kubernetes-based data warehouse</a> that runs inside your own cloud VPC. It supports separate storage and compute with multiple clusters, all managed through SQL. The data warehouse runs in your own cloud VPC so you pay your own object storage and compute instance costs; <a href="https://yellowbrick.com/yellowbrick-data-warehouse/pricing/">we only bill</a> for compute vCPUs used by our software, the unit cost of which decreases with scale and is predictable with subscriptions.</p><p>Since Yellowbrick is designed for data apps, it’s PostgreSQL compatible and comes with open source connectors for Kafka and other real-time streaming data ingest and CDC tools. Thanks to our heritage in high-end enterprise data warehousing we have workload management capabilities that allow truly ad-hoc environments that are still fair to interactive users along with features like asynchronous replication for disaster recovery.</p><p>Oh, and we run in co-lo and on-premises as well as the public cloud if you need.</p><h3>How We’re Different</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wndEa02u3mfBeBI6s8Qk9g.png" /></figure><h3><strong>A Great Reference Architecture</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eDbrOPAOTdOP8JZB.jpg" /><figcaption>A Reference Architecture for Data Apps</figcaption></figure><p>This is how our customers run data applications. A Yellowbrick Data Warehouse instance is provisioned in a VPC in their cloud account. They pay all their infrastructure costs for running it; Yellowbrick stores data on cloud object storage and has a choice of compute instances available for the “clusters” that run queries.</p><p>At least one load cluster is present for dealing with data ingest, and sometimes a second cluster for integrating ETL from traditional databases or performing ELT (“data wrangling.”). The load cluster — and ETL cluster if present — continually insert/delete/merge/CTAS and transform data as needed which is then persisted in the object storage.</p><p>Multiple additional query clusters are provisioned for running app queries against the data. Each compute cluster caches data locally for performance and sees the latest available written data consistently (ACID) and in real-time. The compute clusters are typically small, of the order of a handful of nodes, but each one forms the unit of scale. To cope with increasing demand, more computer clusters are spun up, and when demand wanes, they can be spun down to save money, with no user impact. A cluster load balancer rotates query load between the compute clusters, automatically choosing the least busy one. Within the clusters, workload management makes sure long-running queries don’t block short, interactive ones.</p><p>Some customers have dedicated compute clusters for batch and critical path processing in addition to scalable ad-hoc query clusters. Yellowbrick supports thousands of compute nodes and clusters.</p><h3><strong>Conclusion</strong></h3><p>Data applications need a data warehouse that runs alongside the application, scales predictably, and offers <a href="https://yellowbrick.com/reduce-cloud-data-warehouse-costs/">economies of scale</a> to reward a growing application business with higher profit margins. Such a modern data warehouse must be elastic, with separate storage and compute, be capable of handling real-time data, and based on Kubernetes Cloud Native architecture that can run anywhere.</p><p>Only the Yellowbrick Data Warehouse fits the bill, and augments it with enterprise-class features like asynchronous replication for disaster recovery, SQL stored procedures, and a huge ecosystem of certified, interoperable tools.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6137d82b4c6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Being Out-competed by Suppliers]]></title>
            <link>https://medium.com/@yellowbrick-data/being-out-competed-by-suppliers-70d5238694f8?source=rss-83c51dac6fbb------2</link>
            <guid isPermaLink="false">https://medium.com/p/70d5238694f8</guid>
            <category><![CDATA[data-warehouse]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[yellowbrick-data]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[analytics-database]]></category>
            <dc:creator><![CDATA[Yellowbrick Data]]></dc:creator>
            <pubDate>Thu, 06 Oct 2022 06:19:08 GMT</pubDate>
            <atom:updated>2023-02-14T16:04:10.798Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This blog was originally posted by Neil Carson, CEO of Yellowbrick Data on yellowbrick.com/blog</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*tw506RW3PexM67yU.jpg" /></figure><p>It’s long-term trouble to be running a business where your competitors control the cost of your product. This didn’t end well at my previous employer, and won’t end well at some <strong>cloud data warehouse</strong> companies either.</p><h3><strong>Lesson Learned From My Previous Employer</strong></h3><p>Once upon a time, in 2005, a computer storage company founded by an old friend and colleague of mine, David Flynn, built the first working enterprise SSD in a time where everyone else was failing. The company was called Fusion-io, and its revolutionary product was called the ioDrive. NAND flash was starting to become popularised by consumer devices such as mobile phones, capacities were starting to increase and prices were starting to drop. Some companies including Intel had tried to build enterprise-class storage drives ( <strong>hard drive replacements</strong>) around NAND flash, but connecting them through SATA which acted as a serious performance bottleneck. By connecting the Flash to the PCIe bus and building a log-based flash translation layer in software, Fusion’s ioDrive supported tens to hundreds of thousands of IOPS. Business boomed because the technology enabled hyper-scalers such as Facebook, Apple, Microsoft, Tencent and Alibaba to grow faster.</p><p>Over time, prices of the Flash media continued to drop: What was $20/GB then became $0.20/GB today. The factories (fabs) that supplied the Flash memory, like Samsung, Intel, Hynix, Toshiba and Sandisk, wanted to build SSDs of their own. After a few years, they too perfected the software and used the PCIe bus, and introduced an interoperable standard called NVMe. The fabs undersold Fusion-io because they had a shorter value chain with less margin stacking, Fusion-io couldn’t grow and was itself sold to one of the fabs.</p><h3>All About Margin Stacking</h3><p>If I’m a company building and selling any kind of product, gross margin really matters: It’s what the value I added to the product is worth to the market and is reported as the percentage that I make on the product sale:</p><p><strong>Gross_margin_percent = 100 * (profit / revenue);</strong></p><p>In a simple example, if I buy raw materials and use them to build a Gizmo for $1 then sell all of it to Acme Ltd. for $3, I have a 66% gross margin. That’s a pretty good margin in computer hardware, it’s attractive to investors, and it also turns out it’s a pretty good margin in cloud services too.</p><p>In reality though, the “value chain” — the path from raw materials to end customer — is much more complex, and at each step of this chain, margin is added. This is what we call “margin stacking:” Let’s say Acme Ltd. wants to sell the Gizmo on to an end customer, perhaps branding it as Acme-Gizmo+ and adding some sexy packaging. Acme buys the Gizmo and tarts it up to make the Acme-Gizmo+. Acme also wants to make its 66% gross margin, so it takes the Gizmo, puts in $0.20 of work for branding and packaging, meaning its total cost is $3.20 — and then sells the Gizmo to the end customer for $9.60.</p><p>This is why basic goods sold in the West are so expensive, despite them being made in China so cheaply — and why import tariffs didn’t make a whole lot of difference. The amount of <strong>margin stacking</strong> from Chinese factory floor to Western customer is so substantial, adding tariffs earlier in the value chain made little difference.</p><h3>From Flash Value Chain…</h3><p>A simplified value chain from Fusion-io looked like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*-mhYsd2qAg1CO10z.png" /><figcaption>Fusion-io value chain</figcaption></figure><p>The NAND fabs controlled the price of the chips purchased by Fusion to make SSDs. When the NAND fabs learned to make SSDs themselves, they wouldn’t lower the price of the NAND chips to Fusion-io; instead they sold whole SSDs for not much more than the price of the chips:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*qkRtnvbkPFeErG1X.png" /><figcaption>NAND fab value chain</figcaption></figure><p>One less layer of margin stacking made the products almost 3x cheaper to end customers. Fusion’s business model became unsustainable. It’s as though the Gizmo company learned how to do good branding itself, cut out Acme, and sold direct to the customer for $3.20 each. Nobody wants to pay 3x more for the same thing.</p><p>The NAND fabs controlled the price of the chips purchased by Fusion to make SSDs. When the NAND fabs learned to make SSDs themselves, they wouldn’t lower the price of the NAND chips to Fusion-io; instead they sold whole SSDs for not much more than the price of the chips:</p><p>One less layer of margin stacking made the products almost 3x cheaper to end customers. Fusion’s business model became unsustainable. It’s as though the Gizmo company learned how to do good branding itself, cut out Acme, and sold direct to the customer for $3.20 each. Nobody wants to pay 3x more for the same thing.</p><h3>Cloud Data Warehouses and Snowflake</h3><p>This brings us to what’s happening in the data warehouse industry. The cost of cloud compute and cloud storage continues to drop, and with each year database software becomes increasingly more efficient: More efficiency means less money spent on compute and thus savings to the customer.</p><p>Snowflake has a wonderful data exchange and data sharing ecosystem, however while it focuses on its war with Databricks in machine learning, more and more of their customers are becoming concerned at the cost of the core database engine itself, the credit-based business model that discourages extra consumption, and the lock-in business practices. There are a great number of similarities between this and the Fusion-io world. Snowflake’s biggest competitors are Amazon, Google and Microsoft; Snowflake, to operate, also resells storage and compute at added gross margin from Amazon, Google and Microsoft:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*6YXFrK2ZeLZN6-dx.png" /><figcaption>Snowflake data warehouse value chain</figcaption></figure><p>In some cases, the cloud providers can undersell Snowflake themselves, by doing a simplified value chain with less margin stacking and the advantage that there’s only one vendor to deal with:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*onKc4em7Nd1RIAWX.png" /><figcaption>Cloud vendor data warehouse value chain</figcaption></figure><p>This however has all the disadvantages of a single-cloud data warehouse: The warehouse is coupled to the cloud. Companies looking to minimize cloud concentration risk are unable to put all of their eggs in one cloud vendors’ basket. To date, the only solution to this dilemma has been to buy Snowflake. However, cue Yellowbrick with a new business model.</p><h3>Yellowbrick Value Chain</h3><p>At Yellowbrick, we sell data warehouse software to our customers that provides all the ease-of-use advantages of Snowflake, but without marking up cloud providers’ infrastructure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*EMFrKINSamuFaJTr.png" /><figcaption>Yellowbrick Data Value chain</figcaption></figure><p>Our customers buy their own storage and compute from their cloud providers (or, from hardware providers for on-premises users) and database software from Yellowbrick.The Yellowbrick software is sold without marking up underlying infrastructure, allowing Yellowbrick to make a high gross margin. The customers pay their own negotiated rates with Amazon, Google and Microsoft — sometimes including free storage — for their cloud infrastructure, which are almost always lower prices than Yellowbrick could buy them for anyway. This cuts an entire step out of the value chain and allows us to offer a Snowflake-like database user experience but with added benefits apart from just cost: Customers’ data stays in VPCs that they manage, allowing them to better control their security and access and allowing them to take into account all regulatory and data sovereignty concerns. The sign-up experience is as simple as a few clicks of the mouse.</p><h3>Conclusion</h3><p>Shrinking value chains — going direct to customers, bypassing intermediaries — has always been the foundation of truly disruptive businesses, from Dell to Uber and Lemonade. At Yellowbrick we’ve done this with the cloud data warehouse, and also done away with the lock-in business practices and ahead-of-time credit purchases. We’ve done our best to try to make an open standard, too, by retaining PostgreSQL compatibility on the outside. We’ve built a lower cost, altogether more business-friendly and more interoperable data warehouse and avoided the classic trap of our competitors controlling our costs.</p><p><em>Originally published at </em><a href="https://yellowbrick.com/blog/cloud/being-outcompeted-by-suppliers/"><em>https://yellowbrick.com</em></a><em> on October 6, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70d5238694f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplifying Manufacturing Test Automation]]></title>
            <link>https://medium.com/@yellowbrick-data/simplifying-manufacturing-test-automation-d39eabdcbf24?source=rss-83c51dac6fbb------2</link>
            <guid isPermaLink="false">https://medium.com/p/d39eabdcbf24</guid>
            <category><![CDATA[data-warehouse]]></category>
            <category><![CDATA[cloud-data-warehouse]]></category>
            <category><![CDATA[testing-strategies]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Yellowbrick Data]]></dc:creator>
            <pubDate>Mon, 19 Sep 2022 23:22:22 GMT</pubDate>
            <atom:updated>2023-02-14T15:32:33.454Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This blog was originally posted by Drew Gillies, Systems Integration and Test Engineer on yellowbrick.com/blog</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aj5W3tBmpZPnmq278L0EUA.jpeg" /></figure><p>I came into manufacturing test automation a little over a year ago when I joined Yellowbrick. We have new generations of hardware that ship pretty frequently because each year there are better CPUs, SSDs, networking, and so forth. Assuring systems are built consistently and correctly is a nontrivial problem and can be resource-intensive and error-prone. We also need to ensure that the software is installed the same way and that the tests are started the same way. Missing these issues before delivery can result in unhappy customers and lots of heartaches.</p><p>We also have two different contract hardware manufacturers. I was recently tasked with porting our processes from the first contract manufacturer to the second. I thought that I’d target making the processes the same for everyone. When I showed this process to my co-worker, he said the operators at the second contract manufacturer would need an easier-to-follow process with fewer manual steps.</p><p>This made a lot of sense to me. I was trained in the current process and had to learn how to troubleshoot when things went wrong. I hadn’t thought about making the process less hands-on.</p><p>I also hadn’t considered the technical level of expertise each contract manufacturer had. Every manual step increases the risk of error and takes up someone’s valuable time, so we try to minimize the steps involved with the process. Many of our manufacturing processes are new and take time to refine. Regular reviews of the processes are needed to keep them as streamlined as possible.</p><p>On the other hand, you don’t want to change your manufacturing process frequently. It takes time to set up a process and the standard operating procedure, and then train the operators. Changing the process too often could lead to confusion and unexpected errors. It reminds me of the saying, “If it ain’t broke, don’t fix it.”</p><p>I knew the process was mostly automated already. But it required logging into the management processors in the browser for two servers per cluster to get the external IP addresses that come up differently after each initial bring up. These two logins were required to start the script and then again when the servers rebooted during the first part of the script.</p><p>Being familiar with this process, it didn’t seem that complicated to me. But the operators at the second contract facility would not know how to log into a website to get a remote console redirect and then run commands in there. I had to come up with a way to get these external IP addresses programmatically.</p><p>We used a process with our first contract manufacturer that would log into the management processor programmatically. I dug up the code and saw how it was done. I figured this would be the best route to take to solve the problem. This would let me get into the management processor using a Serial Over LAN (SOL) connection and grab what I needed without ever leaving the terminal.</p><p>There was just one problem. When I tried using the process to get into a system at the second contract manufacturer, it didn’t let me in. The SOL connection wasn’t working.</p><p>I reached out to a senior developer to get some guidance on how to allow the SOL connection. While troubleshooting this, I noticed that our Ubuntu USB drive allowed SOL connections but when we booted into CentOS, we couldn’t get the SOL connection up.</p><p>To fix the SOL connection in CentOS, I had to modify the clone images we use on the clusters. I copied over:</p><pre>/usr/lib/system/system/serial-getty@.service to /etc/systemd/system/serial-getty@ttyS1.service.</pre><p>This copies the default login prompt, then I needed to edit the ExecStart to look like:</p><pre>ExecStart=-/sbin/agetty 115200 %I $TERM</pre><p>to remove the keep-baud arg and fix the baud rate at 115200.</p><p>After that I linked the service to:</p><pre>/etc/system/system/getty.target.wants/.</pre><p>Once this was done, I rebooted the systems to let the service start up. This process allowed me to get the SOL connection into the management processor which allowed me to programmatically grab the IP addresses my script needed. All operator interaction was removed with the script, so it can now be called with just one command. This makes the process easier for me and everyone involved. Success.</p><p>All this insight was facilitated by a process review from a colleague who had been outside the process. I’m very grateful for the help and glad to have co-workers that can help me see past my blind spots. We can get so caught up with putting out fires that we can forget to think outside the box a little. We can free up our time by further automating things.</p><p>As far as plans for the future, it may be best for us to create a desktop application that can run with input boxes for the parameters such as which station the cluster is at and what we want to name it to kick off all the installations and test that we’ve got in manufacturing.</p><p>If we were to go this route, I think the button to start it should say “full send” because it would start a process that I pray works well and doesn’t break too frequently. The future is wide open and perhaps with operator feedback, we will decide to take it in a different direction.</p><p>Currently, the process involves two operator scripts that are just two commands and the question is whether condensing them to something with a GUI instead of a command line interface is worth it. I guess it comes down to how many engineering resources we want to commit to making this process simpler and seamless. I’ve found that estimating how long something can take in engineering hours is a really hard task because I’m usually too optimistic. If I weren’t optimistic, how could I take the constant error messages and setbacks that so often come up on software?</p><p>It’s been a wild ride with the engineering work I’ve done for Yellowbrick. But the work is satisfying because the issues we’re solving seem to be pressing and that motivates me to work hard for solutions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d39eabdcbf24" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Secure Container Environments]]></title>
            <link>https://medium.com/@yellowbrick-data/how-to-secure-container-environments-1d7ad341e36?source=rss-83c51dac6fbb------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d7ad341e36</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[kubernetes-rbac]]></category>
            <category><![CDATA[kubernetes-security]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Yellowbrick Data]]></dc:creator>
            <pubDate>Wed, 14 Sep 2022 23:27:49 GMT</pubDate>
            <atom:updated>2023-02-14T15:51:36.571Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This blog was originally posted by Ryan Atkinson, Cloud Security Architect on yellowbrick.com/blog</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gPoVVtL6skcSBArkHy9LXw.jpeg" /></figure><p>Using ABAC will significantly reduce the complexity of RBAC while giving more fine-grained access control to the policy. So how can we use ABAC to apply policy consistently across clusters and teams?</p><p><strong>Using OPA to Apply Policy</strong></p><p>The best way to consistently apply policy is to use a central policy decision point (PDP). Then the management of policy is configured at one location and can be easily maintained. Typically, the policy enforcement point (where it is determined if the subject has access to the resource), is also in a central location. This can create latency and bottleneck issues, which we don’t want, especially in a Kubernetes environment.</p><p>The solution to this is to use OPA (Open Policy Agent). From the <a href="https://www.openpolicyagent.org/docs/latest/">OPA documentation</a>:</p><blockquote>“The Open Policy Agent (OPA, pronounced “oh-pa”) is an open source, general-purpose policy engine that unifies policy enforcement across the stack. OPA provides a high-level declarative language that lets you specify policy as code and simple APIs to offload policy decision-making from your software. You can use OPA to enforce policies in microservices, Kubernetes, CI/CD pipelines, API gateways, and more.”</blockquote><p><strong>How to Protect Access to Kubernetes Objects</strong></p><p>Kubernetes Admission Controllers enforce semantic validation of objects during operations (create, update, delete). Protect Kubernetes Admission Controllers with OPA and allow for enforcement of custom policies on Kubernetes objects. Simply deploy the OPA admission controller into Kubernetes. Register OPA as an admission controller. Define a policy and load it into OPA (this can be done using ConfigMaps or using a central repository model).</p><p>This policy can do anything. One example might be to enforce that ingress objects must have hostnames whitelisted on the namespace containing the ingress and ingresses in different namespaces must not have the same hostname.</p><p>Any other enforcements on Kubernetes objects can be done, it’s up to the policy team to decide what to enforce. And the policy can be centrally managed by the policy team.</p><p>Policy on creating, updating, and deleting Kubernetes objects is now enforced by a common, central, easily managed policy.</p><p><strong>How to Protect Container Runtime Access</strong></p><p><strong>Open Policy Agent</strong> can also be used in conjunction with Linux-PAM to control host-level access. Again, centralized policy using OPA to control all SSH and sudo access to containers. Linux-PAM is enabled in the container and configured to delegate authorization decisions to plugins.</p><p>OPA has a Linux-PAM plugin for this purpose. Install this plugin in the container and configure Linux-PAM to delegate to the OPA plugin and OPA can now make policy decisions for SSH and sudo access of all containers.</p><p><strong>How to Protect Ingress to Kubernetes Containers</strong></p><p>Finally, we need to protect external container access. There are two approaches to this:</p><ol><li>OPA can be directly integrated into each container service using code.</li><li>A service mesh can be created and integrated with OPA to protect all Kubernetes containers.</li></ol><p>Directly integrating a PDP inside code is not a huge task. It only requires discipline from developers to include the library and make the policy decision call before allowing access.</p><p>This method can be faster to implement, especially if the number of languages used is relatively small. Installing an OPA-enabled service mesh is a more over-arching method to protect all containers.</p><p>Istio is an excellent service mesh that can be used for this purpose. Istio runs between all external access and internal container services. We add a simple Lua filter to Istio which intercepts all requests and makes an <strong>OPA policy decision</strong> for that request before allowing or rejecting the request through to the service.</p><p>This simple integration now enables Istio resources to be OPA enabled, and policy is now centralized and managed by OPA.</p><p><strong>Secure Container Environments</strong></p><p>Open Policy Agent is now integrated at all levels of <strong>Kubernetes infrastructure</strong> that we use at Yellowbrick protecting container-level access, host-level access, and service-level access.</p><p>OPA uses a programming language called rego. It is very extensive and can pull in data from many different data sources to make policy decisions. This creates a framework for very fine-grained access control policies to be written or can be used to write simple RBAC style policy. It’s up to the policymakers to decide how fine-grained to go for access control.</p><p>Monitoring policy decisions and access to resources is another advantage of using this framework. All policy decisions will be logged and can be monitored and audited.</p><p>By using Open Policy Agent, we can solve the three biggest security concerns using Kubernetes: applying policy consistently across clusters and teams, securing containerized workloads at runtime, and controlling access to clusters.</p><p>With a little bit of configuration and using the proper tools, we can have ease of mind that the entire <a href="https://yellowbrick.com/blog/cloud/yellowbrick-squares-up-to-the-data-warehousing-heavyweights/">Kubernetes infrastructure</a> is secure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d7ad341e36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Is Workload Management and Why Do I Work on It?]]></title>
            <link>https://medium.com/@yellowbrick-data/what-is-workload-management-and-why-do-i-work-on-it-9dc9e22343d2?source=rss-83c51dac6fbb------2</link>
            <guid isPermaLink="false">https://medium.com/p/9dc9e22343d2</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[real-time-analytics]]></category>
            <category><![CDATA[data-warehouse]]></category>
            <category><![CDATA[query-planning]]></category>
            <dc:creator><![CDATA[Yellowbrick Data]]></dc:creator>
            <pubDate>Mon, 15 Aug 2022 19:17:34 GMT</pubDate>
            <atom:updated>2023-02-14T15:55:24.835Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4fna_IoQbfNZc6vcxSqhaA.jpeg" /></figure><p><em>This blog was originally posted by Kurt Westerfeld, Principal Engineer on yellowbrick.com/blog</em></p><p><strong>Gentleman’s Bet</strong><br>One of the things I have noticed about engineers is that there’s a certain gravity that pulls them to a particular type of work. It’s not that there’s always a particular interest in doing a specific type of development — it’s more complex. It might be a skill set that is suited for a particular job that is hated, but that serves the project so well that person MUST do that work. Or perhaps the person loves hacking C++ so much that they shepherd every problem down the road to the point where they’re hacking where they are happiest. The attraction of these dynamics tends to pull them to these tasks. Gravity.</p><p>What I noticed about myself over the years I have been working is that I am essentially floating in space. There isn’t any gravity where I live. No matter where I have worked, after a few years of being there I look around me and I have my hands all over everything. Gravity doesn’t pull me in any particular direction; I land everywhere. I haven’t met anyone else like me; actually, I think my managers and coworkers probably get seriously annoyed because I end up making messes all over the place. On balance, I hope the benefits of having me on the team are positive, but I think it’s probably a PITA for everyone involved!</p><p>When I started at Yellowbrick, Neil Carson and I sort of had this gentleman’s bet. After Neil hired me, he felt like I would tend to work on UI mostly at Yellowbrick, and I told him I would end up working on a lot more than UI. I think I won this bet (but I think I’ve lost more than I’ve won over the years)) because I spend probably about 20% of my time doing UI work. The rest of the time I think I am floating around all over the place, working on what I think will make the product better, all the while focusing on <a href="https://yellowbrick.com/blog/use-cases/yellowbrick-helps-banks-achieve-analytics-and-data-warehousing-goals/"><strong>Workload Management</strong></a>, or <strong>WLM</strong>, as a cross cutting concern.</p><p><strong>What is Workload Management?</strong><br>So what is WLM? From one simplistic perspective, <a href="https://yellowbrick.com/blog/product/life-of-a-yellowbrick-query/">Workload Management</a> is the set of knobs you give an administrator to control the resources on an MPP database: CPU, memory, and disk. At Yellowbrick, our WLM lets an administrator do these things to establish a policy that governs what resources a query is given. What’s this look like?</p><p>We think of WLM as:</p><ul><li>Query grammar.</li><li>Query parsing.</li><li>Query planning.</li><li>Query optimization, tree reshaping, plan rebuilding.</li><li>Query analysis.</li><li>Query code generation, including transforms from an AST to C++.</li><li>Query compilation.</li><li>Query resource planning.</li><li>Query policy.</li><li>Query execution.</li><li>Query distribution.</li><li>Query concurrency.</li><li>Access Control and privileges, role management, identity management.</li><li>Encryption, compression.<br>FPGA.</li><li>Network stack development, including Infiniband, DPDK, codegen-ed RPC, etc.</li><li>Kubernetes orchestration.</li><li>AWS/Azure/GCP hardware optimizations.</li><li>Data ingest, unload, backup, restore, custom ingest formats.</li><li>Operating system customization.</li><li>Linux kernel customization.</li><li>Custom switch development.</li><li>Firmware and embedded systems development.</li><li>HA stack.</li><li>Network driver customization.</li><li>Private networking.</li><li>Data replication.</li></ul><p>Above all that lives your typical middleware, database, and front end stack. And yet at Yellowbrick, we have no one single engineer that does a bit of ALL of that above or below the line where the database lives. There is no “full stack” engineer because no one at Yellowbrick can do all those jobs. It’s really, what coordinate space(s) do you live in at Yellowbrick? Because I don’t think we have much in classic computer science and systems development that we DON’T do.</p><p><strong>Cross Cutting Concerns</strong><br>Statistics have to be measured EVERYWHERE in Yellowbrick for the duration of a query. WLM is all about aggregating and building a picture of an overall workload, and letting you drill into any session, transaction, or query within the workload to understand where bottlenecks are, where queries take the wrong path, are spending too much time spilling, or using too much memory. But in an MPP data warehouse like Yellowbrick’s, where we obsessively engineer the execution pipeline down to machine code, we aren’t allowed to measure these statistics in the same way as other products or perhaps enterprise databases do.</p><p>I remember the day and I remember where I was sitting when I had my first conversation about statistics and how we would collect them with Thomas Kejser. We were sitting in the back of Neil’s car coming from a meeting at one of our original investors, and Thomas and I were in the middle of an argument over how we would measure statistics to build the picture of a query’s lifecycle.</p><p>For Thomas and I, this was probably our first encounter, so we were arguing from different viewpoints. From my perspective, we were going to install some agents on our executors to measure CPU usage and memory usage, because I came from a classic background in enterprise management, and that’s what you do. You measure. You sample. And you build a picture.</p><p>Thomas told me we couldn’t afford the switch in execution context to measure performance, because we would perturb our query’s performance. We were obsessively building this bare-metal machine executor that was using AVX instructions and attempting to avoid thrashing the L1/2/3 cache pipelines of the CPU. I learned that performance was king at Yellowbrick. It was a way of thinking I hadn’t dealt with since I was at University doing systems programming coursework. I was an application engineer, and Thomas wasn’t.</p><p>The seminal moment came when I told Thomas you HAD to have an agent on the worker to measure performance, because how could you know and alert if your CPU utilization went above a certain threshold? There, I had him. I didn’t know Thomas that well at this point, but I knew I was going to be able to install that agent and move on to measuring CPU performance and other stuff we needed. Thomas smiled. He said, “We consider it a bug if your CPU utilization drops below 100%.”</p><p>I didn’t understand. Normally, when your database starts spiking, you call someone to go fix it. I had built an entire company as the CTO around the notion that you take such alerts and aggregate them at a massive scale to build a better picture. It was called “Business Service Management,” and I knew a lot about it.</p><p>So of course I kept pushing back. But being the engineer that I am, I started to fear. A lot. I told Thomas to explain himself, and he told me the bad news: Yellowbrick was going to be its own operating system, and we were going to fully utilize every drop of CPU of every core on every place the query was running. There wasn’t even a single spare compute cycle we would devote to ANYTHING that would perturb our query’s performance when it was given the go to execute, and it wasn’t going to be something that we debated.</p><p>So if during a query’s lifecycle it is using less than 100% of the CPUs, across all our query executors, that we had done something wrong as engineers and we would consider it a bug, or perhaps a deficiency to go address. The CPU had to be running at 100% or we didn’t succeed. The ship sailed, and this wasn’t a debatable position to argue over.</p><p>This was my Maxell Moment at Yellowbrick:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*tNc49Qw5hnEp9NVr.jpg" /><figcaption>Maxell “Blown Away Guy” advertisement for cassette tapes</figcaption></figure><p>Well, f — me. I think I said to Thomas, “I am Jack’s lack of happiness.” I remember him laughing in my face over this. He got it, and he got that I got it. This news washed over me like a hurricane blast.</p><p>I ended up with so many questions about this. How would I show a picture over time of the utilization of our product? How would I show when memory was over-used, or under-used? I had already started to think about WLM, and this was 2015 before we even started on WLM. But this is the point: your big picture visualizations support WLM, and that understanding leads your administration to the resources for an <a href="https://yellowbrick.com/blog/engineering/what-is-workload-management-and-why-do-i-work-on-it/">MPP database</a> to build the WLM tools you use to tune. At Yellowbrick, we were going to be VERY different than I had been in the past.</p><p>And here’s a hint about where we landed: yes we do collect statistics, LOTS of them. We don’t do it the same way. More on that in another blog.</p><p><strong>Build a Picture to Understand Your Problem</strong><br>At some point around 2017, Neil decided he needed to focus on the Yellowbrick business more, and I was given the responsibility to own WLM. I had been building UI and delegating a lot of requirements to other engineers, but I had floated all over the place and gravity hadn’t kept me in the UI much. I had been working a lot on our Java code, and helping the engineers with the maven shit, the open source component shit, how to organize our IOC container, why we needed it, etc. Neil knew I could hack Java, so it made sense.</p><p>When I took over WLM, I started looking at our statistics and the data started to trouble me. We hadn’t announced ourselves to the world yet (that wouldn’t happen until 2018), so we didn’t have customers at the time. But I had started the feel uneasy about our concurrency model. It felt like there were big gaps in concurrency where we would be bumping along, and BLAM everything would stop being concurrent, and then things would return to normal. I didn’t have proof, but the data was starting to speak to me and say that we had a problem.</p><p>I told Neil about this, and he said, “No way, there’s no problem with concurrency.” So I shut up and kept building WLM features. I came back to him once in a while and said, “We have this concurrency issue.” Neil was annoyed with me because I wouldn’t shut my pie hole about this, and I bet him that there was a problem, and I could prove it to him. (See the theme here, there’s a lot of betting going on!)</p><p>I set about trying to build a picture of concurrency. There’s a lot of research on this, but it tends to be graphed. I like line graphs, and I could build the picture that way, but I wanted to SEE concurrency. It felt to me that knowing that you had 10 queries executing at one moment followed by 1 query executing would only prove you had the problem, not that you knew where the problem was.</p><p>I ended up looking at the D3 site <a href="https://bl.ocks.org/">https://bl.ocks.org/</a> a lot. Mike Bostock is such an amazing engineer to have built D3…it was incredible stuff. One particular example of over-time visualization was this amazing event plot D3 viz called <a href="https://github.com/marmelab/EventDrops">Event Drops</a>. It was super cool to plot when things happened over time. I felt that if I could hack a visualization like event drops, where queries plotted over time in the execution lanes on our database, I would see where the concurrency problems were.</p><p>Event drops don’t consider event durations, so it wasn’t easy. And it wasn’t animated in real-time. But I did hack that picture with it, and I will blog about our re-imagining of that visualization on HTML canvas at a later date. It has served us well.</p><p>I don’t have a screenshot of how I won this bet, but when I built our Execution Timeline feature, you could see queries running over time, including their durations, and right in the middle of the picture, every so often, we would see a big “hole” in time. The visualization showed me that the Yellowbrick database was massively concurrent until something happened that it was exactly ZERO concurrent. Everything stopped….did something, then started doing concurrent things again.</p><p>So I won this bet. We had a concurrency issue. The issue had to do with the query lifecycle, and not to bore you with too much detail, there was a place where we had to compile queries into machine code that made every query completing off our executors wait for a query compiling. It was a silly bug that was an easy fix, but I don’t think I would have gone hunting for it until I had that picture. And that picture has served Yellowbrick customers well over the years. Our engineers and customers use it a ton.</p><p><strong>The Query Lifecycle and Another (Spiky) Bet</strong><br>Back in January of 2020, the world was very different. A lot changed. My pandemic journey led me to a complete rewrite of our query lifecycle in Yellowbrick — an all-new WLM that also began with a bet. We were sitting around our Palo Alto office talking about some of the more challenging high-end customer issues we were facing, and we were dealing with a lot of mismatches in how the Java JVM ergonomics work for different parts of our query lifecycle.</p><p>At one end of the query lifecycle, where we have a query being dispatched to multiple execution workers, our Java code was very I/O bound. It was using synchronous I/O, and we had a lot of threads sitting, waiting for a compute eternity for responses to their requests to set up, running, waiting for completion of their run, or teardown running. In that sense, the query was doing nothing.</p><p>At the other end of the query lifecycle, where a query would transform its AST into machine code, we had a very GC-intense process to code-gen a bunch of C++ code, compile that code, cache that code, and it was thrashing the Java GC to hell. If we had a bunch of activity in this space, it was starting to cause problems for the execution pipeline, the place where most of our code was I/O bound on network dispatches. Those network dispatches, however, were super sensitive and we were having problems maintaining reliable communications.</p><p>So I posited that we really should break this into two microservices, one that was solely dedicated to the ad-hoc and unpredictable nature of codegen and AST analysis, that was GC-intensive and “spiky,” while the rest of our main execution engine in Java should be in a separate JVM, to make it more predictable and reliable.</p><p>Neil threw down the gauntlet to see if I couldn’t turn that around quickly, and we ended up doing exactly this: making our “spiky” component separate and walling it off from the super-critical time-sensitive high-latency parts of the Java stack we have. This ended up making the product much more reliable, and for the most part, has been a huge win.</p><p>Another bet we made was that we decided to re-do our product’s query governance component, our state manager or query context manager, if you will. The reason was that we weren’t getting enough visibility into every pocket of a query at all parts of its lifecycle. For example, we couldn’t tell the time spent parsing vs. planning vs. locking vs. waiting for the CPU to do all those things. And we also didn’t have complete control over all those phases of the query lifecycle, such as if you were an administrator and you wanted to gate the number of queries that were allowed into the planner. We needed more fine-grained visibility and control.</p><p>This was a big project. Another engineer at Yellowbrick, Matt Ripley, had been working hard on the systems side of this problem by rewriting our RPC layer to be asynchronous, based on Netty, instead of using synchronous I/O. This seemed like a good time to cut over to using that, but little did I know HOW MUCH the world would change. Not only was the world dealing with a raging pandemic, but in my world, I was going to go down a road I hadn’t yet traveled.</p><p><strong>The Asynchronous Development Model is a Virus</strong><br>What I learned about development with Netty, and asynchronous programming using Java’s CompletableFuture model, is that you can’t stick your toe in the async world and get a taste of it. It’s viral. Once you start doing async, making only part of your stack async doesn’t cut it. It’s an all-in bet.</p><p>I mean, what’s the use of doing this?</p><pre>CompletableFuture.allOf(connenctions.map(c =&gt;<br>.makeSomeRemoteRPCCall()).join();</pre><p>All you have done is reduce the number of synchronous threads down to one, but you still have a blocked thread. And that one blocked thread can still cause you LOTS of trouble:</p><ul><li>It can hold a lock.</li><li>It can hold a limited resource.</li><li>It can (and will) deadlock with something else doing one of the two things above.</li></ul><p>You see, writing asynchronous code is super unforgiving. You can’t do things like you used to do:</p><ul><li>I will acquire some resource.</li><li>I will call some remote service.</li><li>I will continue.</li></ul><p>Your code can’t do this straight-line anymore. It has to be reactive and composed of a bunch of things that are sequenced. During this project I learned something very critical in Java: don’t use locks to sequence steps of a program. The corollary to this is: only use locks to protect state, and never hold a lock if you’re doing something more than protecting state. Breaking these rules will always lead to resource starvation, deadlocks, and unreliability. Instead, compose asynchronous stags of a pipeline using CompletableFuture.thenCompose().</p><p>After some time of building the new async pipeline, we had to wire it up to the rest of the database which was using RPCs, and grafting in the RPC async library with Netty was a dream. In the end, if you were to jstack (take the running stacks) of our Java code that governs the query pipeline, you won’t find ANY blocked threads ANYWHERE, and if you do, it’s likely a bug. It’s a big reactor of things waiting and reacting and then waiting and reacting, forever.</p><p><strong>Tests Are Your Savior</strong><br>At Yellowbrick we could make a big bet to change our product in this fundamental way because we invested an absolute monster amount of engineering effort that measure the correctness of our database over the years. So if we decided to change something fundamental to how to orchestrate a query’s lifecycle, and we got it wrong, the bet is pretty safe to make because our tests would find our faults. Of course, we’re always making more tests, and engineering new ways to error-inject problems into our code and make sure everything reacts well. Part of our re-imagining of the query lifecycle was to build test infrastructure.</p><p>So in 2020, it was high time to make the changes we need to improve the visibility, control, and reliability of our query lifecycle, and the results have been great. Our 5.0 product shipped and has had very few issues we used to face with prior generations of our product.</p><p><strong>WLM…Needs More Cowbell</strong><br>While much of the Yellowbrick database self-tunes, the need for <a href="https://www.yellowbrick.com/press-releases/yellowbrick-ceo-qa-with-neil-carson">workload management</a> tools and features that elevate and explain more parts of the query lifecycle seem unbounded. It doesn’t seem like it will be a journey with an ending. We are always improving.</p><p>For that reason, I feel like I will continue to float in zero-gravity at Yellowbrick, and that’s why I love working on WLM in general. I get the dream job of building cool visualizations, pulling together data from a huge number of places, and providing our administrators the insight they need to set that knob to 11.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9dc9e22343d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comparing to Big Dog Snowflake]]></title>
            <link>https://medium.com/@yellowbrick-data/comparing-to-big-dog-snowflake-e7aa4a7083f4?source=rss-83c51dac6fbb------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7aa4a7083f4</guid>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[data-warehouse]]></category>
            <dc:creator><![CDATA[Yellowbrick Data]]></dc:creator>
            <pubDate>Tue, 14 Jun 2022 09:33:55 GMT</pubDate>
            <atom:updated>2023-02-14T16:07:26.601Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This blog was originally posted by Neil Carson, CEO of Yellowbrick Data on yellowbrick.com/blog</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*QBpSkNKkm0RTtOsI.jpg" /></figure><p>It’s impossible not to be impressed by the stunning success of Snowflake, and as the CEO and founder of a company in a similar space, I have followed their progress with both interest and alarm! While it’s hard for me to comment on Snowflake without sounding like sour grapes, I caution any IT buyer not to make decisions based on the stock price. Warren Buffet’s investor credentials are without question, but he’s not a person I would turn to for advice on corporate analytics. Since the <strong>Snowflake stock price</strong> crash six months ago, I sense the company has embarked on a plan to appease Wall Street rather than customers.</p><p>Over to us. We started Yellowbrick Data back in 2014 and actually got the company funded in 2015. Nobody knew that three years earlier that other company, <strong>Snowflake Computing</strong>, was the “other data warehousing” startup and it had done an incredibly good job being stealthy, incubated internally within a VC fund.</p><p>I’ve mentioned before how building a successful database is really hard. Computer scientists of my era dreamed of building things like file systems and databases. I’ve still got old colleagues who to this day can’t give up building the damn things 20+ years on: They’re an addictive drug for the OCD-obsessed engineers who relentlessly pontificate about the perfect way of laying things out. Rather like organising the dishwasher and then showing off the result to everyone — “look how much I’ve packed in there, George — the plates are aligned to perfection with barely enough space in between them to fit your pinkie, and the curves on the shafts of the spoons look like a school of synchronised mermaids.” Then, seeing a small gap and realising if you re-do the whole thing, swapping the plates and the bowls and increasing the angle of lean, you can squeeze in one extra piece of crockery without it hopefully not falling over like dominoes. No wonder Linux has almost 100 file systems in it. So addictive. I digress.</p><p>Everyone’s always comparing your business to the “other start-ups” they can pattern match against. The ones they draw from are those that are most famous, those in the same industry or those that were founded around the same time. Perhaps they are the fashionable companies riding the hype cycle of buzz or a current darling of the tech world. Perhaps it’s a business that investors missed out on because they thought the valuation was too high, not realising just how much damage liquidity injected into the system was going to boost valuations to irrational levels.</p><p>In our case, that’s the Big Dog, <a href="https://yellowbrick.com/resources/comparisons/snowflake-comparison">Snowflake</a>. An amazing company. Amazing story. The number one software IPO in history. Yep, read that again. <strong>THE. BIGGEST. SOFTWARE. IPO. IN. HISTORY. is our comparable</strong>. With a peak valuation of $120 billion dollars. If we stacked Big Dog’s market cap out of $100 bills, it would be 8,148 miles high. If we put them alongside each other, Big Dog would be occupying all Los Angeles’ land area.</p><p>“But Neil, Snowflake acquired 2,000 customers a year and grew by 250 percent while entertaining the pope, why can’t you do that?” “Hey, Neil, do you guys have data warehousing, machine learning, data sharing, JavaScript all in your core offering?” “Neil, can Yellowbrick make the tea and bake the scones at the same time?” The questions are all in good faith but the pragmatic reality is — no, we aren’t going to beat Snowflake’s market cap and we’re not going to set new record valuation multiples or growth rates. However we are doing a number of things better than Snowflake and we’re going to build a fabulous $1bn a year business, making customers even happier than <a href="https://yellowbrick.com/resources/comparisons/snowflake-comparison/">Snowflake customers</a> and returning great money to our investors too. The odds of us being the new Number One Software IPO Of All Time are just pretty damn low.</p><p>There are recent signs that Big Dog is starting to lose its bark, and there’s some howling. We’ve heard from customers that their Snowpark embedded programming offering is poor, being hard to debug and seriously inferior to <strong>Databricks’ capabilities</strong> for actual processing. News articles are mentioning insiders and senior leadership selling even at a time of extreme weakness for the stock. Worried about the stock price, the Press Room has been issuing streams of press releases about crazy stuff: Connecting on-premises SANs to the cloud for “hybrid analytics” which is sheer madness, along with allegedly new vertical offerings that actually, upon careful reading, don’t really say much new. These aren’t the big issues though. The business model is the big issue.</p><p>Don’t get me wrong, a lot of technology growth businesses are having a harder time this year than in the last couple, including yours truly’s as well. However the Really Big Difference is — Snowflake’s answer to doing more is always to spend more. Want ETL running without slowing users to a crawl? Spend more to spin up more. Want to run additional workloads to add value to your business in tough times? Spin up more to spend more. There’s tons of hidden costs on top of that.</p><p>At Yellowbrick, we’ve got a business model that lets new workloads and ETL run without additional costs; things can be prioritised so that within a certain set of resources, the stuff that matters always gets done regardless. We support an order of magnitude more concurrency per cluster, full elasticity, and we let customers pay their own <a href="https://yellowbrick.com/resources/analyst-insights/gartner-cloud-costs-roi/">cloud costs</a> so that we’re not marking stuff up and selling it back to them.</p><blockquote><strong>“The more we use Snowflake, the more money we spend. The more we use Yellowbrick, the more money we save”</strong><em> — </em>VP of Data at one of our large customers</blockquote><p>Big Dog should be scared with the tail down between its hind legs when its three largest competitors — Amazon, Google and Microsoft — control its COGS (cost of goods sold) and its margins. I’ve been there before, at SSD company Fusion-IO: We had the best SSD IP in the industry and the largest business in the new segment, but the raw ingredients, the flash chips, were sold by the fabs (Samsung, Intel, Micron, Sandisk and Toshiba) who were our biggest competitors. Snowflake’s biggest competitors are the vendors that sell its raw ingredients — the compute and storage that it marks up and sells back. At Yellowbrick, we don’t have this problem and the answer to everything isn’t to spend more: So we are well placed to thrive in the era of higher interest rates, more difficult borrowing, slowing business sectors and cloud cost controls.</p><p>We can’t beat <a href="https://yellowbrick.com/blog/product/the-data-warehousing-divide/">Snowflake</a> at its game, and we can’t beat their IPO, but we can definitely do well playing our own game our way for customers in financial services, insurance, telecommunications and those that want to save money at scale; the very customers that view us as the best data warehouse in the world.</p><p><em>Originally published at </em><a href="https://yellowbrick.com/blog/product/comparing-to-big-dog-snowflake/"><em>https://yellowbrick.com</em></a><em> on June 14, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7aa4a7083f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monkeying With QA]]></title>
            <link>https://medium.com/@yellowbrick-data/monkeying-with-qa-37fe4aaa2ee2?source=rss-83c51dac6fbb------2</link>
            <guid isPermaLink="false">https://medium.com/p/37fe4aaa2ee2</guid>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[analytics-database]]></category>
            <category><![CDATA[testing-strategies]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Yellowbrick Data]]></dc:creator>
            <pubDate>Fri, 10 Jun 2022 09:19:35 GMT</pubDate>
            <atom:updated>2023-02-14T15:58:25.630Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This blog was originally posted by Henry Cate, Quality Engineer on yellowbrick.com/blog</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kzTM1CIPT7LLSr_JrbDYeA.jpeg" /></figure><p>One of the biggest changes with software development in the last couple of decades is just how quickly new releases come out. New tools and processes speed up both feature development and bug fixing. Hand in hand with this is the need to find bugs faster.</p><p>At Yellowbrick, one of the tools we’ve developed is a <strong>random query generator</strong>. This tool has helped to rapidly flush out hundreds of bugs.</p><p><strong>The Problem: Testing SQL Databases Is Hard</strong></p><p>Testing SQL databases is hard for several reasons.</p><p>The syntax for a <strong>SELECT statement in SQL</strong> allows an infinite number of different queries. Here are some of the issues:</p><ol><li>Each expression in the SELECT clause can be complex.</li><li>can be joined in a variety of ways.</li><li>WHERE clause filters allow for complex Boolean expressions.</li><li>SELECT statements have other optional clauses, each of which can be very complex.</li><li>Queries are combinations of all the above.</li></ol><p>It’s not possible to exhaustively test every possible query.</p><p>The same data can be stored in the database in many different ways. For example, a table may be range-partitioned or hash-partitioned. Depending on the structure of a given table, a database will generate different plans.</p><p>A plan is the way a database will process the data. Many queries have a large number of possible plans. Sometimes there are thousands, or millions, or even billions of different possible plans. An important job for a database is finding a good plan.</p><p>The type of data can also greatly influence which plan a database picks. The way the data is distributed influences which plans will be better. Some factors are:</p><ol><li>How many unique values there are (for example, a small number of 50 states versus a large number of people’s names).</li><li>The distribution of the data. Is the data uniform or is the data in a bell-shape distribution? Is the data close together or scattered across a large range of possible values?</li><li>Are the join keys distribution keys?</li></ol><p>The amount of data can also limit which plans are considered. Small tables might fit completely in memory, while large tables with terabytes of data might force a database to spill intermediate results to disk.</p><p><strong>Other elements of queries that make it hard to test SQL databases include:</strong></p><ol><li>Set operations, such as UNION, EXCEPT, and INTERSECT.</li><li>Aggregations, such as SUM, AVERAGE, and so on.</li><li>Window functions.</li><li>Ordering of results.</li><li>Limits on the result set.</li></ol><p>All the above elements can be combined in infinite ways. This makes testing the full matrix of possibilities impossible.</p><p><strong>Our Approach: Generate Random SQL Statements</strong></p><p>Manually creating queries takes time. It may take minutes or sometimes even hours to build a query. Sometimes, when you are testing a specific feature of a SQL database, it may make sense to craft a query that will exercise certain parts of the code. However, manually creating queries is expensive and slow.</p><p>Many people have heard of the infinite monkey theory. It states that if you put an infinite number of monkeys in front of typewriters, one of them will eventually “bash out the script for Hamlet.”</p><p>We can apply this idea of trying random things to <strong>testing SQL databases</strong>. A large set of random queries can flush out bugs that manual testing might never find. This approach still doesn’t cover the full matrix, but it can give us a lot more coverage. Each query has the potential to poke the database in a unique way, thus exposing a code path a QA engineer might never think to try.</p><p><strong>Random Recursive Substitution</strong></p><p>Much of a query is a set of expressions. For example:</p><pre>Select col1, col2 + 5, col3 * col4 from table1;</pre><p>We can build random expressions by starting with a template and defining the legal options. For example:</p><pre>{integer expression} can be one of the following:<br>{integer literal value}<br>{integer column}<br>({integer expression} {some math operator} { integer expression})<br>{a function producing an integer value}<br>{a case statement producing an integer value}<br>{a query producing an integer vale}</pre><p>…and so on. We can then start with a basic template of one query. For example:</p><pre>select {integer expression}, {integer expression}<br>from table1<br>where {boolean expression};</pre><p>Then, using random recursion, we could produce billions of random queries. Here is a sample of the queries that might be created:</p><pre>select 1, abs(int_col2 + year(date_col2l))<br>from table1<br>where str_col1 &lt; str_col2;</pre><pre>select length(str_col2) + abs(int_col3), 5<br>from table1<br>where col_int1 in (3, 4, 5, 77);</pre><pre>select (select max(int_col3) from table2), col_int2 – abs(col_in1)<br>from table1<br>where (col_in1, col_date2) in (<br>    select col_int2 + col_int3, date_col2<br>    from table2);</pre><p>…and so on.</p><p>We use random recursion primarily with queries, but we also generate random INSERT, INSERT INTOSELECT, UPDATE, DELETE, CREATE VIEW, and CREATE TABLE AS SELECT statements. We’ve found that most of the bugs exposed this way happen with SELECT queries, but there have been a few bugs that would only occur in some other type of SQL statement.</p><p><strong>Sample Queries</strong></p><p>Here are two sample queries produced by our random query generator:</p><pre>(select  decimal_9_0 col_0<br>  FROM date_timestamp<br>  WHERE (null::ipv6 In  (&#39;38d3:a412:5ab0:93ce:fffe:5237:32cc:7ecc&#39;::ipv6))<br>)<br>MINUS<br>(select  decimal_18_18 col_0<br>  FROM date_timestamp_ran<br>  WHERE (varchar_10_nn In  (varchar_30, varchar_10_nn, varchar_10_nn, varchar_31_nn, varchar_31_all_null, varchar_30_nn, varchar_1, &#39;z&#39;::char(13), varchar_1))<br>  ORDER BY col_bigint_nn)<br>MINUS<br>(select  decimal_18_18 col_0<br>  FROM date_timestamp_empty_ran<br>  ORDER BY 1)<br>EXCEPT<br>(select DISTINCT  100::decimal(5,0) col_0)<br>INTERSECT<br>(select DISTINCT  decimal_18_1 col_0<br>  FROM date_timestamp) ;</pre><pre>select  (greatest (null::macaddr8) is distinct from (&#39;46a42460:a96ad4d3&#39;::macaddr8 | &#39;89:5b:b9:89:5b:b9:aa:00&#39;::macaddr8)) col_0, length (CURRENT_DATABASE()) col_1, convert(date, convert(varchar(50), (col_date_all_null - 5::bigint::int), 13), 13) col_2, radians (inv_norm(0.13, decimal_9_1, null::decimal(15,5))) col_3, (ntile(10) over (PARTITION BY LTRIM(varchar_10, &#39;a&#39;), (NOT  EXISTS (<br>  select  col_uuid_all_null col_0, &#39;123.124.125.126&#39;::ipv4 col_1, &#39;08:b3:66:fd:89:7a:17:09&#39;::macaddr8 col_2, col_bool col_3, &#39;83d3:a412:5ab0:93ce:fffe:5237:32cc:7ecc&#39;::ipv6 col_4, &#39;11 hours&#39;::interval col_5<br>    FROM date_timestamp_view_transform<br>    WHERE sys.is_valid_varchar (col_int)<br>    LIMIT 44)), to_number (&#39;&#39; || col_int, &#39;99999999999999999999999999999999999999&#39;), (col_tswtz - &#39;13 second&#39;::interval), convert(timestamp, convert(varchar(50), col_timestamp_1, 101), 101) order by col_bool, col_timestamp_nn NULLS LAST)) col_4, (<br>      DECODE (&#39;19:10:16&#39;::time,<br>           &#39;23:59:00&#39;::time, &#39;23:59:59&#39;::time,<br>           col_time_same, col_time,<br>           &#39;19:10:16&#39;::time, col_time_same,<br>           col_time_nn, col_time_same,<br>           col_time_all_null, col_time_nn,<br>           col_time_all_null<br>      ) + &#39;10 minutes&#39;::interval) col_5<br>FROM date_timestamp_ran<br>ORDER BY 2 ASC, 4 USING &gt;, 6 NULLS FIRST, 5, 1 NULLS LAST;</pre><p>We have a number of knobs that allow us to increase the complexity to the point that we generate queries that go on for pages and pages.</p><p><strong>Using a Query Generator</strong></p><p>Many of our bugs come from situations where a query doesn’t work. A query may fail because of:</p><ol><li>An assertion in the code.</li><li>An error message that should not happen for a valid query.</li><li>A fatal database error, and even a failure of the whole cluster.</li></ol><p>We can also run random queries on our database and another database then compare the answers. This comparison has helped us to ensure correctness.</p><p><strong>Benefits of the Query Generator</strong></p><p>Our query generator helps us in a couple of important ways.</p><p>The first is the speed at which we can test a new feature. Often, as development is adding a new feature to our database, we can update the query generator to include the new feature in the random queries. That way when the feature is ready for testing, we can hit it with hundreds of thousands and even millions of different queries, often exposing dozens of bugs within the first week.</p><p>The second is just how many different code paths in the database get explored by these random queries. Sometimes a developer looking at a bug found by the query generator might comment, “I never thought we could get into this situation.”</p><p><strong>Conclusion</strong></p><p>Our query generator has greatly helped to improve the quality of our database. About 15% of all the SQL bugs that have been reported were found by this query generator. As new customers buy our database and existing customers buy more licenses, we are faced with new and unexpected queries. The random query generator helps us make sure that these new queries will work. This kind of testing improves the product and keeps our customers happy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37fe4aaa2ee2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Global Gumption]]></title>
            <link>https://medium.com/@yellowbrick-data/global-gumption-6ee9a36e2953?source=rss-83c51dac6fbb------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ee9a36e2953</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Yellowbrick Data]]></dc:creator>
            <pubDate>Tue, 01 Mar 2022 12:39:48 GMT</pubDate>
            <atom:updated>2023-02-14T16:11:22.148Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This blog was originally posted by Neil Carson, CEO of Yellowbrick Data on yellowbrick.com/blog</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lSnACwxZg2qzocTRAmgmUQ.jpeg" /></figure><p>We’re lucky to have many tens of thousands of users of our data warehouse all around the world. We’ve never gone to the usual lengths of announcing <strong>global expansion</strong> because we’ve always been a global business with global employees. I thought I’d share a little bit about the benefits and challenges of this model, especially given the pandemic of the last couple of years. It’s a choice many new startups are now considering given the scarcity and cost of technical talent.</p><p>We’ve always been a global company even before we incorporated the business. Our co-founder Mark and I wrote Yellowbrick’s first code in the US (San Mateo, California) and Hong Kong Much of the code in Hong Kong was coincidentally written on quiet afternoons at the bar of a pub called The Globe (no quality jokes please) along with a pint of Old Speckled Hen, London Pride, Gweilo or Yardley, where I’ve been a regular for a good fourteen or so years. The next tranche of code was written by Thomas in Estonia, then more by the staff in California, Denmark, Virginia, UK, France, Poland and elsewhere.</p><p>The team structure meant that we were used to working with remote teams and doing late night or early morning meetings from Day One, which certainly made life easier when transitioning to the “everyone remote” way of working during the pandemic.</p><p>The global nature of Yellowbrick goes beyond the engineers and code. Our Beta customers were in the US, Europe and China so we hired early support staff and support engineers in all three of those regions. Having staff scattered around the world meant we could provide 24-hour coverage at a much earlier stage than most startups.</p><p>Our first paying customer was fully US-based. The second has users in the US and Pakistan. The third is in Macau. The fourth customer was based in both the UK and California, with users across Europe, the US and India. Over time we’ve added customers and users in Iceland, India, Thailand, Mexico, mainland China, Korea, Japan and elsewhere. We’re growing in Southeast Asia and the Middle East. Many of these markets are being developed in conjunction with partners like Apptech (Latin America), NI+C (Japan), Zelesia (Korea), HKBN JOS (Macau), Bairui (China) as well as global Systems Integrators. We’ve worked on projects with Accenture, KPMG, PwC and others, enabling joint customers to comply with standards like IFRS more easily. Working with partners is a win/win situation; they make good money selling the best <strong>enterprise data warehouse</strong> and it saves us from having to open more offices.</p><p>We’re still fans of office culture, despite the distributed nature of our business. We’ve got wonderful new offices in Mountain View, CA and London, UK. We’ve seen that certain activities go far faster and more efficiently in person, like intense, focused workshops, brainstorming, architecture discussions and design white-boarding. What would take multiple spaced out Zoom meetings interspersed with Confluence editing sessions and reviews can be accomplished in a mere 2–3 hours in person. For a while, we’d forgotten just how productive seeing each other face to face can be. There are some key strengths to this “go global early” model of operating:</p><ul><li><strong>Early global coverage:</strong> As described above, we get to 24×7 development, customer support and escalations far faster without having to establish shift-based rotations that are tough on people and their families.</li><li><strong>Access to talent:</strong> Just as London is now also Palantir’s largest single office due to their ability to tap into talent from all over Europe, London is also Yellowbrick’s fastest growing office in engineering. We’re starting to grow marketing there as well. The competition for talent is still intense, but less so than in California.</li><li><strong>Immigration-friendliness:</strong> People from all over the world are willing to move to cities like London and it’s relatively easy to sponsor them. I moved to the US on an H1B visa, but now it’s become almost impossible to move staff here.</li><li><strong>Cost saving:</strong> Top talent always costs a lot of money, and it’s worth it. By hiring globally rather than just locally, we’ve been able to find more amazing staff with a lower average cost per head than would be the case purely in the US.</li><li><strong>Crisis preparedness:</strong> None of us saw the Covid pandemic coming, or expected whole states and nations to force citizens to work from home for so long. Fortunately, being a global company with global customers, it was far easier for us to adapt to this mode of operation than the 100% in-office businesses that scrambled and lost time while changing their working practices and infrastructure.</li></ul><p>That said, there are also operational complications and downsides that must be managed as well:</p><ul><li><strong>Time zone co-location:</strong> It takes extra effort to keep teams working on similar tasks as close together in time zones as possible to enable easier collaboration. The East Coast of the US and Western Europe work very well together. Eastern Europe and Asia do OK together. California is somewhat harder to collaborate with internationally in either Europe or Asia.</li><li><strong>G&amp;A overhead:</strong> Entities need to be incorporated in different countries, legal agreements need to be struck in different languages, and payments made in other currencies. We’ve learned how to do this very efficiently. For example, our GC is accredited in both UK and US law. We work with agile and cost-effective accountants and law firms in remote geographies. And we’ve worked out how to move cash around efficiently in other currencies without incurring the typical bank fees.</li><li><strong>Getting to critical mass, isolation:</strong> It’s very hard, in the early days, to have one person working in a location and/or time zone detached from others. Humans need others to keep them company nearby, and we’ve made that a priority. We built our London office around a key employee who was fed up of working at home alone.</li><li><strong>Communication:</strong> Everyone involved must have a great grasp of English and people need to be sensitive to others’ time zones. As with all remote teams, extra effort has to be put in place to make sure everyone’s in the loop. For management and leadership, this involves working some long hours in the early morning- or late evening.</li></ul><p>Overall, we’ve found the benefits of being a global business far outweigh the costs, from our earliest of times to today. If I were going through this journey again, I’d do the same things. However, next time around I’d make sure we had multiple staff in each region from Day One-and perhaps be even more aggressive given talent is now even harder to hire and retain than 7 years ago.</p><p>Cheers ????</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*FcgIMEvlTL5lMVJ1.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ee9a36e2953" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>