<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://ramonguiu.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://ramonguiu.com/" rel="alternate" type="text/html" hreflang="en" /><updated>2026-11-22T21:55:07+00:00</updated><id>https://ramonguiu.com/feed.xml</id><title type="html">Ramon Guiu</title><subtitle>Ramon Guiu is VP of Revenue and Product at Tiger Data, the company behind TimescaleDB. Former GM and VP Product at New Relic. Two-time founder.</subtitle><author><name>Ramon Guiu</name></author><entry><title type="html">Tiger Lake is generally available: Keep your operational data in sync with your lakehouse</title><link href="https://ramonguiu.com/writing/tiger-lake-ga/" rel="alternate" type="text/html" title="Tiger Lake is generally available: Keep your operational data in sync with your lakehouse" /><published>2026-11-19T00:00:00+00:00</published><updated>2026-11-19T00:00:00+00:00</updated><id>https://ramonguiu.com/writing/tiger-lake-ga</id><content type="html" xml:base="https://ramonguiu.com/writing/tiger-lake-ga/"><![CDATA[<p>Your application writes to Postgres. Your data team works in a lakehouse. Keeping them connected often means building a pipeline and taking responsibility for it.</p>

<p>Today we’re making Tiger Lake generally available to all Tiger Cloud users. It continuously syncs Postgres tables and TimescaleDB hypertables into Apache Iceberg, an open table format that lets you use the same data across analytical tools. Your application keeps writing to Postgres, and your data team gets that data continuously synced into Apache Iceberg, without building and operating a separate replication pipeline.</p>

<p>It’s built for teams whose operational data needs to do more than power the application that collected it.</p>

<h2 id="your-operational-data-has-more-than-one-job">Your operational data has more than one job</h2>

<p>The teams we work with run applications on continuously arriving data: sensor readings, equipment telemetry, tick data, oil well telemetry, and industrial automation events. Think about an application that monitors industrial equipment. It needs to ingest readings as they arrive, update dashboards, and help an operator investigate a problem. Tiger Cloud lets you do that in Postgres, with relational and time-series data together in one database.</p>

<p>Those readings have value beyond the industrial application. A data analyst wants to compare equipment performance across sites over the last year. An ML engineer wants to build a predictive maintenance model by joining equipment usage and telemetry, with customer records already in Snowflake.</p>

<p>They’re asking for data you already have. But making it available, and keeping it accurate, often becomes another data engineering pipeline project. Someone has to copy the existing data, capture new changes, handle corrections and deletes, and notice when replication falls behind. A one-off export doesn’t solve it either. It’s out of date as soon as new readings arrive or old ones get corrected, and once the data team depends on it, someone has to keep it current.</p>

<h2 id="split-architectures-make-it-harder">Split architectures make it harder</h2>

<p>If you keep metadata in an OLTP database and time-series data in a separate time-series or real-time OLAP database, getting accurate data into the lakehouse gets harder. Time-series and OLAP databases are built to be the final destination for the data. They don’t support change data capture, so you can’t use an ETL tool to replicate every change to your lakehouse.</p>

<p>As a result, you are forced to write the same time-series data twice: once to the time-series database and once to the lakehouse. When one of those writes fails, you have to detect it and fix it yourself. If you miss one, the two copies no longer match.</p>

<p>Data fixes are harder still. Say some old sensor readings were wrong. The source no longer has them, so you can’t resend them through the ingest pipeline, and someone has to correct them directly in the time-series database. The same correction then has to be made in the lakehouse, and with dual writes there’s no reliable way to make sure both copies end up exactly the same.</p>

<p>Then there are schema changes. To keep both systems matching, your pipeline also has to replicate schema changes (DDL replication), which adds even more complexity on top of the dual writes.</p>

<p>Over time, the two copies drift apart, and the people relying on the lakehouse pay for it. Leadership sees dashboard numbers that don’t match the application and stops trusting the data. A predictive maintenance model trained on uncorrected readings misses the signs that a machine needs service, and the machine breaks down. With Tiger Cloud, metadata and time-series data live in the same Postgres database, and Tiger Lake sends every change made there, fixes and schema changes included, to your lakehouse.</p>

<h2 id="keep-building-in-postgres">Keep building in Postgres</h2>

<p>Our direction for Tiger Cloud is straightforward: make Postgres the best home for demanding operational workloads, and make that data accessible to the rest of your organization. You should be able to keep building your application while other teams work with the tools they already use.</p>

<p>Tiger Lake provides that connection.</p>

<p>A big reason teams choose Tiger Cloud is that they can run their application and operational analytics in one Postgres database that ensures consistent query results, performant joins between metadata and time-series data and simpler database management, security and maintenance. We want them to keep that advantage as their data becomes useful to more people across the company. That means connecting Tiger Cloud to the lakehouse your organization already uses. Your application team keeps building in Postgres, and your data team works with familiar tools. Tiger Lake keeps the two in sync.</p>

<h2 id="how-tiger-lake-works">How Tiger Lake works</h2>

<p>Tiger Lake writes your data to Apache Iceberg tables. We started with Iceberg because it’s the open table format most lakehouse tools already support. The tables live in your own bucket, in a standard format many query engines like Amazon Athena, Spark or Trino can read, so you aren’t tied to one warehouse vendor.</p>

<p><img src="/assets/images/writing/tiger-lake-ga/data-src-image-746883f4-a1bb-4f3a-96b8-fad7470dcf78.png" alt="image" /></p>

<p><em>Tiger Lake architecture showing initial copy and continuous replication from Tiger Cloud to Apache Iceberg.</em></p>

<p>Tiger Lake copies each table once from a consistent snapshot, then streams ongoing changes from Postgres logical replication, and commits to Iceberg tables in your own bucket through Amazon S3 Tables or an Iceberg REST catalog.</p>

<p>Choose the tables you want to make available in your lakehouse. Tiger Lake copies their existing rows into Apache Iceberg, then continuously syncs inserts, updates, deletes and schema changes <a href="https://www.tigerdata.com/docs/integrate/connectors/destination/tigerlake">through Postgres logical replication</a>. It works with both regular Postgres tables and TimescaleDB hypertables, with Amazon S3 Tables or a compatible Iceberg REST catalog as the destination. The destination uses an open format, so you can choose compatible tools to query it.</p>

<p><img src="/assets/images/writing/tiger-lake-ga/data-src-image-584e3007-712e-458e-9749-f783ce491aaf.png" alt="image" /></p>

<p><em>Tiger Console catalog selection for Amazon S3 Tables or a generic Iceberg REST catalog.</em></p>

<p>Choose Amazon S3 Tables or a compatible Iceberg REST catalog as your destination.</p>

<p>This makes both your existing history and new operational data available for broader analysis. An equipment monitoring application keeps serving its dashboards from Tiger Cloud, while analysts explore the same readings alongside business data in the lakehouse. Updates and deletes are synced too: if a sensor sent bad readings and your team corrects them in Postgres, the corrected values replace the bad ones in Iceberg. The analyst’s report and the maintenance model use the same numbers as the application.</p>

<p>For <a href="https://www.tigerdata.com/blog/how-mechademy-cut-hybrid-digital-twin-infrastructure-costs">Mechademy</a>, that connection is helping turn operational data into a new capability for its customers.</p>

<blockquote>
  <p><em>“With Tiger Lake, we can prepare machine-learning-ready data in under four minutes. That’s helping us build new machine-learning capabilities on our platform. Getting operational data ready for machine learning was previously a major obstacle for us, and Tiger Lake’s Apache Iceberg connector to S3 Tables has been a real lifesaver that helps us build more easily now.”</em> —<em>Arjun Panchamatia, Senior Data Engineer, Mechademy</em></p>
</blockquote>

<p>There’s no pipeline to run. Tiger Cloud handles the initial copy and the ongoing sync, and sizes each connector for you. Because Tiger Lake is built into Tiger Cloud, it also understands hypertables and keeps the sync running when something goes wrong.</p>

<h2 id="works-with-hypertables-and-the-columnstore">Works with hypertables and the columnstore</h2>

<p><a href="https://www.tigerdata.com/docs/learn/columnar-storage/understand-hypercore">Hypercore</a>, the TimescaleDB storage engine, moves data from the rowstore to the columnstore and compresses it as it ages. That changes how the data is stored, not the data itself, but those moves still show up in the Postgres change stream. ETL tools would attempt to copy them to the lakehouse as if they were real changes. Tiger Lake recognizes them and skips them, so your lakehouse gets only the inserts, updates and deletes your application made, and you’re billed only for those. Data that has moved to tiered storage is synced too, so analysts get the full history.</p>

<h2 id="recovers-without-copying-everything-again">Recovers without copying everything again</h2>

<p>If a destination becomes unavailable or a connector falls behind, Tiger Lake keeps the sync going. It manages replication-slot retention based on the database’s available disk space. If a slot is lost, gap filling recovers the missing changes without requiring a full copy of the table. That matters when you have months or years of operational history. Recovering a sync shouldn’t routinely mean copying all of it again.</p>

<h2 id="query-from-snowflake-databricks-and-your-existing-analytics-tools">Query from Snowflake, Databricks, and your existing analytics tools</h2>

<p>There are two ways to set it up, depending on the tool your team uses to query the data.</p>

<p><strong>Default sync.</strong> Each Iceberg table mirrors its Postgres table, including updates and deletes. Use this with Amazon S3 Tables or a compatible REST catalog if your query engine supports Iceberg equality deletes, as <a href="https://www.tigerdata.com/docs/integrate/connectors/destination/athena">Amazon Athena</a> does.</p>

<p><strong>Changelog mode for Snowflake and Databricks.</strong> Snowflake and Databricks don’t support equality deletes, so for them Tiger Lake writes each insert, update and delete as a new row in a Snowflake- or Databricks-managed Iceberg table. You then apply those rows to keep an up-to-date table. In Snowflake, a stream and a task can do this. The<a href="https://www.tigerdata.com/docs/integrate/connectors/destination/snowflake"> Snowflake guide</a> and<a href="https://www.tigerdata.com/docs/integrate/connectors/destination/tigerlake#changelog-mode"> changelog documentation</a> walk through the setup. We’re also building a native Snowflake connector, with Databricks to follow, so you won’t need this extra step.</p>

<p><img src="/assets/images/writing/tiger-lake-ga/data-src-image-15458607-0a2a-4d57-b9f5-f27ca7cb12d9.png" alt="image" /></p>

<p><em>Tiger Console table-sync settings showing Iceberg format version, tiered data, and Changelog mode enabled.</em></p>

<p>Either way, your operational data ends up next to the business data already in your warehouse. An equipment manufacturer, for example, could join equipment readings from Tiger Cloud with customer and service records in Snowflake to see which conditions come before a failure.</p>

<h2 id="whats-included-in-the-ga-release">What’s included in the GA release</h2>

<p>For GA, we’ve focused on giving you more destination options and making the connection easier to operate.</p>

<ul>
  <li><strong>More catalog options:</strong> Alongside Amazon S3 Tables in your AWS account, Tiger Lake now supports <a href="https://www.tigerdata.com/docs/get-started/news/new#generic-iceberg-rest-catalog-support-in-tiger-lake">compatible Iceberg REST catalogs</a> such as Snowflake Open Catalog, Snowflake Horizon Catalog, Databricks Unity Catalog, and Apache Polaris. If your lakehouse already uses one, you can write directly to it.</li>
  <li><strong>Changelog mode:</strong> Capture inserts, updates, and deletes as individual change records for downstream processing and readers that need this representation.</li>
  <li><strong>Visibility into the sync:</strong> See connector health, replication lag, throughput, and per-table progress and errors in <a href="https://www.tigerdata.com/docs/get-started/news/new#iceberg-destination-connector-tiered-data-changelog-mode-and-improved-observability">Tiger Console</a>. You can see how the initial copy is progressing and whether ongoing changes are keeping up or falling behind. Sync metrics are also available through the <a href="https://www.tigerdata.com/docs/integrate/observability-alerting/exported-metrics#tiger-lake-metrics">metrics exporter</a>, so your team can monitor replication alongside the rest of its infrastructure. Track replication lag, throughput, and per-table sync status in Tiger Console.</li>
</ul>

<p><img src="/assets/images/writing/tiger-lake-ga/data-src-image-c5d87cd5-6c5a-465a-8534-07ee769f639f.png" alt="image" /></p>

<p><em>Tiger Console showing replication lag, throughput, table sync counts, and per-table status.</em></p>

