Syndica uses QuestDB for real-time analytics
Learn how emerging Web3 startup Syndica offers user-facing analytics and real-time dashboards for companies building protocols and decentralized applications.
Syndica looked to QuestDB for massive scale
Syndica's sheer volume of collected data leads to unique requirements. But data-in is half the story. Fast queries and data-out are also essential. Dynamic, real-time dashboards for their internal teams and customers led them towards a time-series database.
SELECTstart_time AS ts,COUNT(*)FROMrequest_logsWHEREtimestamp > dateadd('d', -30, now())AND kind = 'RPC'SAMPLE BY1sFILL(NULL)ALIGN TO CALENDAR
Deep observability with SQL time-series extensions
Syndica uses SQL time-series extensions like SAMPLE BY for downsampling data. The following query samples massive RPC logs to power Syndica's dashboards. Through these queries, Syndica also provides structured searchable logs for the Syndica RPC. Developers can filter and drill down to very detailed time slices (milliseconds) of logging data to gain ultimate visibility and observability of the running application.
QuestDB architecture for Syndica
Syndica leverages two high-performance QuestDB instances connecting to other applications via the InfluxDB line protocol ("ILP") for ingestion and PGWire for queries. To chart their infrastructure metrics, Syndica plots the results on dashboards via Grafana.