---
title: "Time-series Storage"
url: https://develop.sentry.dev/backend/application-domains/tsdb/
---

# Time-series Storage | Sentry Docs

Sentry provides a service to store time-series data. Primarily this is used to display aggregate information for events and projects, as well as calculating (in real-time) the rates of events.

## [The Snuba backend (recommended)](https://develop.sentry.dev/backend/application-domains/tsdb.md#the-snuba-backend-recommended)

```python
SENTRY_TSDB = 'sentry.tsdb.snuba.SnubaTSDB'
```

`SnubaTSDB` requires Sentry 26.10.1 or later. On earlier versions its writes raise errors when events are saved, so keep `RedisSnubaTSDB` until you upgrade.

This backend reads event ingestion related metrics from Snuba. Writes are no-ops, because Snuba already stores the data the time series are built from. Snuba needs to have its own outcomes consumer running, which is currently not part of devservices.

`sentry.tsdb.redis.RedisTSDB` was removed in Sentry 26.10.1, and `sentry.tsdb.redissnuba.RedisSnubaTSDB` in 26.11.0. Configs that still name `RedisSnubaTSDB` keep working, so upgrades don't break. Sentry uses `SnubaTSDB` instead and logs a deprecation warning. Switch them to `SnubaTSDB`.

## [The Dummy Backend](https://develop.sentry.dev/backend/application-domains/tsdb.md#the-dummy-backend)

As its name implies, *all* TSDB data will be dropped on write and substituted with zeroes on read:

```python
SENTRY_TSDB = 'sentry.tsdb.dummy.DummyTSDB'
```