<ul>
  <li><strong>Replication recovery: </strong>Adaptive slot retention and gap filling lets Tiger Lake resume replication without copying the entire table again. The <a href="https://www.tigerdata.com/docs/get-started/news/new#more-reliable-tiger-lake-replication-slots-with-the-slot-keep-controller">Slot Keep Controller</a> manages retention of the database log used for replication, adjusting it to available disk space. That reduces the risk of a fixed limit forcing a full resync. It runs automatically and logs its actions.</li>
  <li><strong>Support for ongoing changes to your setup:</strong> You can add nullable columns without defaults to synced tables and have them propagate to Iceberg, update destination credentials in the console, and have connector restarts for updates follow your maintenance window.</li>
  <li><strong>Control over historical data:</strong> New syncs include data in Tiger Cloud’s object storage tier by default. You can exclude <a href="https://www.tigerdata.com/docs/learn/data-lifecycle/storage/about-storage-tiers">tiered data</a> when starting a sync.</li>
</ul>

<p>The Tiger Cloud <a href="https://www.tigerdata.com/docs/get-started/news/new">changelog</a> and <a href="https://www.tigerdata.com/docs/integrate/connectors/destination/tigerlake">docs pages</a> cover these additions in more detail.</p>

<h2 id="try-tiger-lake-on-tiger-cloud">Try Tiger Lake on Tiger Cloud</h2>

<p><strong>Already using Tiger Cloud?</strong> Put your operational data to work in your lakehouse. Follow the <a href="https://www.tigerdata.com/docs/integrate/connectors/destination/tigerlake">Tiger Lake setup guide</a> to connect your destination and start syncing the tables your team needs.</p>

<p><strong>New to Tiger Cloud?</strong> <a href="https://www.tigerdata.com/go/trial">Sign up and get <strong>$1,000 in Tiger Cloud credits</strong></a> to build with Postgres and try Tiger Lake. Credits are available to new accounts and valid for 30 days. No credit card required.</p>

<h2 id="questions-you-might-have">Questions you might have</h2>

<h3 id="who-can-use-tiger-lake">Who can use Tiger Lake?</h3>

<p>Tiger Lake is generally available to <em>all Tiger Cloud customers on the Scale and Enterprise plans</em>. Your service needs PostgreSQL 17.6 or later, and each synced table needs a primary key (except continuous aggregates).</p>

<h3 id="does-tiger-lake-move-older-data-out-of-postgres">Does Tiger Lake move older data out of Postgres?</h3>

<p>No. Tiger Lake syncs selected tables into Iceberg without removing the source data or applying an age cutoff. You manage retention in Tiger Cloud separately.</p>

<h3 id="how-is-tiger-lake-priced">How is Tiger Lake priced?</h3>

<p>Tiger Lake is free until March 1, 2027 for all users. After that, you pay for the connector while it runs and for the data it delivers. In AWS US regions, the connector is $0.341 per hour. The initial copy is $0.10 per GB and ongoing changes are $0.20 per GB, measured as the uncompressed size of the data we deliver to your destination. Your Iceberg tables store that data compressed. The hourly rate varies by region; the per-GB rates are the same everywhere.</p>

<h3 id="how-is-delivered-data-measured">How is delivered data measured?</h3>

<p>We measure delivered data before compression, for the tables you choose to sync. Changes to other tables and internal database housekeeping don’t count. Re-copies we cause, and data sent again after a failure on our side, are free.</p>

<p>The bill reflects data delivered, rather than the size of the compressed Iceberg files.</p>

<h3 id="what-should-i-check-before-starting">What should I check before starting?</h3>

<p>Make sure the tool you’ll query with supports Apache Iceberg, and that your catalog is one Tiger Lake supports.</p>

<p>Decide a few settings up front: the Iceberg format version, whether to include tiered data, and whether to use changelog mode. You can’t change them later without starting a new sync. The<a href="https://www.tigerdata.com/docs/integrate/connectors/destination/tigerlake#limitations"> Tiger Lake docs list the current requirements and limitations</a>.</p>]]></content><author><name>Ramon Guiu</name></author><summary type="html"><![CDATA[Tiger Lake is generally available. Continuously sync Postgres tables and TimescaleDB hypertables to Apache Iceberg, without managing a replication pipeline.]]></summary></entry><entry><title type="html">Not All Analytics Are Equal: Benchmarking Databases for Real-Time Analytics Applications</title><link href="https://ramonguiu.com/writing/benchmarking-databases-for-real-time-analytics-applications/" rel="alternate" type="text/html" title="Not All Analytics Are Equal: Benchmarking Databases for Real-Time Analytics Applications" /><published>2025-03-26T00:00:00+00:00</published><updated>2025-03-26T00:00:00+00:00</updated><id>https://ramonguiu.com/writing/benchmarking-databases-for-real-time-analytics-applications</id><content type="html" xml:base="https://ramonguiu.com/writing/benchmarking-databases-for-real-time-analytics-applications/"><![CDATA[<p>Choosing the right database for analytics is hard. With many options available, each is optimized for different use cases.</p>

<p>Some databases are built for real-time analytics in customer-facing applications, where low-latency queries and high-ingest performance are essential. Others are designed for internal BI and reporting and optimized for large-scale aggregations and batch processing. Some databases are general-purpose, handling both transactions and analytics, while others specialize in analytical workloads.</p>

<p>Benchmarks can help—but only if they reflect your actual workload.</p>

<p>Several benchmarks, such as ClickBench, TPC-H, and TPC-DS, evaluate the performance of databases for analytics. However, they are not representative of real-time analytics.</p>

<p>To fill this gap, we’ve created <a href="https://www.rtabench.com/">RTABench</a>, a new benchmark to assist developers in evaluating the performance of different databases in real-time analytics scenarios. You can check out the benchmark tooling, datasets, and <a href="https://github.com/timescale/rtabench">results on GitHub</a>.</p>

<h3 id="existing-benchmarks-dont-measure-real-time-analytics-inside-applications">Existing benchmarks don’t measure real-time analytics inside applications</h3>

<p>Historically, the industry has relied on TPC-H and TPC-DS as the standard benchmarks for evaluating analytical databases. They are designed to simulate business intelligence and decision support systems that run complex, ad-hoc analytical queries across multiple tables on large data sets. This is the common use case for internal data warehouses like Snowflake or Databricks, not for real-time analytics databases.</p>

<p>More recently, ClickBench has emerged as a popular benchmark for analytics because it’s easy to run and contribute results. The benchmark includes public results for a comprehensive list of databases, with more than 50 across different categories (relational, NoSQL, data warehouses, real-time analytics, etc.). The results are readily available and easy to compare, making it a common reference when evaluating the analytical performance of different databases.</p>

<p>However, ClickBench evaluates databases using a single table of clickstream data, representative of workloads like web analytics, BI, and log aggregation. It also favors full-table large scans and large-scale aggregations on denormalized data.</p>

<p>Real-time analytics inside applications is different and needs a new benchmark.</p>

<h2 id="what-is-real-time-analytics">What Is Real-Time Analytics</h2>

<p>Real-time analytics enables applications to process and query data as it is generated and as it accumulates, delivering immediate and continued insights for decision-making. It’s not about knowing what happened in the past; it’s about understanding what’s happening <em>now</em>.</p>

<p>Whether tracking stock prices, monitoring IoT sensor data, or analyzing user behavior, the goal is to make decisions in the moment by combining live data with historical context. These insights are often delivered through embedded dashboards or decision engines within customer-facing applications, demanding millisecond query response times.</p>

<p>Real-time analytics applications require low-latency ingest and queries with high concurrency to enable fast and fresh insights, efficient updates and backfills to always reflect the most accurate data, and scalability to grow with workload demands without performance degradation.</p>

<p>Additionally, full table scans and large aggregations on a single denormalized table do not effectively represent the query patterns in applications delivering real-time analytics.</p>

<h2 id="real-time-analytics-query-patterns">Real-Time Analytics Query Patterns</h2>

<h3 id="1-queries-join-multiple-tables">1. Queries join multiple tables</h3>

<p>Applications store data normalized across multiple tables to ensure flexibility and efficient updates. For example, metadata and time-series/event data are stored in different tables. You need fast joins on fresh data to retrieve related records from multiple tables.</p>

<p><strong>Example</strong>: <em>Show the top five assets traded by investors in the same country as the user visiting the site in the last seven days.</em></p>

<h3 id="2-queries-filter-on-specific-objects-and-time-windows">2. Queries filter on specific objects and time windows</h3>

<p>Instead of scanning everything, real-time analytics workloads filter on particular objects (e.g., users, devices, stock symbols) and recent data (e.g., last hour, last day, last week, last month). Databases built for real-time applications must excel at indexing, partitioning, and fast lookups—not just bulk aggregations over large datasets.</p>

<p><strong>Example</strong>: <em>Show a stock’s daily ‘candlestick’ price over the past month (vs. all stocks over the years).</em></p>

<h3 id="3-pre-computed-aggregations-ensure-instant-responses">3. Pre-computed aggregations ensure instant responses</h3>

<p>Application queries are pre-defined in application code to power specific dashboards or screens. Users expect instant insights, making pre-aggregation using incrementally updated materialized views essential.</p>

<p><strong>Example</strong>: <em>Instead of computing monthly traded volume over the year for each asset on demand, an application maintains a continuously updated monthly total traded volume for each asset.</em></p>

<p>Existing benchmarks like ClickBench do not benchmark pre-aggregation, but many real-time applications depend on it for sub-second response times.</p>

<h3 id="why-not-just-denormalize-the-data">Why not just denormalize the data?</h3>

<p>Denormalization can speed up queries—but at a cost:</p>

<ul>
  <li>Freshness delays: ETL pipelines make real-time data stale.</li>
  <li>Complexity: Changing a single product name? That update might need to be written millions of times.</li>
  <li>Cost: More storage, more writes, more money spent.</li>
</ul>

<p>Most real-time applications use normalized schemas and join data at query time.</p>

<h2 id="rtabench-a-benchmark-for-real-time-analytics-applications">RTABench: A Benchmark for Real-Time Analytics Applications</h2>

<p><a href="https://www.rtabench.com/">RTABench is a new benchmark</a> we have developed to evaluate databases using query patterns that mirror real-world application workloads—something missing from existing benchmarks. Unlike ClickBench and other benchmarks, RTABench closely reflects the actual needs of real-time analytics applications, measuring key factors such as joins, selective filtering, and pre-aggregations.</p>

<p>We want to recognize upfront that RTABench is not perfect. Evaluating performance for real-time analytics would also require testing ingest and high-concurrency queries. These additions would add a lot of complexity, make the benchmark much harder and longer to run, and introduce more variance in the results, making them harder to reproduce and interpret. We’ve decided to leave those out to make the benchmark easier to use, but we will explore ways to add them while keeping the benchmark simple to run and interpret.</p>

<h2 id="how-rtabench-works">How RTABench Works</h2>

<p>RTABench is designed to reflect real-time analytics inside applications accurately by using these elements:</p>

<h3 id="schema-a-normalized-data-model">Schema: A normalized data model</h3>

<p><a href="https://github.com/timescale/rtabench">RTABench models an order tracking system with normalized tables</a>, ensuring a realistic representation of how modern applications structure data. The schema includes:</p>

<table>
  <thead>
    <tr>
      <th>Table Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Customers</td>
      <td>Stores customer details, including name, location, and signup date</td>
    </tr>
    <tr>
      <td>Products</td>
      <td>Contains product catalog information, including pricing and stock levels</td>
    </tr>
    <tr>
      <td>Orders</td>
      <td>Tracks orders placed by customers</td>
    </tr>
    <tr>
      <td>Order_Items</td>
      <td>Records the products included in each order</td>
    </tr>
    <tr>
      <td>Order_Events</td>
      <td>Tracks order status changes (e.g., created, shipped, delivered)</td>
    </tr>
  </tbody>
</table>

<h3 id="dataset-170-million-events">Dataset: 170 million events</h3>

<p>RTABench includes ~171 million order events, 1,102 customers, 9,255 products, and ~10 million orders. This dataset is large enough for meaningful performance testing while remaining practical for benchmarking.</p>

<h3 id="queries-measuring-real-time-performance">Queries: Measuring real-time performance</h3>

<p>RTABench evaluates databases using 40 queries designed to reflect real-time application workloads. These queries test:</p>

<ul>
  <li><strong>Raw event queries: </strong>counting and aggregating events over time <em>(e.g., “Count the number of ‘Departed’ shipments per day at a specific terminal”)</em></li>
  <li><strong>Selective filtering: </strong>querying specific objects and time windows <em>(e.g., “Find the last recorded status of a given order”)</em></li>
  <li><strong>Multi-table joins: </strong>fetching related data across multiple tables <em>(e.g., “Show the total revenue generated by each customer in the last 30 days”) </em></li>
  <li><strong>Pre-aggregated queries:</strong> measuring performance gains from incremental materialized views <em>(e.g., “Retrieve pre-aggregated counts of delayed shipments over the last month”). </em></li>
