<?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 Sam Cooper on Medium]]></title>
        <description><![CDATA[Stories by Sam Cooper on Medium]]></description>
        <link>https://medium.com/@cooper437?source=rss-a37262bf4e87------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RaKra2Ji1IVD1AEp_WPmKA.jpeg</url>
            <title>Stories by Sam Cooper on Medium</title>
            <link>https://medium.com/@cooper437?source=rss-a37262bf4e87------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 22:04:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cooper437/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[Pondering the Modern Data Stack]]></title>
            <link>https://medium.com/@cooper437/pondering-the-modern-data-stack-2d8477629b9d?source=rss-a37262bf4e87------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d8477629b9d</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <dc:creator><![CDATA[Sam Cooper]]></dc:creator>
            <pubDate>Tue, 17 Aug 2021 13:33:56 GMT</pubDate>
            <atom:updated>2021-08-17T18:20:53.736Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*u1UNAoDax9MpnYIL" /><figcaption>Photo by <a href="https://unsplash.com/@bermixstudio?utm_source=medium&amp;utm_medium=referral">Bermix Studio</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The modern data stack has undergone tremendous change in the last decade. A proliferation of powerful cloud based tools is accelerating the growth of digital commerce and opening new avenues for competition. Insights about customers, products, and services that were once nearly unattainable are now being collected, ingested, analyzed, and acted upon in near real time.</p><p>Yet, for all the innovation in tooling, becoming a data driven business in 2021 is still a monumental task. Nuanced technical decisions exist at every layer of the stack. The number of data silos keeps growing. The tools are increasingly catering to the needs of data practitioners at the expense of domain and business experts.</p><p>The dizzying array of technologies has undoubtedly pushed forward the frontier of analytics, AI, and human decision making. And yet in too many businesses, problems that were supposed to have gone away years ago stubbornly remain. Incomplete dashboards, overuse of spreadsheets, and a lack of trust in data quality just to name a few.</p><p>Perhaps we need to rethink not just the tools, but the way we use them. An emphasis on decentralized data governance, ad-hoc discovery, and deep observability. Could data mesh be the answer?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d8477629b9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evaluating and Selecting a Database For Your Web Application]]></title>
            <link>https://medium.com/540co/evaluating-and-selecting-a-database-for-your-web-application-21b81463ae45?source=rss-a37262bf4e87------2</link>
            <guid isPermaLink="false">https://medium.com/p/21b81463ae45</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[mongodb]]></category>
            <dc:creator><![CDATA[Sam Cooper]]></dc:creator>
            <pubDate>Mon, 16 Apr 2018 12:51:03 GMT</pubDate>
            <atom:updated>2018-04-17T14:07:33.006Z</atom:updated>
            <content:encoded><![CDATA[<h3>Evaluating and Selecting a Database For Your Web Application</h3><p>The explosion in popularity of NoSQL databases in recent years has created a wealth of options for software developers and architects to evaluate when determining how best to model and store their application data. Admittedly somewhat of a misnomer, NoSQL stands for “Not Only SQL” and refers to the category of databases that store non-relational data typically as documents, graphs, columns, or key-value pairs. While the variety of options available (many of which are FOSS) means solutions can be better tailored to the problem at hand, it can be a daunting task to evaluate various solutions early in a project life-cycle when requirements are poorly defined and data models are changing frequently. Compounding the issue, many modern applications have requirements to use data in ways that span business use cases including transactional, operational, and analytical thus making a one size fits all solution impractical and often inappropriate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e9cTch3fVL9AwXFgpF8ZuA.jpeg" /></figure><p>Recently I joined a project at 540 building a software platform for one of our DoD customers. Early discussions attempting to define our tech stack found the development team engaged in healthy debate regarding how best to trade-off performance, complexity, scalability, and consistency in regards to which database platform was most appropriate. Our team ultimately decided on a hybrid solution utilizing 3 different databases including PostgreSQL, MongoDB, and Elasticsearch. By sharing some of the considerations our team took into account, I hope other projects faced with similar decisions can approach better informed.</p><p><strong>Business Data Use Cases</strong></p><p>An important early step in the assessment of various database solutions is to consider the business requirements and use cases your application will need to deliver against. Broadly speaking it can be helpful to divide these use cases into the following four categories:</p><p>Transactional — Transactional data is used as part of ongoing business operations. This data will be updated often as a result of systems and applications performing standard business processes. Common examples might include real time banking information, and inventory management systems.</p><p>Operational — Operational data may be used as a core part of your application but is less likely to change frequently or substantially during the course of normal business activities once created. A common example of operational data might include an e-commerce website product catalog. While updates to the product catalog are by no means an unusual occurrence, the ratio of read to write operations is typically heavily skewed in favor of the former.</p><p>Analytical — Analytical data is typically very unlikely to change from its persisted state. Primary use cases include data analysis, machine learning, and business intelligence. Generally speaking analytical data is used to derive business insight and inform corporate decision making. Typical examples of how this data might be used include business reporting, predictive analytics, and abstract data modeling for strategic planning.</p><p>The categorization of application data requirements into Transactional, Operational, and Analytical use cases allows for a more informed approach to weighing the tradeoff between the ways that different databases handle things like schema definition, normalization, and scalability discussed in the next section.</p><p><strong>Technical Use Cases</strong></p><p>After grouping application data based on its business use case, consider the technical features and constraints regarding how different databases approach data modeling. Some technical considerations to take into account include:</p><p>Relationality — Asking yourself how relational the data needs to be is important in deciding whether to use a relational database (MySQL, PostgreSQL, Oracle, etc) or a non-relational database that models data as documents, graphs, key value pairs, or some other abstraction. Generally speaking, data being used in a primarily relational manner is better modeled in a relational database. One way of thinking about how relational your data needs are, is to think about the likelihood that you may need to incorporate a piece of data into different aggregate data structures and how well you can predict what those data structures are in advance. Data that will be used across many various aggregate data structures can be thought of as more relational and thus less aggregate oriented. As a concrete example, an individual user’s real name is in most information systems not a very relational piece of data as it is unlikely to be used outside context of a User data structure in the aggregate. Conversely the user data structure itself is in many applications a highly relational unit of data, as it may be used in many different aggregates throughout the application. While most applications will have a variety of both relational and non-relational data, thinking about this problem in reference to the overall mission of the application can be useful.</p><p>Normalization vs Denormalization — Thinking about how relational your data needs are has a direct impact on the degree to which you wish to normalize. Non-relational databases like MongoDB for instance tend to solve the problem of modeling different data aggregates by denormalizing and thus duplicating the same data in multiple places. For read heavy use cases (meaning data that does not change frequently or substantially) denormalization tends to work well since it moves the performance cost and complexity of joining together different pieces of data from query time to write time. Data that is highly relational and/or transactional however, tends to be more write heavy and thus will take more work as a developer to maintain when modeled in a highly denormalized fashion.</p><p>Schema Rigidity — Relational databases tend to have highly rigid schemas whereas most NoSQL databases offer more flexibility in this area. The degree to which a flexible schema is a feature or a constraint for your application data models can be determined by thinking about the nature of the data itself. Data models that are likely to undergo frequent change in ways that are difficult to predict well in advance are generally better modeled on a database offering a flexible schema. This will save time and effort down the road as developers can usually sidestep the problem of performing a schema migration so long as they maintain schema backwards compatibility. Conversely, data models that are well defined and are likely to change in predictable and less frequent ways can benefit from the more robust integrity constraints available in a relational database. The tradeoff of using a flexible schema is that the responsibility of ensuring data validity is shifted from the database and DBA to the application and software developer accordingly. This can enable the team to create and migrate data models more quickly but must be weighed against the long term burden on the development team to ensure robust validation against data being written to the database at the application level.</p><p>Scalability — Relational databases tend to perform reasonably well when scaling needs are likely to remain constant or increase at a linear rate. When data processing needs are likely to scale at rates that are more exponential then linear it is strongly advised to consider NoSQL databases. Because NoSQL databases tend to be less normalized, they tend to rely less heavily on joins and thus tend to be easier to scale horizontally. Conversely relational databases, tend to be easier to scale vertically by throwing beefier hardware at the problem (more compute, faster I/O, more memory, etc.). Vertical scaling can quickly become prohibitively expensive when trying to maintain satisfactory performance in a database that is growing at an exponential rate.</p><p><strong>How We Apply This Process At 540</strong></p><p>At 540, our focus is on helping the government break down barriers to innovation and building impactful technology. Given this mission, it is critical that we make appropriate technical decisions on every project we engage in. Leveraging the most appropriate database solution for each business or technical use case is a decision we do not take lightly. On several projects, we’ve helped use the above-mentioned criteria to ensure that we’re bringing the right set of tools necessary to solve our customers problem.</p><p>In tandem with our mission to help our customers leverage innovative technology, 540 also looks for opportunities to responsibly share data both within and across the federal government. In practice this translates to being avowed API evangelists. While API design is conventionally thought of as independent from database design, the reality is that decisions made at the data layer of an application can have a downstream impact on the ease with which that data can be exposed. API’s that are focused on querying large volumes of operational and analytical data with near real-time performance often leverage tools like Splunk and Elasticsearch at the data layer. Conversely when an API is more oriented around improving or managing a core business process it is often more appropriate to use more conventional databases. By understanding the nature of our customers data we are able to better facilitate the frictionless flow of data across the government.</p><p>On a particular project I recently joined for one of our DoD customers for example, PostgreSQL is leveraged to build and maintain critical data that is highly structured via well-defined business relationships. However, for certain service and contextual data sources whose schema can frequently change and whose business rules are outside of these system’s purview, MongoDB was a more natural fit due to the nature of its flexible schema. Finally we leverage Elasticsearch as a means of performing a federated search against data we ingest from a variety of external sources. Combining these 3 data storage tools gives the organization the needed data flexibility to meet the requirements of the business.</p><p><strong>Final Thoughts</strong></p><p>Earlier this year I attended Elasticon, a conference based around Elastic’s core product offering including Elasticsearch, Logstash, and Kibana. The variety of use cases on display when it came to leveraging the power of a distributed search engine like Elasticsearch was impressive. Gaming company Activision-Blizzard was using the Elastic stack as the brains behind a custom performance monitoring dashboard designed to monitor real-time performance metrics for video-gamers around the world. Lyft gave a presentation on how they moved from using Splunk to Elasticsearch for ingesting log data and event processing all while maintaining one of the largest AWS hosted Elasticsearch clusters in the world.</p><p>While use cases were varied across industries, a clear theme did emerge. As software developers, the data being managed by the information systems we build is quickly becoming the currency used to fuel innovation and strategic decision making. How we choose to model our data and what tools we use to do so have a bigger impact than ever before on the value we are able to deliver to our customers and clients. By considering both the business use cases and technical characteristics of the data in your application, system architects and developers can best position themselves to build an effective and holistic solution to the problems at hand.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21b81463ae45" width="1" height="1" alt=""><hr><p><a href="https://medium.com/540co/evaluating-and-selecting-a-database-for-your-web-application-21b81463ae45">Evaluating and Selecting a Database For Your Web Application</a> was originally published in <a href="https://medium.com/540co">540co</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>