</ul>

<p>By including both raw and pre-aggregated queries, RTABench ensures that databases are tested for ad-hoc analytics and optimized real-time reporting, capturing the compromises between flexibility and performance. However, because very few databases support incremental materialized views (only Timescale and ClickHouse are on the current list), we’ve moved those queries to a separate section and didn’t include the results in the overall benchmark score.</p>

<h4 id="built-on-clickbench-tooling-designed-for-a-different-use-case">Built on ClickBench tooling, designed for a different use case</h4>

<p>RTABench uses the ClickBench framework for benchmarking, but it introduces a new dataset and query set that better represents real-time analytics inside applications. All tools, datasets, and benchmark results are available on <a href="https://github.com/timescale/rtabench">GitHub</a>, where we welcome contributions to expand RTABench to support additional databases and optimizations.</p>

<h2 id="rtabench-databases">RTABench databases</h2>

<p>RTABench evaluates databases built for real-time analytics inside applications, where high ingest rates, low-latency queries, and efficient joins matter most. It categorizes databases into three groups:</p>

<p><strong>General-purpose databases</strong>: These are transactional databases (e.g., PostgreSQL, MySQL) that can support real-time analytics depending on scale.</p>

<p><strong>Real-time analytics databases</strong>: These are optimized for high ingest, fast queries, and concurrency, often used as a secondary database.</p>

<p><strong>Batch analytics databases</strong>: These are built for historical analysis and batch processing, not real-time workloads. Their results are excluded by default.</p>

<table>
  <thead>
    <tr>
      <th>Database</th>
      <th>General-Purpose</th>
      <th>Real-Time</th>
      <th>Batch Analytics</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>ClickHouse</td>
      <td> </td>
      <td>✅</td>
      <td>✅</td>
    </tr>
    <tr>
      <td>ClickHouse Cloud</td>
      <td> </td>
      <td>✅</td>
      <td>✅</td>
    </tr>
    <tr>
      <td>DuckDB</td>
      <td> </td>
      <td> </td>
      <td>✅</td>
    </tr>
    <tr>
      <td>MongoDB</td>
      <td>✅</td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td>MySQL</td>
      <td>✅</td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td>PostgreSQL</td>
      <td>✅</td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td>TimescaleDB</td>
      <td>✅</td>
      <td>✅</td>
      <td> </td>
    </tr>
    <tr>
      <td>Timescale Cloud</td>
      <td>✅</td>
      <td>✅</td>
      <td> </td>
    </tr>
  </tbody>
</table>

<p>All databases are benchmarked using the same dataset and queries.</p>

<p>Because queries in real-time analytics applications are pre-defined and well known (vs. ad-hoc queries to a data warehouse), RTABench recommends optimizing the database configuration to achieve the best results instead of relying on the out-of-the-box setup.</p>

<h2 id="benchmark-results-what-we-learned">Benchmark Results: What We Learned</h2>

<p>RTABench results are published at <a href="https://www.rtabench.com/"><strong>rtabench.com</strong></a>. While performance varies based on workload characteristics, this benchmark reveals some interesting insights:</p>

<ul>
  <li><strong>General-purpose databases perform better on RTABench than on ClickBench. </strong>That’s expected—RTABench uses a normalized schema similar to real applications, while ClickBench is based on a denormalized dataset optimized for batch analytics.</li>
  <li><strong>TimescaleDB is 1.9x faster than ClickHouse on RTABench, even though it’s 6.8x slower on ClickBench. </strong>This is likely because TimescaleDB is optimized for real-time analytics applications, which often rely on normalized schemas and selective aggregations, while ClickHouse shines in denormalized, columnar analytics with large-scale aggregations.</li>
  <li><strong>Incremental materialized views offer massive speedups. </strong>They deliver up to hundreds or even thousands of times faster performance than querying the raw data (from seconds to a few milliseconds), demonstrating their value for real-time analytics. However, among the databases tested, only ClickHouse and TimescaleDB support them.</li>
  <li><strong>ClickHouse is the leader in data loading and storage efficiency</strong>. It’s 4.8x faster at loading data and uses 1.7x less disk than the next best database.</li>
  <li><strong>PostgreSQL was the fastest general-purpose database. </strong>The most popular database among developers demonstrates its versatility. With indexing, it’s only 4.1x slower than TimescaleDB on raw queries—but it can’t match the performance of incremental materialized views, which PostgreSQL doesn’t support.</li>
  <li><strong>MongoDB struggles with normalized data. </strong>It was the slowest database in the benchmark, with six queries timing out—unsurprising given its document-based model doesn’t play well with normalized data.</li>
  <li><strong>DuckDB isn’t built for real-time analytics, so it’s excluded from the main results, but it was the fastest in the benchmark. </strong>Given its popularity, we included it in the benchmark to serve as a point of reference, and it surprised us: It was 3.5x faster than TimescaleDB and 7.3x faster than ClickHouse. We didn’t expect it to beat ClickHouse, considering how well ClickHouse performs on ClickBench.</li>
</ul>

<p>Like any benchmark, RTABench results should not be viewed as a ranking but as a guide to understanding which system aligns best with your real-time analytics needs.</p>

<h2 id="contribute-to-rtabench">Contribute to RTABench</h2>

<p>Not all analytics are equal. Real-time analytics inside applications is not the same as batch analytics, and the right database depends on your specific use case. RTABench provides a realistic benchmark for real-time query patterns—where multi-table joins, selective filtering, and pre-aggregations are critical. Unlike batch-oriented benchmarks focusing on full-table scans and historical aggregations, RTABench reflects how modern applications query data.</p>

<p>To continue improving RTABench, here’s how you can contribute:</p>

<ul>
  <li>Adding new databases to expand the comparison</li>
  <li>Optimizing queries for different systems</li>
  <li>Providing feedback to refine configurations and ensure fairness</li>
</ul>

<p>All benchmark tooling, datasets, and <a href="https://github.com/timescale/rtabench">results are available on GitHub</a>, and contributions are welcome. Explore the latest results at <a href="https://www.rtabench.com/">rtabench.com</a>.</p>]]></content><author><name>Ramon Guiu</name></author><summary type="html"><![CDATA[Not all analytics are equal—neither are benchmarks. Meet RTABench and compare different databases—from PostgreSQL to ClickHouse—using real-world query patterns.]]></summary></entry><entry><title type="html">Building the Modern PostgreSQL GUI With PopSQL</title><link href="https://ramonguiu.com/writing/building-the-modern-postgres-gui/" rel="alternate" type="text/html" title="Building the Modern PostgreSQL GUI With PopSQL" /><published>2024-10-07T00:00:00+00:00</published><updated>2024-10-07T00:00:00+00:00</updated><id>https://ramonguiu.com/writing/building-the-modern-postgres-gui</id><content type="html" xml:base="https://ramonguiu.com/writing/building-the-modern-postgres-gui/"><![CDATA[<p>For years, developers have been using PostgreSQL for all kinds of workloads, from managing simple web app data to handling complex real-time analytics. As the demand for PostgreSQL grows, so does the need for tools that support fast, collaborative, and streamlined workflows.</p>

<p>However, the experience of connecting and interacting with the database has yet to fully evolve to meet this new landscape, with many developers still connecting to PostgreSQL using psql, pgAdmin, and DBeaver.</p>

<p>While these tools have served developers well for many years, they were not designed to meet the needs and collaborative workflows of developers building modern applications in the cloud. When you add in other tools like Grafana for visualization and GitHub for managing query versioning, it creates a fragmented, siloed workflow that slows developers down.</p>

<p>Earlier this year, <a href="https://www.tigerdata.com/blog/best-postgresql-gui-popsql-joins-timescale/">we acquired PopSQL</a> to solve that problem and help us build the best PostgreSQL developer experience for the cloud era. Today, we are announcing a big step toward that mission: <strong>bringing the amazing capabilities PopSQL offers directly inside the Timescale Console with our new Ops and Data modes</strong>. Ops mode focuses on configuring and managing your database services, while Data mode serves as your integrated go-to solution for connecting to your database to develop your application queries, share data insights through dashboards, and help troubleshoot database issues.</p>

<p>With these two modes, we are making developers more productive by providing <a href="https://www.tigerdata.com/learn/guide-to-postgresql-database-operations">database operations</a> and an intuitive, collaborative SQL editor that simplifies query writing, collaboration, visualization, and sharing all in one place.</p>

<p>We’ll dive into those features in a minute, but first, let’s take some time to understand the typical experience of developers working with PostgreSQL.✨To check this week’s previous launches and keep track of upcoming ones, <a href="https://www.timescale.com/blog/making-postgres-easier">head to this blog post</a> or our <a href="https://www.timescale.com/launch/2024">launch page</a>.</p>

<h2 id="the-current-postgresql-experience-a-fragmented-world">The Current PostgreSQL Experience: A Fragmented World</h2>

<p>We asked PostgreSQL developers about their day-to-day tools, and here’s what they said in our <em>2023</em> <em>State of PostgreSQL</em> survey: most use <a href="https://www.tigerdata.com/blog/how-to-install-psql-on-mac-ubuntu-debian-windows/">psql</a> (59.5%) to execute SQL queries, followed by pgAdmin (38%) and DBeaver (30.4%). (Stay tuned for this year’s report! If you haven’t taken this year’s survey yet, <a href="https://form.typeform.com/to/wtUFIZwA">do it</a>! It’s open until October 31.)</p>

<p>These tools were built for individual use on local desktops, with limited support for real-time collaboration and no seamless way to share queries or visualizations across teams who rarely work all together in the same office.</p>

<p><code class="language-plaintext highlighter-rouge">psql</code> offers a command-line interface that’s powerful but lacks the user-friendly features needed for quick visualization or sharing. While pgAdmin and DBeaver provide more functionality, they are still rooted in a single-user mindset, making team collaboration cumbersome. The top five includes DataGrip and IntelliJ, which are also single-user desktop tools.</p>

<p>To make matters worse, developers often rely on additional tools for building visualizations, like Grafana, copy-pasting into Slack to share queries or dashboards, using GitHub for query versioning, etc. This fragmented workflow is inefficient and error-prone, with constant copying and pasting across multiple tools.</p>

<p>Before discovering <a href="https://www.tigerdata.com/blog/best-postgresql-gui-popsql-joins-timescale">PopSQL</a>, this was exactly the experience we had at Timescale. We used psql for querying data, Grafana for dashboarding, and Slack for collaboration. When writing a query in psql, we collaborated by copying and pasting the SQL in Slack as we made changes, which slowed us down and introduced errors.</p>

<p>Putting that query in Grafana to create a dashboard meant more copying and pasting, and if that query was later updated through Slack conversations, we had to somehow ensure it was kept up to date in Grafana. Finally, finding an agreed-upon query in Slack and its change history required scanning long, buried Slack threads. It was like searching for a needle in a haystack—endless scrolling, broken context, and a lot of wasted time.</p>

<p>“There’s got to be a better way,” we thought. Modern cloud-based development requires a tool that not only allows for writing and running SQL but also enables easy sharing, version control, and visualization—all within a collaborative environment. Sadly, this is something traditional tools weren’t designed to offer.</p>

<p>Then we found <a href="https://www.tigerdata.com/blog/best-postgresql-gui-popsql-joins-timescale">PopSQL</a> and fell in love with its intuitive interface, fast query editor with integrated versioning, collaboration options, powerful dashboards, and amazing sharing capabilities. We wanted to bring all of those features to our users through a single integrated web UI that combined the power of the Timescale Console with PopSQL.</p>

<h2 id="say-hello-to-ops-and-data-modes-streamlined-postgresql-workflows-one-click-at-a-time">Say Hello to Ops and Data Modes: Streamlined PostgreSQL Workflows, One Click at a Time</h2>

<p>Our new Ops and Data Modes, designed to meet the diverse needs of PostgreSQL users, are the heart of the PopSQL and Timescale Console integration.</p>

<p><strong>Ops Mode</strong> is for managing and maintaining Timescale services—it’s what the Timescale Console used to be. Whether you’re adding replicas, setting up continuous aggregates, or fine-tuning your database settings, Ops Mode gives you a clear, operationally focused view. This mode also leverages PopSQL’s querying capabilities to turn SQL instructions into runnable queries and offers a fast, lightweight SQL editor for running one-off queries to check database stats or troubleshoot minor issues.</p>

<p><strong>Data Mode</strong> is all about unlocking the full power of PopSQL. This is where your queries come to life—you can write, visualize, share, and schedule them without ever leaving the console. Think of it as your SQL playground, where you get autocomplete for faster coding, schema exploration to navigate your database and visualizations that transform query results into beautiful, shareable charts.</p>

<p>Switching between modes is just one click away.</p>

<p><img src="/assets/images/writing/building-the-modern-postgres-gui/Building-the-Modern-PostgreSQL-GUI-With-PopSQL_Ops-data-mode-1.gif" alt="image" /></p>

<p>Let’s dive deeper into the new capabilities now available directly through the Timescale Console.</p>

<h3 id="streamline-sql-development-and-collaboration">Streamline SQL development and collaboration</h3>

<p>PopSQL’s integration into the Timescale Console transforms how teams work with SQL, offering a suite of features that enhance querying, collaboration, and visualization:</p>

<ul>
  <li><strong>Real-time collaboration</strong>: Work together directly in the SQL editor, seeing changes instantly. Perfect for peer reviews and remote teamwork, it eliminates the need to copy-paste queries back and forth over Slack.</li>
  <li><strong>Autocomplete</strong>: Write queries faster with intelligent suggestions for tables, columns, and functions as you type. This feature speeds up your workflow and reduces errors.</li>
  <li><strong>Schema exploration</strong>: Easily understand your data model with a detailed view of tables and columns. Pin frequently used tables or use advanced filters to quickly navigate large schemas.</li>
  <li><strong>Version history</strong>: Track every change to your queries, view differences between versions, and revert or copy as needed—making version control effortless. It supports two-way sync with your existing GitHub or GitLab repository.</li>
  <li><strong>Query variables</strong>: Parameterize queries to easily adjust values like date ranges or user IDs. This makes customization safe and efficient without the need to rewrite SQL.</li>
  <li><strong>Charts</strong>: Instantly visualize query results within the SQL editor to identify patterns, trends, and correlations, all without switching tools.</li>
</ul>

<h3 id="build-and-share-dynamic-sql-dashboards-in-minutes">Build and share dynamic SQL dashboards in minutes</h3>

<p>Create SQL-based dashboards faster than any other tool, allowing you to deliver insights in minutes rather than weeks compared to traditional dashboarding and BI tools:</p>

<ul>
  <li><strong>Flexible widgets</strong>: tell your data story effectively with different visual elements like tables, charts, text blocks, images, and more.</li>
  <li><strong>Dashboard filters</strong>: make dashboards dynamic by using variables and parameters like date ranges or customer IDs, making data exploration quick and personalized.</li>
  <li><strong>Metadata for context</strong>: easily find relevant information with descriptions, author details, and open counts, so users know what they’re looking at and who to contact for questions.</li>
  <li><strong>Scheduled refreshes</strong>: keep your dashboards current by scheduling automatic refreshes at specific intervals and pushing updated results to Slack or email.</li>
</ul>

<p><img src="/assets/images/writing/building-the-modern-postgres-gui/Building-the-Modern-PostgreSQL-GUI-With-PopSQL_Dashboard-1.png" alt="image" /></p>

<h3 id="tell-better-stories-using-notebooks">Tell better stories using notebooks</h3>

<p>PopSQL Notebooks let you tell comprehensive data stories by combining queries, visualizations, and explanations all in one place. Use it to create clear, shareable narratives that make your troubleshooting and analysis easy to understand and explore.</p>

<ul>
  <li><strong>Markdown support</strong>: write intros, document assumptions, and state conclusions for clarity.</li>
  <li><strong>Multiple queries &amp; visualizations</strong>: add as many SQL queries, charts, and tables as needed to build your story.</li>
  <li><strong>Cross-source data</strong>: join data from multiple sources like Postgres and Snowflake seamlessly.</li>
  <li><strong>Reference previous queries</strong>: use the results of one query in subsequent ones for deeper analysis.</li>
</ul>

<p><img src="/assets/images/writing/building-the-modern-postgres-gui/Building-the-Modern-PostgreSQL-GUI-With-PopSQL_Notebook.gif" alt="image" /></p>

<h3 id="effortless-sql-sharing-and-organization">Effortless SQL sharing and organization</h3>

<p>PopSQL makes sharing and organizing SQL easy by creating a centralized, reusable library of peer-reviewed queries, dashboards, and notebooks, improving efficiency and collaboration across your team.</p>

<ul>
  <li><strong>Organized folders</strong>: store queries, dashboards, and notebooks in easily accessible folders.</li>
  <li><strong>Shareable links</strong>: quickly share SQL with teammates via links; no copy-pasting or screenshots needed.</li>
  <li><strong>Access control</strong>: set view and edit permissions for secure sharing across teams.</li>
  <li><strong>Team-based organization</strong>: create teams for departments to effectively manage access control and collaboration.</li>
  <li><strong>Searchable library</strong>: quickly find any past query, dashboard, or notebook to avoid duplicating work.</li>
</ul>

<p><img src="/assets/images/writing/building-the-modern-postgres-gui/Building-the-Modern-PostgreSQL-GUI-With-PopSQL_Query-share.gif" alt="image" /></p>

<h3 id="bring-all-your-databases-together">Bring all your databases together</h3>

<p>PopSQL is designed to work seamlessly with your Timescale database while also allowing you to connect many popular databases, all from one platform. Whether you’re working in the cloud or locally, PopSQL makes connecting to multiple data sources simple and secure.</p>

<ul>
  <li><strong>Centralized database access</strong>: manage your Timescale database alongside your other databases in one SQL editor, eliminating the need for multiple tools.</li>
  <li><strong>Secure and flexible connections</strong>: connect securely with direct connections, SSH tunnels, SSL settings, and OAuth for a variety of databases.</li>
  <li><strong>Quick onboarding</strong>: set up database connections in minutes and securely share access with teammates when needed.</li>
  <li><strong>Desktop and cloud versatility</strong>: use the PopSQL desktop app for local development or VPN-protected databases, or connect through the Timescale Console for cloud access through static IPs.</li>
</ul>

<p><img src="/assets/images/writing/building-the-modern-postgres-gui/Building-the-modern-Postgres-GUI_connectors.png" alt="image" /></p>

<h2 id="even-more-coming-soon">Even More Coming Soon</h2>

<p>Bringing PopSQL into Timescale is just the beginning. Ops Mode and Data Mode are the first steps in modernizing PostgreSQL’s GUI and integrating PopSQL more deeply into the PostgreSQL ecosystem. We’re committed to delivering a cloud-native, collaborative, and scalable PostgreSQL experience that aligns with what developers like you expect today.</p>

<p>As workflows grow more complex and the demand for collaboration increases, we’ll keep evolving this foundation. Over the coming months, you can expect new features that will push the boundaries of what’s possible. We’re especially excited about AI-driven improvements that will take your developer experience to the next level—but we’ll keep the details under wraps for now. Stay tuned—<a href="https://www.tigerdata.com/blog/making-postgres-easier">there’s much more to come</a>.</p>

<p>If you’re a Timescale Cloud customer, Data Mode and Ops Mode are already in your console. <a href="https://console.cloud.timescale.com/">Try them out</a>, and I’d love to hear your thoughts. If you’re not yet a customer, <a href="https://console.cloud.timescale.com/signup">now’s a great time to get started</a>.</p>]]></content><author><name>Ramon Guiu</name></author><summary type="html"><![CDATA[See how we’re improving Postgres' GUI and developer experience in the cloud. Hint: the Timescale Console now has an integrated SQL editor.]]></summary></entry><entry><title type="html">Hypercore: A Hybrid Row-Columnar Storage Engine for Real-Time Analytics</title><link href="https://ramonguiu.com/writing/hypercore-a-hybrid-row-columnar-storage-engine/" rel="alternate" type="text/html" title="Hypercore: A Hybrid Row-Columnar Storage Engine for Real-Time Analytics" /><published>2024-09-16T00:00:00+00:00</published><updated>2024-09-16T00:00:00+00:00</updated><id>https://ramonguiu.com/writing/hypercore-a-hybrid-row-columnar-storage-engine</id><content type="html" xml:base="https://ramonguiu.com/writing/hypercore-a-hybrid-row-columnar-storage-engine/"><![CDATA[<p>There is no arguing that Postgres has grown up over the last two decades. From a <a href="https://www.postgresql.org/docs/current/history.html#HISTORY-BERKELEY">little-known academic project</a> to the <a href="https://survey.stackoverflow.co/2024/technology#most-popular-technologies-database">most loved database two years running</a>, Postgres has evolved into a versatile, polyglot platform with extensions to cover nearly every use case. As developer choices become increasingly complex, using <a href="https://www.tigerdata.com/blog/postgres-for-everything/">Postgres for everything</a> allows you to <a href="https://www.tigerdata.com/blog/how-to-collapse-your-stack-using-postgresql-for-everything/">collapse your data stack</a>, simplifying your architecture and making your life easier.</p>

<p>At Timescale, our goal is simple: to make Postgres even better. <a href="https://www.tigerdata.com/blog/tag/dev-q-a/">We’ve empowered hundreds of thousands of developers across industries</a>—including IoT, crypto, finance, developer tools, SaaS, and more—to use Postgres for their most critical applications. Companies like Toyota rely on TimescaleDB to monitor NASCAR racing cars, Postman uses it to power their API analytics, and OVHCloud has built its billing engine on TimescaleDB. Like many others, these companies need more than just a database—they need one that can handle high-performance workloads.</p>

<p>In any application, relational data like user accounts, permissions, and payment information needs to be stored and managed efficiently, and Postgres handles these tasks exceptionally well. But today’s applications often need more than just transactional consistency. They require the ability to make fast, precise decisions using large amounts of up-to-the-second data, often in mission-critical scenarios.</p>

<p>We have traditionally thought of these as time-series problems, and while time-series data is certainly central, we’ve come to realize that for users, it’s almost an implementation detail. The real challenge our customers’ applications are solving is real-time analytics. This is where TimescaleDB shines, empowering developers to address both their relational and real-time analytics needs within the database they already know and trust: Postgres. And it achieves this thanks to its hybrid row-columnar storage engine—an automatic, efficient, and finely engineered mechanism we’re calling <strong>hypercore</strong>.</p>

<h2 id="is-your-use-case-real-time-analytics">Is Your Use Case Real-Time Analytics?</h2>

<p>The problem with real-time analytics is challenging to solve. Real-time analytics involves processing and analyzing data as it’s created, providing immediate insights so you can act on that data without delay. It’s not just about knowing what’s happened in the past; it’s about understanding what’s happening <em>right now</em>.</p>

<p>Whether you’re tracking stock prices, monitoring IoT sensor data, or analyzing user behavior, the goal is to make decisions in the moment by combining live data with historical context. These insights are often delivered through embedded dashboards or driving decision engines within customer-facing applications, demanding millisecond query response times.</p>

<p>To achieve this level of responsiveness, real-time analytics needs a database that supports:</p>

<ul>
  <li><strong>High ingest throughput:</strong> supporting sustained high insert rates, often in the hundreds of thousands of writes per second, typically through streaming ingest</li>
  <li><strong>Low-latency ingestion:</strong> ensuring that new data is immediately available for queries</li>
  <li><strong>High query performance:</strong> executing fast, targeted queries on recent data with low-latency responses for time-sensitive analytics</li>
  <li><strong>Data updates and late-arriving data:</strong> allowing updates and late data to be added immediately, which happens in many real-world scenarios</li>
  <li><strong>Efficient data management:</strong> making use of techniques like compression, rollups, or retention policies to improve query performance and control costs as data accumulates</li>
</ul>

<p>Now, compare this to general-purpose analytics, where large datasets are typically processed in batches, and timeliness isn’t as critical. With batch analytics, you can afford delays in data updates and query results because you’re working with historical data over longer periods. In these cases, near-instant updates and low-latency querying aren’t as crucial, and systems can tolerate delays.</p>

<p>But with real-time analytics, every second counts—both for ingesting new information and making that data immediately available for querying. This is where TimescaleDB excels.</p>

<p>TimescaleDB can meet the demands of real-time analytics due to its hybrid row-columnar storage engine: <strong>hypercore</strong>. This engine allows TimescaleDB to automatically handle both the high-speed ingestion of new data and the efficient querying of large datasets, all while maintaining the flexibility and performance required for real-time workloads.</p>

<h2 id="hypercore-a-hybrid-row-columnar-storage-engine-for-postgres">Hypercore: A Hybrid Row-Columnar Storage Engine for Postgres</h2>

<p>A bit of honesty up front: hypercore isn’t a new thing, it already powers our highly <a href="https://www.tigerdata.com/blog/building-columnar-compression-in-a-row-oriented-database/">performant compression</a>. At the same time we realized some of our customers were more aligned with real-time analytics than <a href="https://www.tigerdata.com/blog/time-series-introduction">time series</a>, we also recognized that compression wasn’t the killer feature for them. What mattered was the conversion from row-oriented to column-oriented which came with compression. So, we recently renamed the whole package as hypercore.</p>

<p>Hypercore is built to handle the unique challenges of real-time analytics in a way that’s both powerful and easy to use. Rather than forcing developers to choose between a transactional (<a href="https://www.tigerdata.com/learn/understanding-oltp">OLTP</a>) database and an analytics (OLAP) database, hypercore combines the best of both worlds. It blends row-oriented and column-oriented storage formats into one system, creating a hybrid storage engine that seamlessly and automatically shifts data between the two based on how it’s used.</p>

<p>Let’s take a look at row and column-oriented storage formats and how they differ.</p>

<h3 id="row-oriented-storage-vs-columnar-oriented-storage">Row-oriented storage vs. columnar-oriented storage</h3>

<p>In a <a href="https://www.timescale.com/learn/columnar-databases-vs-row-oriented-databases-which-to-choose">row-oriented storage format</a>, data is stored sequentially by rows, meaning all the fields of a record are kept together on disk. This makes it highly efficient for transactional workloads, where operations involve reading or writing entire records, like inserting new readings or retrieving a reading by ID.</p>

<p>Row-based storage supports <a href="https://www.timescale.com/learn/understanding-acid-compliance">ACID transactions</a> by allowing easy access, locking, and modification of entire rows, ensuring both consistency and efficient execution. However, it is less than ideal for analytical queries focusing on specific columns. Since entire rows must be read to retrieve a single column, it leads to high I/O costs and slower query performance.</p>

<p><img src="/assets/images/writing/hypercore-a-hybrid-row-columnar-storage-engine/Hyperstore-A-Hybrid-Row-Storage-Engine-for-Time-Series-Real-Time-Analytics_data-format-row.png" alt="image" /></p>

<p><em>How data is stored in a row-based layout</em></p>

<p>In contrast, a <a href="https://www.timescale.com/learn/columnar-databases-vs-row-oriented-databases-which-to-choose">column-oriented storage format</a> stores data by individual columns instead of rows, greatly improving performance for analytical queries. This structure allows the database to efficiently read only the relevant columns needed for a query, avoiding unnecessary data retrieval.</p>

<p><a href="https://www.tigerdata.com/blog/building-columnar-compression-in-a-row-oriented-database">Columnar storage</a> is particularly efficient for aggregate operations like counting, averaging, or summing values, as each column can be scanned sequentially, resulting in faster queries. Another advantage is that columnar storage enables high compression rates. Since each column contains similar data types, <a href="https://www.tigerdata.com/blog/time-series-compression-algorithms-explained">compression algorithms</a> can more easily identify patterns and redundancies.</p>

<p><img src="/assets/images/writing/hypercore-a-hybrid-row-columnar-storage-engine/Hyperstore-A-Hybrid-Row-Storage-Engine-for-Time-Series-Real-Time-Analytics_data-form-column.png" alt="image" /></p>

<p><em>How data is stored in a column-based layout</em></p>

<p>However, columnar storage struggles with workloads that involve reading or writing full rows, real-time inserts, and frequent updates. These operations require multiple columns to be accessed, compressed, or decompressed simultaneously, leading to increased I/O overhead and slower performance for these tasks.</p>

<p>As a developer, you want fast inserts <em>and</em> efficient analytics—that’s why we built hypercore, combining the strengths of row and column storage into one unified engine.</p>

<p>Here’s how hypercore’s hybrid approach combines the benefits of both formats:</p>

<p><img src="/assets/images/writing/hypercore-a-hybrid-row-columnar-storage-engine/Hypercore.png" alt="image" /></p>

<p><em>Hypercore’s hybrid approach: data is written to a rowstore and then automatically migrated to a columnstore, allowing fast ingest rates and powerful analytics without developer intervention or storage overhead</em></p>

<ul>
  <li><strong>Fast ingest with rowstore:</strong> New data is initially written to a rowstore optimized for high-speed inserts and updates. This process ensures that real-time applications can handle rapid streams of incoming data while also allowing for mutability—upserts, updates, and deletes happen seamlessly.</li>
  <li><strong>Efficient analytics with columnstore:</strong> As the data “cools” and becomes more suited for analytics, it is automatically migrated to a columnstore, where it’s compressed into small batches and organized for efficient, large-scale queries. This columnar format allows for fast scanning and aggregation, optimizing performance for analytical workloads while also saving significant storage space.</li>
  <li><strong>Full mutability with transactional semantics: </strong>Regardless of where data is stored, TimescaleDB provides full ACID support and ensures your inserts and updates to the rowstore and columnstore are always consistent and available to queries as soon as they are completed like in a vanilla Postgres database.</li>
</ul>

<p>Hypercore abstracts all this complexity away from the developer. Data is ingested and stored in the most efficient format and queried transparently across the rowstore and the columnstore without needing to manually manage the transition and without the overhead of storing in both formats at the same time. This hybrid approach allows developers to maintain fast ingest rates while still enabling powerful analytics—without having to choose between the two.</p>

<h2 id="key-capabilities-of-hypercore">Key Capabilities of Hypercore</h2>

<p>When we first released hypercore back in 2019, we called it simply “compression.” Since then, we’ve made hundreds of incremental improvements to better serve developers building real-time analytics applications. Just this week, we announced two major performance optimizations: <a href="https://www.timescale.com/blog/boost-postgres-performance-by-7x-with-chunk-skipping-indexes">the introduction of skip (sparse) indexes</a> and <a href="https://www.timescale.com/blog/bridging-the-gap-between-compressed-and-uncompressed-data-in-postgres">inline tuple filtering during decompression</a> for DML operations (inserts, deletes, and updates).</p>

<p>Here are four key capabilities of hypercore that deliver real value to developers: chunk micro-partitions, SIMD vectorization, skip indexes, and compression.</p>

<h3 id="chunk-micro-partitions-with-segmentation">Chunk micro-partitions with segmentation</h3>

<p>TimescaleDB automatically partitions your data into chunks, storing them first in the rowstore and later in the columnstore. Hypercore enhances this by allowing you to group data within a columnstore chunk by a segmentation key, effectively creating micro-partitions within each chunk. This speeds up queries that filter on the segmentation key, as hypercore can quickly narrow down to only the relevant micro-partitions, avoiding the need to uncompress the entire chunk. This optimization makes query execution faster and more efficient.</p>

<h3 id="simd-vectorization">SIMD vectorization</h3>

<p>SIMD (Single Instruction, Multiple Data) vectorization is a powerful optimization used to accelerate data processing by enabling the CPU to process an operation on multiple data points in one instruction. We <a href="https://www.tigerdata.com/blog/teaching-postgres-new-tricks-simd-vectorization-for-faster-analytical-queries/">introduced SIMD vectorization in TimescaleDB</a> in 2023 to dramatically boost performance for real-time analytics. By allowing the CPU to process multiple values at once, SIMD speeds up tasks like compression, decompression, scanning, filtering, and aggregating large datasets. Our upcoming updates have shown up to 30x faster <code class="language-plaintext highlighter-rouge">SELECT</code> queries and 10x faster <code class="language-plaintext highlighter-rouge">DELETE</code> operations compared to TimescaleDB 2.16.0, with ongoing work to further optimize more query patterns.</p>

<h3 id="skip-indexes">Skip indexes</h3>

<p>Skip indexes allow hypercore to accelerate queries by <a href="https://www.timescale.com/blog/boost-postgres-performance-by-7x-with-chunk-skipping-indexes">skipping over irrelevant data</a>. These indexes store metadata such as minimum and maximum values for each block. For example, if you’re querying for orders with an ID greater than 10,000, the skip index allows the engine to bypass blocks where the maximum ID is less than or equal to 10,000. In the latest version of TimescaleDB, chunk-skipping indexes can be defined on the columnstore, enabling chunk exclusion for even faster query performance by pruning irrelevant chunks from the search. This exclusion dramatically reduces the data that needs to be processed, resulting in much faster analytical queries.</p>

<h3 id="compression">Compression</h3>

<p>The columnstore format is designed to group similar types of data (like timestamps or device IDs) inside our micro-partitions, enabling the use of <a href="https://www.tigerdata.com/blog/time-series-compression-algorithms-explained/">specialized compression algorithms</a> tailored to each column. Hypercore automatically applies best-in-class, lossless compression algorithms when moving data from rowstore to columnstore, achieving up to 98 % compression. This doesn’t just save on storage—it also speeds up query performance by reducing I/O, as there’s less data to read and process during queries.</p>

<h2 id="conclusion">Conclusion</h2>

<p>Applications that deliver real-time analytics are now essential in several industries. They need to ingest massive amounts of data and provide instant insights. And they need to do it while still managing traditional relational data, like user accounts or payments, seamlessly. That’s where TimescaleDB’s hypercore comes in—<a href="https://www.tigerdata.com/blog/building-columnar-compression-in-a-row-oriented-database/">a hybrid row-columnar storage engine finely engineered over the years</a> that allows you to stick with PostgreSQL even when handling the most challenging real-time analytics use cases.</p>

<p>With TimescaleDB and hypercore, you get the best of both worlds: fast, transactional inserts with row-based storage and blazing-fast query performance with columnar compression for analytics. You don’t need to compromise or manage multiple databases.</p>

<p>Want to try hypercore today? <a href="https://docs.timescale.com/self-hosted/latest/install/">Download and run TimescaleDB on your machine</a>. Want to take it out for a spin while reaping the full benefits of a managed PostgreSQL platform with <a href="https://www.tigerdata.com/blog/scaling-postgresql-for-cheap-introducing-tiered-storage-in-timescale/">automated data tiering to S3</a>, detailed <a href="https://www.tigerdata.com/blog/database-monitoring-and-query-optimization-introducing-insights-on-timescale/">query performance insights</a>, an integrated SQL editor, <a href="https://www.tigerdata.com/blog/pgvector-is-now-as-fast-as-pinecone-at-75-less-cost/">fast vector search</a>, <a href="https://www.tigerdata.com/blog/introducing-one-click-database-forking-in-timescale-cloud/">one-click replicas and forks</a>, <a href="https://www.tigerdata.com/blog/how-high-availability-works-in-our-cloud-database/">automated backups</a>, and more? <a href="https://console.cloud.timescale.com/signup">Sign up for Timescale Cloud</a> (it’s free for 30 days).</p>]]></content><author><name>Ramon Guiu</name></author><summary type="html"><![CDATA[See how we improved our hybrid row-columnar storage engine—now renamed hypercore—to solve our customers’ real-time analytics needs.]]></summary></entry><entry><title type="html">Learn OpenTelemetry Tracing With This Lightweight Microservices Demo</title><link href="https://ramonguiu.com/writing/learn-opentelemetry-tracing-with-this-lightweight-microservices-demo/" rel="alternate" type="text/html" title="Learn OpenTelemetry Tracing With This Lightweight Microservices Demo" /><published>2022-02-24T00:00:00+00:00</published><updated>2022-02-24T00:00:00+00:00</updated><id>https://ramonguiu.com/writing/learn-opentelemetry-tracing-with-this-lightweight-microservices-demo</id><content type="html" xml:base="https://ramonguiu.com/writing/learn-opentelemetry-tracing-with-this-lightweight-microservices-demo/"><![CDATA[<p>OpenTelemetry is an open-source observability framework for cloud-native service and infrastructure instrumentation hosted by the <a href="https://www.cncf.io/">Cloud Native Computing Foundation</a> (CNCF). It has gained a lot of momentum with contributions from all major cloud providers (AWS, Google, Microsoft) as well as observability vendors (including Timescale) to the point it has become the second project with the <a href="https://all.devstats.cncf.io/d/1/activity-repository-groups?orgId=1">most activity</a> and contributors only after Kubernetes.</p>

<p>A trace (or distributed trace) is a connected representation of the sequence of operations that were performed across all microservices involved in order to fulfill an individual request. Each of those operations is represented using a span. Each span includes a reference to the parent span except the first one, which is called the root span. As a result, a trace is a tree of spans. We told you everything about OpenTelemetry traces in <a href="https://blog.timescale.com/blog/what-are-traces-and-how-sql-yes-sql-and-opentelemetry-can-help-us-get-more-value-out-of-traces-to-build-better-software/">this blog post</a>.</p>

<p>However, it’s better to learn by doing. When talking about OpenTelemetry traces, we often wished we had access to a microservices demo application instrumented with OpenTelemetry, so users could play with it to directly experience the potential of tracing. For example, <a href="/writing/what-are-traces-and-how-to-use-them/">in the blog post we referenced earlier</a>, we used <a href="https://github.com/honeycombio/microservices-demo">Honeycomb’s fork of Google’s microservices demo</a>, which adds OpenTelemetry instrumentation to those services. But while it is a great demo of a microservices environment, we found it too complex and resource-heavy to run it locally on a laptop for the purposes of playing with OpenTelemetry, since it requires a Kubernetes cluster with 4 cores and 4 GB of available memory.</p>

<p>This inspired us to build a more accessible and lightweight OpenTelemetry demo application:</p>

<p><a href="https://github.com/timescale/opentelemetry-demo/"><strong>https://github.com/timescale/opentelemetry-demo/</strong></a></p>

<p>In this blog post, we’ll introduce you to this demo, which consists of a password generator overdesigned as a microservices application. We’ll dive into its architecture, explain how we instrumented the code to produce OpenTelemetry traces, and how to get the demo up and running on your computer in a few minutes.</p>

<p><strong>Note: </strong>This demo application is not <a href="https://www.tigerdata.com/blog/important-news-about-promscale/">Promscale</a>-specific. It can be easily configured to send the telemetry it generates to any OpenTelemetry-compatible backend, and we hope the broader community will find it useful.</p>

<h2 id="demo-architecture">Demo Architecture</h2>

<p>The <a href="https://github.com/timescale/opentelemetry-demo">demo application</a> is a password generator that has been overdesigned to run as a microservices application. It includes five microservices:</p>

<ul>
  <li>The <strong>generator service </strong>is the entry point for requests to generate a new password. It calls all other services to create a random password.</li>
  <li>The <strong>upper service</strong> returns random uppercase letters (A-Z).</li>
  <li>The <strong>lower service</strong> returns random lowercase letters (a-z).</li>
  <li>The <strong>digit service</strong> returns random digits (0-9).</li>
  <li>The <strong>special service</strong> returns random special characters.</li>
</ul>

<p>Apart from the microservices, the demo also deploys a pre-configured OpenTelemetry observability stack composed of the OpenTelemetry Collector, Promscale, Jaeger, and Grafana:</p>

<p><img src="/assets/images/writing/learn-opentelemetry-tracing-with-this-lightweight-microservices-demo/architecture-diagram-demo-env.png" alt="image" /></p>

<p><em>Architecture diagram of the demo environment</em></p>

<p>Obviously, this is a silly design—this is not how you would design a password generator. But we decided to use this application because it’s a very easy-to-understand example (everybody is familiar with creating secure passwords), the code is simple, and it’s very lightweight, so you can easily run it on a computer with Docker (no Kubernetes required).</p>

<p>To make the traces generated more interesting, the code of the services introduces random wait times and errors. There is also a bug in the code of one of the services (an Easter egg 👀 for you to find!).</p>

<p>All services are built in Python, except the lower service, which is built in Ruby. The demo also includes a load generator that makes requests to the generator service to create new passwords. It instantiates three instances of that load generator.</p>

<h2 id="instrumentation">Instrumentation</h2>

<p>The first step to getting visibility into the performance and behaviors of the different microservices is to instrument the code with OpenTelemetry to generate traces. The five microservices included in the demo have already been instrumented; in this section, however, we’ll explain how we did it, in case you’re interested in learning how to instrument your own.</p>

<p>OpenTelemetry provides SDKs and libraries to instrument code in a variety of different languages. SDKs allow you to manually instrument your services; at the time of this writing, the OpenTelemetry project provides SDKs for 12 (!) languages (C++, .NET, Erlang/Elixir, Go, Java, Javascript, PHP, Python, Ruby, Rust, and Swift). The maturity of those SDKs varies, though—check the <a href="https://opentelemetry.io/docs/instrumentation/">OpenTelemetry instrumentation documentation</a> for more details.</p>

<p>Additionally, OpenTelemetry provides automatic instrumentation for many libraries in a number of languages like <a href="https://opentelemetry.io/docs/instrumentation/python/automatic/">Python</a>, <a href="https://opentelemetry.io/docs/instrumentation/ruby/automatic/">Ruby</a>, <a href="https://opentelemetry.io/docs/instrumentation/java/automatic/">Java</a>, <a href="https://opentelemetry.io/docs/instrumentation/js/getting-started/nodejs/#instrumentation-modules">Javascript</a>, or .<a href="https://opentelemetry.io/docs/instrumentation/net/automatic/">NET</a>. Automatic instrumentation typically works through library hooks or monkey-patching library code. This helps you get a lot of visibility into your code with very little work, dramatically reducing the amount of effort required to start using distributed tracing to improve your applications.</p>

<p>For services written in Python, you could leverage auto-instrumentation and not have to touch a single line of code. For example, for the generator service and after setting the <code class="language-plaintext highlighter-rouge">OTEL_EXPORTER_OTLP_ENDPOINT</code> environment variable to the URL of the OTLP endpoint (the OpenTelemetry Collector, for example) where you want data to be sent, you would run the following command to auto-instrument the service:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>opentelemetry-instrument --traces_exporter otlp python generator.py
</code></pre></div></div>

<p>As we just mentioned, we already instrumented the code of the different microservices in our password generator demo. In our case, we decided to manually instrument the code to show how it is done and add some extra instrumentation, but that is not required.</p>

<p>To instrument the Python services, first, we imported a number of OpenTelemetry libraries:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>from opentelemetry import trace
from opentelemetry.trace import StatusCode, Status
from opentelemetry.instrumentation.flask import FlaskInstrumentor
from opentelemetry.instrumentation.requests import RequestsInstrumentor
from opentelemetry.sdk.resources import Resource
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter

</code></pre></div></div>

<p>Then, we initialized and set up the tracing instrumentation for the service, including setting up the Flask and HTTP auto-instrumentation:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>trace.set_tracer_provider(TracerProvider(resource=Resource.create({"service.name": "generator"})))
span_exporter = OTLPSpanExporter(endpoint="collector:4317")
trace.get_tracer_provider().add_span_processor(BatchSpanProcessor(span_exporter))
FlaskInstrumentor().instrument_app(app)
RequestsInstrumentor().instrument()
tracer = trace.get_tracer(__name__)
</code></pre></div></div>

<p>And finally, we added some manual spans with <code class="language-plaintext highlighter-rouge">tracer.start_as_current_span(name)</code> for each operation, and some events with <code class="language-plaintext highlighter-rouge">span.add_event(name)</code>:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>def uppers() -&gt; Iterable[str]:
    with tracer.start_as_current_span("generator.uppers") as span:
        x = []
        for i in range(random.randint(0, 3)):
            span.add_event(f"iteration_{i}", {'iteration': i})
            try:
                response = requests.get("http://upper:5000/")
                c = response.json()['char']
            except Exception as e:
                e = Exception(f"FAILED to fetch a upper char")
                span.record_exception(e)
                span.set_status(Status(StatusCode.ERROR, str(e)))
                raise e
            x.append(c)
        return x

</code></pre></div></div>

<p>Check the code of the <a href="https://github.com/timescale/opentelemetry-demo/blob/main/generator/generator.py">generator</a>, <a href="https://github.com/timescale/opentelemetry-demo/blob/main/upper/upper.py">upper</a>, <a href="https://github.com/timescale/opentelemetry-demo/blob/main/digit/digit.py">digit</a>, or <a href="https://github.com/timescale/opentelemetry-demo/blob/main/special/special.py">special</a> services for complete examples.</p>

<p>For the Ruby service, we did something similar. Check <a href="https://github.com/timescale/opentelemetry-demo/blob/main/lower/lower.rb">the code of the lower service</a> for more details!</p>

<h3 id="running-the-demo">Running the demo</h3>

<p>The demo uses <code class="language-plaintext highlighter-rouge">docker-compose</code> to get all components up and running on your computer. Therefore, before running it, you first need to install the <a href="https://docs.docker.com/engine/install/">Docker Engine</a> and <a href="https://docs.docker.com/compose/install/">Docker Compose</a> as prerequisites. We’ve tested the demo on recent versions of MacOS (both Intel and M1 processors), Linux (tested on Ubuntu), and Windows.</p>

<p>The <a href="https://github.com/timescale/opentelemetry-demo">opentelemetry-demo GitHub repo</a> has everything you need to run the demo. First, clone the repo:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>git clone https://github.com/timescale/opentelemetry-demo.git
</code></pre></div></div>

<p>Or, if you prefer, just <a href="https://github.com/timescale/opentelemetry-demo/archive/refs/heads/main.zip">download it</a> and unzip it.</p>

<p>Next, go into the opentelemetry-demo folder (or opentelemetry-demo-main if you used the download option):</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>cd opentelemetry-demo
</code></pre></div></div>

<p>And run:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker-compose up --detach
</code></pre></div></div>

<p><em><strong>Note:</strong> On Linux systems, the default installation only gives the root user permissions to connect to the Docker Engine, and the previous command would throw permission errors. Running sudo docker-compose up –detach would fix the permissions problems by running the command as root but you may want to </em><a href="https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user"><em>grant your user account permission to manage Docker</em></a><em>.</em></p>

<p>This will execute the instructions in the <a href="https://github.com/timescale/opentelemetry-demo/blob/main/docker-compose.yaml">docker-compose.yaml</a> file, which will build a Docker image for each service. This could take a few minutes. Then, run all the different components of the demo environment. When <code class="language-plaintext highlighter-rouge">docker-compose</code> completes, you should see something like the following:</p>

<p><img src="/assets/images/writing/learn-opentelemetry-tracing-with-this-lightweight-microservices-demo/output-docker-compose-otel-demo.png" alt="image" /></p>

<p><em><em><em>Once the microservices demo installation is complete, you will see this output from docker-compose.</em></em></em></p>

<p>And that’s it. Congratulations! You have a microservices application instrumented with OpenTelemetry sending traces to an OpenTelemetry observability stack.</p>

<p><img src="/assets/images/writing/learn-opentelemetry-tracing-with-this-lightweight-microservices-demo/running-otel-demo-short.gif" alt="image" /></p>

<p><em><em><em>Installing the microservices demo with docker-compose.</em></em></em></p>

<p>If at any point you want to stop the demo, just run <code class="language-plaintext highlighter-rouge">docker-compose down</code>.</p>

<p>We’ll talk about Jaeger and Grafana extensively in the next sections of this blog post, but as a quick note—Jaeger runs on <a href="http://localhost:16686/">http://localhost:16686/</a> and Grafana on <a href="http://localhost:3000/">http://localhost:3000/</a> . Grafana will require credentials to log in for the first time: use <code class="language-plaintext highlighter-rouge">admin</code> for the username and also <code class="language-plaintext highlighter-rouge">admin</code> for the password. You will be able to update your password immediately after.</p>

<h2 id="visualize-individual-traces-with-jaeger">Visualize individual traces with Jaeger</h2>

<p>Now that you have the entire demo up, including the password generator microservices and the preconfigured OpenTelemetry observability stack, you are ready to start playing around with the generated traces.</p>

<p>As we explained earlier, traces represent a sequence of operations, typically across multiple services, that are executed in order to fulfill a request. Each operation corresponds to a span in the trace. Traces follow a tree-like structure, and thus most tools for visualizing traces offer a tree view of all the spans that make up a trace.</p>

<p>Jaeger is the most well-known open-source tool for visualizing individual traces. Actually, Jaeger is more than just visualization, as it also provides libraries to instrument code with traces (which <a href="https://medium.com/jaegertracing/migrating-from-jaeger-client-to-opentelemetry-sdk-bd337d796759">will be deprecated soon in favor of OpenTelemetry</a>), a backend service to ingest those traces, and in-memory and local disk storage. Jaeger also provides a plugin mechanism and a gRPC API for integrating with external storage systems.</p>

<p>Jaeger is particularly helpful when you know your system is having a problem and you have enough information to narrow down the search to a specific set of requests. For example, if you know that some users of your application are experiencing very slow performance when making requests to a specific API, you could run a search for requests to that API that have taken more than X seconds and, from there, visualize several individual traces to find a pattern of which service and operation is the bottleneck.</p>

<p>Let’s turn to our simple demo application to show an example of this. If you have the demo application running, <a href="http://localhost:16686/search">you can access Jaeger here.</a></p>

<p>Now, let’s say we know there are some requests to generate a password that are taking more than 10 seconds. To find the problematic requests, we could <a href="http://localhost:16686/search?end=1644971490615000&amp;limit=20&amp;lookback=1h&amp;maxDuration&amp;minDuration=10s&amp;operation=%2F&amp;service=generator&amp;start=1644967890615000">filter traces in Jaeger to the generator service that have taken more than 10 seconds</a> and sort them by “Longest First”:</p>

<p><img src="/assets/images/writing/learn-opentelemetry-tracing-with-this-lightweight-microservices-demo/jaeger-search-ui-otel-demo.png" alt="image" /></p>

<p><em><em><em>Jaeger search UI (if you have the microservices demo running, </em></em><a href="http://localhost:16686/search"><em><em>you can access Jaeger here</em></em></a><em><em>).</em></em></em></p>

<p>In our case, we are seeing a request with 200 spans taking more than 30 seconds. Let’s open that trace and see why it is taking so long:</p>

<p><img src="/assets/images/writing/learn-opentelemetry-tracing-with-this-lightweight-microservices-demo/Screen-Shot-2022-02-22-at-1.54.23-PM.png" alt="image" /></p>

<p><em><em><em>Visualizing a distributed trace in Jaeger (if you have the microservices demo running, </em></em><a href="http://localhost:16686/search"><em><em>you can access Jaeger here</em></em></a><em><em>).</em></em></em></p>

<p>After inspecting it carefully, we can see that the <code class="language-plaintext highlighter-rouge">random_digit</code> operation in the digit service is taking more than 1 second every time it runs, while other operations are usually run in a few microseconds or milliseconds. If we go back to the list of traces, and open another slow trace, we will see that it points again to the same problem.</p>

<p>With that information, we can now inspect the code of the <code class="language-plaintext highlighter-rouge">random_digit</code> operation in the digit service, which reveals the problem:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>def random_digit() -&gt; str:
    with tracer.start_as_current_span("random_digit") as span:
        work(0.0003, 0.0001)

        # slowness varies with the minute of the hour
        time.sleep(sin(time.localtime().tm_min) + 1.0)

        c = random.choice(string.digits)
        span.set_attribute('char', c)
        return c

</code></pre></div></div>

<p>Now we can see why this operation is giving us trouble: it’s because the code is calling the <code class="language-plaintext highlighter-rouge">time.sleep</code> function, which is slowing it down!</p>

<p>Besides trace visualization, Jaeger also provides <a href="http://localhost:16686/dependencies">a service map</a> of your microservices architecture generated from trace data. This is useful to get an overview of service dependencies, which can help identify unexpected dependencies and also ways to simplify or optimize the architecture of your application. For example, the map below shows us how the generator service calls all the other services:</p>

<p><img src="/assets/images/writing/learn-opentelemetry-tracing-with-this-lightweight-microservices-demo/jaeger-map-view-otel-demo.png" alt="image" /></p>

<p><em><em><em>Service map view in Jaeger (if you have the microservices demo running, </em></em><a href="http://localhost:16686/search"><em><em>you can access Jaeger here</em></em></a><em><em>).</em></em></em></p>

<h2 id="summary">Summary</h2>

<p>With this lightweight OpenTelemetry demo, you can get an easy-to-deploy microservices environment with a complete OpenTelemetry observability stack running on your computer in just a few minutes.</p>

<p>This will help you get started with distributed tracing visualization tools like Jaeger, which are easy to use and let you dig into specific traces to troubleshoot a problem if you know what you are looking for.</p>]]></content><author><name>Ramon Guiu</name></author><summary type="html"><![CDATA[Deploy this simple microservices demo using OpenTelemetry and learn how to get unprecedented insights about your systems.]]></summary></entry><entry><title type="html">What Are Traces and How to Use Them to Build Better Software</title><link href="https://ramonguiu.com/writing/what-are-traces-and-how-to-use-them/" rel="alternate" type="text/html" title="What Are Traces and How to Use Them to Build Better Software" /><published>2021-10-11T00:00:00+00:00</published><updated>2021-10-11T00:00:00+00:00</updated><id>https://ramonguiu.com/writing/what-are-traces-and-how-to-use-them</id><content type="html" xml:base="https://ramonguiu.com/writing/what-are-traces-and-how-to-use-them/"><![CDATA[<p>Developing software is hard. Debugging complex software systems is often harder. When our software systems are not healthy, we need ways to quickly identify what is happening, and then dig deeper to understand why it is happening (and then fix the underlying issues). But in modern architectures based on microservices, Kubernetes and cloud, identifying problems (let alone predicting them) has become more and more difficult.</p>

<p>Enter observability, built on the collection of telemetry from modern software systems. This telemetry typically comes in the form of three signals: metrics, logs, and traces.</p>

<p>Metrics and logs are well known and have been widely adopted for many years through tools like <a href="https://www.nagios.org/">Nagios</a>, <a href="https://prometheus.io/">Prometheus</a>, or the <a href="https://www.elastic.co/what-is/elk-stack">ELK</a> stack.</p>

<p>Traces, on the other hand, are relatively new and have seen much lower adoption. Why? Because, for most engineers, tracing is still a relatively new concept. Because getting started takes a lot of manual instrumentation work. And because, once we have done that work, <a href="https://danluu.com/tracing-analytics/">getting value out of trace data</a> is hard (for example, most tracing tools today just provide the ability to look up a trace by ID or apply very simple filtering like Jaeger or Grafana Tempo).</p>

<p>However, traces are key to understanding the behavior of and troubleshooting modern architectures.</p>

<p>Here we demystify traces and explain what they are and why they are useful, using a concrete example. Then we describe OpenTelemetry and explain how it vastly simplifies the manual instrumentation work required to generate traces.</p>

<h2 id="what-is-a-trace">What Is a Trace?</h2>

<p>A “trace” represents how an individual request flows through the various microservices in a distributed system. A “span” is the fundamental building block of a trace, representing a single operation. In other words, a trace is a collection of underlying spans.</p>

<p>Let’s look at a specific example to illustrate the concept.</p>

<p>Imagine that we have a news site that is made of four micro-services:</p>

<ul>
  <li>The<strong> <em>frontend</em> service</strong>, which serves the website to our customer’s browser.</li>
  <li>The<strong> <em>news</em> service</strong>, which provides the list of articles from our news database that is populated by the editorial system (and has the ability to search articles and get individual articles together with their comments).</li>
  <li>The<strong> <em>comment</em> service</strong>, which lets you save new comments in the comment database and retrieve all comments for an article.</li>
  <li>The<strong> <em>advertising</em> service</strong>, which returns a list of ads to display from a third-party provider.</li>
</ul>

<p><img src="/assets/images/writing/what-are-traces-and-how-to-use-them/what-is-a-trace--1-.jpg" alt="image" /></p>

<p><em>An architecture diagram for an example news site made up of four microservices: a frontend service, a news service, a comment service, and an advertising service.</em></p>

<p>When a user clicks on the link to view an article on her browser this is what happens:</p>

<p>1) The <em>frontend</em> service receives the request.</p>

<p>2) The <em>frontend</em> service calls the <em>news</em> service passing the identifier for the article.</p>

<p>3) The <em>news</em> service calls the news database to retrieve the article.</p>

<p>4) The <em>news</em> service calls the <em>comment</em> service to retrieve the comments for the article.</p>

<p>5) The <em>comment</em> service calls the comment database and runs a query to retrieve all comments for the article.</p>

<p>6) The <em>news</em> service gets all comments for the article and sends the article and the comments back to the <em>frontend</em> service.</p>

<p>7) The <em>frontend</em> service calls the <em>advertising</em> service passing the contents of the article.</p>

<p>8) The <em>advertising</em> service makes a REST API request to the third-party ads provider with the contents of the article to retrieve the list of optimized ads to display.</p>

<p>9) The <em>frontend</em> service builds the HTML page, including the news, the comments, and the ads send the response back to the user’s browser.</p>

<p>When adding trace instrumentation to each of those services, you generate spans for each operation in the execution of the request outlined above (and more if you want more detailed tracking). This would result in a hierarchy of spans shown in the diagram below:</p>

<p><img src="/assets/images/writing/what-are-traces-and-how-to-use-them/hierarchy-of-spans--1-.jpg" alt="image" /></p>

<p><em>Hierarchy of spans for the news site microservice architecture. The length of each span indicates its duration.</em></p>

<p>The entry point for the request is the <em>frontend</em> service. The first span the <em>frontend</em> service emits covers the entire execution of the request. That span is called the root span. All other spans are descendants of that root span. The length of each span indicates its duration.</p>

<h3 id="what-do-traces-show">What do traces show?</h3>

<p>As you can see from the diagram above, there are two key pieces of information we can extract from a trace:</p>

<ol>
  <li>A connected representation of all the steps to process individual requests very easily allows us to zero in on the service and operation, causing issues in your system when troubleshooting a production problem.</li>
  <li>The dependencies between different components in the system, which we could use to build a map of how those components connect to each other. In a large system with tens or hundreds of components it is important to explore and understand the topology of the system to identify problems and improvements.</li>
</ol>

<h3 id="faster-troubleshooting-with-traces">Faster troubleshooting with traces</h3>

<p>Let’s see through a practical example of how traces help identify problems in your applications faster.</p>

<p>Continuing with our example, imagine that less than 1% of the REST API requests to the ads provider are suffering from slow response time (30 seconds). But those requests always come from the same set of users who are complaining to your support team and on Twitter.</p>

<p>We look into the problem but aggregate percentile metrics (see our blog post on <a href="https://www.tigerdata.com/blog/how-percentile-approximation-works-and-why-its-more-useful-than-averages/">percentile metrics</a> to learn how to use them) are not indicating any problem because overall performance (99th percentile of response time, p99 for short) is great since this only impacts a small number of requests.</p>

<p>Then, we start looking into our logs, but that’s a daunting task. We have to look at logs for each individual service, and concurrent requests make it very hard to read and connect those logs to identify the problem.</p>

<p><strong>What we need is to reconstruct requests around the time users reported the issue, find the slow requests, and then determine where that slowness happened.</strong></p>

<p>We have to do that manually with logs, which would take hours on a high-traffic site.</p>

<p>With traces, we can do that automatically and quickly identify where the problem is.</p>

<p>One simple way to do it is to search for the slowest traces, that is, the top ten root spans with the highest duration during the time the users complained, and look at what’s consuming most of the execution time.</p>

<p>In our example, by looking at the visual trace representation we would very quickly see that what’s common in the slowest traces is that the request to the ads provider REST API is taking too long. An even better way (if your tracing system allows for that) would be to run a query to retrieve the slowest spans in the execution path of the slowest traces which would return the spans tracking the REST API calls.</p>

<p>Note that looking at the p99 response time of those REST API calls would not have revealed any problem either because the problem occurred in less than 1 % of those requests.</p>

<p>We’ve quickly narrowed down where the problem is and can start looking for a solution as well as inform the ads provider of the issue so they can investigate it.</p>

<p>One quick fix could be to put in place a one-second timeout in the API request so that a problem with the ads provider doesn’t impact your users. Another more sophisticated solution could be to make ads rendering an asynchronous call so it doesn’t impact rendering the article.</p>

<h3 id="traces-help-us-proactively-make-software-better">Traces help us proactively make software better</h3>

<p>We can also use traces to proactively make our software better. For example, we could search for the slowest spans that represent database requests to identify queries to optimize. We could search for requests (i.e., traces) that involve a high number of services, many database calls, or too many external service calls and look for ways to optimize them and/or simplify the architecture of the system.</p>

<h2 id="traces-in-opentelemetry">Traces in OpenTelemetry</h2>

<p><a href="https://opentelemetry.io/">OpenTelemetry</a> is a vendor-agnostic emerging standard to instrument and collect traces (and also metrics and logs!) that can then be sent to and analyzed in any OpenTelemetry compatible backend. It has recently been <a href="https://www.cncf.io/blog/2021/08/26/opentelemetry-becomes-a-cncf-incubating-project/">accepted as a CNCF incubating project</a>, and it has a lot of momentum: it’s <a href="https://all.devstats.cncf.io/d/74/contributions-chart?orgId=1">the second most active CNCF project</a>, only after Kubernetes, with contributions from <a href="https://opentelemetry.devstats.cncf.io/d/5/companies-table?orgId=1&amp;var-period_name=Last%20year&amp;var-metric=contributions">all major observability vendors, cloud providers, and many end users</a> (including Timescale).</p>

<p>OpenTelemetry includes a number of core components:</p>

<ul>
  <li><strong>API specification</strong>: Defines how to produce telemetry data in the form of traces, metrics, and logs.</li>
  <li><strong>Semantic conventions</strong>: Defines a set of recommendations to standardize the information to include in the telemetry (for example attributes like the status code of a span representing an http request) and ensure better compatibility between systems.</li>
  <li><strong>OpenTelemetry protocol (OTLP)</strong>: Defines a standard encoding, transport, and delivery mechanism of telemetry data between the different components of an observability stack: telemetry sources, collectors, backends, etc.</li>
  <li><strong>SDKs</strong>: Language-specific implementations of the OpenTelemetry API with additional capabilities like processing and exporting for traces, metrics, and logs.</li>
  <li><strong>Instrumentation libraries</strong>: Language-specific libraries that provide instrumentation for other libraries. All instrumentation libraries support manual instrumentation and several offer automatic instrumentation through byte-code injection.</li>
  <li><strong>Collector</strong>: This component provides the ability to receive telemetry from a wide variety of sources and formats, process it and export it to a number of different backends. It eliminates the need to manage multiple agents and collectors.</li>
</ul>

<p><img src="/assets/images/writing/what-are-traces-and-how-to-use-them/opentelemetry-collector--1-.jpg" alt="image" /></p>

<p><em>An architecture diagram illustrating the core components of the OpenTelemetry collector, the inputs it accepts, and possible outputs it can produce.</em></p>

<p>To collect traces from our code with OpenTelemetry we will use the SDKs and instrumentation libraries for the language your services are written in. Instrumentation libraries make OpenTelemetry easy to adopt because they can auto-instrument (yes, auto-instrument!) our code for services written in languages that allow for injecting instrumentation at runtime, like Java and Node.js.</p>

<p>For example, the OpenTelemetry Java instrumentation library automatically collects traces from a <a href="https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/docs/supported-libraries.md#libraries--frameworks">large number of libraries and frameworks</a>. For languages where that is not possible (like Go) we also get libraries that simplify the instrumentation but require more changes to the code.</p>

<p>Even more, developers of libraries and components are already adding OpenTelemetry instrumentation directly in their code. Two examples of that are <a href="https://kubernetes.io/docs/concepts/cluster-administration/system-traces/">Kubernetes</a> and <a href="https://www.apollographql.com/docs/federation/opentelemetry/">GraphQL Apollo Server</a>.</p>

<p>Once our code is instrumented we have to configure the SDK to export the data to an observability backend. While we can send the data directly from our application to a backend, it is more common to send the data to the OpenTelemetry Collector and then have it send the data to one or multiple backends.</p>

<p>This way, you can simplify the management and configuration of where you want to send the data and have the possibility to do additional processing (downsampling, dropping, transforming data) before it is sent to another system for analysis.</p>

<h3 id="anatomy-of-an-opentelemetry-trace">Anatomy of an OpenTelemetry trace</h3>

<p>The <a href="https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/overview.md#tracing-signal">OpenTelemetry tracing specification</a> defines the data model for a trace. Technically, a trace is a <a href="https://en.wikipedia.org/wiki/Directed_acyclic_graph">directed acyclic graph</a> of Spans with parent-child relationships.</p>

<p>Traces must include an operation name, start and finish timestamps, a parent Span identifier, and the SpanContext. The SpanContext contains the TraceId, the SpanID, TraceFlags, and the Tracestate. Optionally, Spans can also have a list of Events, Links to other related Spans, and a set of Attributes (key-value pairs).</p>

<p>Events are typically used to add to a Span one-time events like errors (error message, stack trace, and error code) or log lines that were recorded during the span execution. Links are less common but allow OpenTelemetry to support special scenarios like relating spans that are included in a batch operation with the batch operation span, which would be initiated by multiple parents (i.e., all the individual spans that add elements to the batch).</p>

<p>Attributes can contain any key-value pair. <a href="https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/README.md">Trace semantic conventions</a> define some mandatory and optional attributes to help with interoperability. For example, a span representing the client or server of an <a href="https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#common-attributes">HTTP request</a> must have an http.method attribute and may have http.url and http.host attributes.</p>

<p><img src="/assets/images/writing/what-are-traces-and-how-to-use-them/opentelemetry-span-diagram--1-.jpg" alt="image" /></p>

<p><em>Data model of an OpenTelemetry Span</em></p>

<h2 id="conclusion">Conclusion</h2>

<p>Traces are extremely useful to troubleshoot and understand modern distributed systems. They help us answer questions that are impossible or very hard to answer with just metrics and logs. Adoption of traces has been traditionally slow because trace instrumentation has required a lot of manual effort and existing observability tools have not allowed us to query the data in flexible ways to get all the value traces can provide.</p>

<p>OpenTelemetry is quickly becoming <em>the</em> instrumentation standard. It offers libraries that automate (or at the very least simplify) trace instrumentation, dramatically reducing the amount of effort required to instrument our services. Additionally, the instrumentation is vendor-agnostic, and the traces it generates can be sent to any compatible observability backend, so we can change backends or use multiple ones.</p>]]></content><author><name>Ramon Guiu</name></author><summary type="html"><![CDATA[Learn what traces are and how you can use them to debug complex software. A deep dive from the Tiger Data engineering team.]]></summary></entry><entry><title type="html">The Future of Instrumentation Is Open: Introducing Open Source Agents and Projects at New Relic</title><link href="https://ramonguiu.com/writing/the-future-of-instrumentation-is-open/" rel="alternate" type="text/html" title="The Future of Instrumentation Is Open: Introducing Open Source Agents and Projects at New Relic" /><published>2020-07-22T00:00:00+00:00</published><updated>2020-07-22T00:00:00+00:00</updated><id>https://ramonguiu.com/writing/the-future-of-instrumentation-is-open</id><content type="html" xml:base="https://ramonguiu.com/writing/the-future-of-instrumentation-is-open/"><![CDATA[<p>At New Relic, we want to enable every engineer to gather complete telemetry from their software and systems. Since our founding in 2008, we’ve invested hundreds of thousands of engineering hours developing instrumentation, including comprehensive support for multi-language application framework instrumentation. Over the last year, we’ve also been a <a href="https://opentelemetry.devstats.cncf.io/d/5/companies-table?orgId=1&amp;var-period_name=Last%20month&amp;var-metric=contributions">top contributor</a> to the Cloud Native Computing Foundation’s OpenTelemetry project, and we believe the future of instrumentation is open.</p>

<p>In that spirit, today we’re excited to announce that we are making our agents, integrations, and SDKs available under an open source license. We believe our open source instrumentation will provide you with complete transparency about the code you deploy to your systems, and that by taking an open source approach, we can better engage with you on feedback and increase the pace of innovation and quality of our product.</p>

<h3 id="were-open-sourcing-our-instrumentation">We’re open sourcing our instrumentation</h3>

<p>Starting today, our agents for <a href="https://github.com/newrelic/c-sdk">C</a>, <a href="https://github.com/newrelic/go-agent">Go</a>, <a href="https://github.com/newrelic/newrelic-dotnet-agent">.NET</a>, <a href="https://github.com/newrelic/node-newrelic">Node</a>, <a href="https://github.com/newrelic/newrelic-python-agent">Python</a>, and <a href="https://github.com/newrelic/newrelic-ruby-agent">Ruby</a>, as well as the <a href="https://github.com/newrelic/infrastructure-agent">Infrastructure agent</a>, <a href="https://docs.newrelic.com/docs/integrations/infrastructure-integrations/get-started/introduction-infrastructure-integrations#on-host-integrations">Infrastructure integrations</a>, the <a href="https://docs.newrelic.com/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/get-started/introduction-infrastructure-integrations-sdk/">Infrastructure Integrations SDK</a>, and <a href="https://docs.newrelic.com/docs/data-ingest-apis/get-data-new-relic/new-relic-sdks/telemetry-sdks-send-custom-telemetry-data-new-relic">Telemetry SDKs</a> are available and open to contributions in New Relic’s <a href="https://github.com/newrelic">GitHub organization</a>. The remaining agents will be available soon—Java in September, PHP in October, and Browser and Mobile in 2021.</p>

<p>Our commitment to open source instrumentation goes beyond sharing our source code. We’ll also publish roadmaps for our open source products in each repo. Additionally, you’ll be able to report issues and make feature requests for those products directly on GitHub. These changes will give you a familiar channel for accessing New Relic expertise and product information and for collaboration and feedback.</p>

<p><em>Bestow is focused on delivering amazing experiences for our customers, and New Relic is an important partner to provide us observability,</em> said <strong>Chris Bartels, Engineering Manager at <a href="https://bestow.com/">Bestow</a></strong>. <em>To be able to jump in and contribute to their open source projects and get help from their team will be hugely helpful for my team and show that we have a great partnership with New Relic.</em></p>

<h3 id="were-a-top-contributor-toand-are-standardizing-onopentelemetry">We’re a top contributor to—and are standardizing on—OpenTelemetry</h3>

<p>We’re encouraged by the broad and growing acceptance of <a href="https://opentelemetry.io/">OpenTelemetry</a>—a <a href="https://www.cncf.io/">Cloud Native Computing Foundation</a> project—as the emerging standard for software instrumentation. Achieving ubiquitous instrumentation across all existing and emerging software technologies is an effort best served by collaboration among the community and the adoption of a reduced set of standards to align our efforts. Because of that, we’re standardizing our future observability offerings on OpenTelemetry, increasing our investments in the project to become a major contributor to this standard, and evolving our strategy to fully embrace open instrumentation.</p>

<p>We’re a top contributor to the OpenTelemetry SDKs for Java, Go, and C/C++ and today’s announcement only deepens that engagement.</p>

<p>We’ll contribute our instrumentation to OpenTelemetry projects, including support for the hundreds of frameworks and libraries that provide you unparalleled breadth of visibility. We’ve also taken a leadership role in OpenTelemetry metrics, contributing twelve years’ worth of experience to the metrics semantic specification, as we believe metrics are fundamental to understanding, monitoring, and observing the health and performance of a service.</p>

<p>If you are experimenting with the beta version of OpenTelemetry, you can use our exporters for <a href="https://github.com/newrelic/opentelemetry-exporter-java">Java</a>, <a href="https://github.com/newrelic/opentelemetry-exporter-go">Go</a>, and the <a href="https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/master/exporter/newrelicexporter">OpenTelemetry Collector</a> to send telemetry from your services to New Relic, as demonstrated <a href="https://blog.newrelic.com/engineering/getting-started-with-opentelemetry-for-java-and-new-relic/">in this tutorial</a>. A new UI provides an out-of-the-box experience to easily surface and troubleshoot application errors and visualize distributed traces to identify bottlenecks and anomalous behaviors.</p>

<p>To help you easily adopt OpenTelemetry, we’ll provide an OpenTelemetry agent that will include the OpenTelemetry SDK, OpenTelemetry auto-instrumentation (where available), and our <a href="https://docs.newrelic.com/docs/integrations/open-source-telemetry-integrations/open-source-telemetry-integration-list/new-relics-opentelemetry-integration">OpenTelemetry exporter</a>. Our agent will provide the features and functionality that you expect from a complete application service observability solution, while enabling real-time metrics visualization, expanded filtering and faceting of metrics, and a growing ecosystem of open instrumentation.</p>

<p>The OpenTelemetry agent—an open source downstream extension of OpenTelemetry—will include compatibility with most features of our original agents to ease the update process. Going forward, we’ll contribute instrumentation and its features to the OpenTelemetry project, so you benefit regardless of what observability backend you use. We’ll deliver production-ready OpenTelemetry agents for all programming languages we support by summer 2021.</p>

<p><strong>Don’t miss:</strong> <a href="https://blog.newrelic.com/product-news/what-is-opentelemetry/">OpenTelemetry: Future-Proofing Your Instrumentation</a></p>

<h3 id="were-ready-for-the-future-of-open-instrumentation">We’re ready for the future of open instrumentation</h3>

<p>We believe in open instrumentation. By contributing our hard-earned expertise in creating visibility to myriad languages, frameworks, datastores, and other systems, we’re making it easier for you to enable observability best practices in your systems. These are bold steps we’re taking today, but they’re only the beginning. We know what a dedicated group of engineers working in close and open collaboration can achieve, and we can’t wait to play our part in this journey.</p>

<p><strong>Visit <a href="https://opensource.newrelic.com">New Relic Open Source</a> to learn more about our open source projects and contributions.</strong></p>

<div class="meta">

  <p><em>This post contains “forward-looking” statements, as that term is defined under the federal securities laws, including but not limited to statements regarding the timing and benefits of our open source offerings and contributions to OpenTelemetry, including the future availability of agents, potential open source roadmaps, and other additional features and functionalities. The achievement or success of the matters covered by such forward-looking statements are based on New Relic’s current assumptions, expectations, and beliefs and are subject to substantial risks, uncertainties, assumptions, and changes in circumstances that may cause New Relic’s actual results, performance, or achievements to differ materially from those expressed or implied in any forward-looking statement. Further information on factors that could affect New Relic’s financial and other results and the forward-looking statements in this post is included in the filings New Relic makes with the SEC from time to time, including in New Relic’s most recent Form 10-K, particularly under the captions “Risk Factors” and “Management’s Discussion and Analysis of Financial Condition and Results of Operations.” Copies of these documents may be obtained by visiting New Relic’s Investor Relations website at http://ir.newrelic.com or the SEC’s website at www.sec.gov. New Relic assumes no obligation and does not intend to update these forward-looking statements, except as required by law.</em></p>

</div>]]></content><author><name>Ramon Guiu</name></author><summary type="html"><![CDATA[New Relic open-sources its agents, integrations and SDKs and standardizes on OpenTelemetry.]]></summary></entry></feed>