ActivePivot

ActivePivot

  • 5.10.3
  • Other Versions
  • User Guide
  • Technical Documentation
  • Support

›Streaming API

Introduction

  • Overview
  • What's new in ActivePivot

Getting Started

  • Overview
  • AP in a Nutshell
  • Development Environment
  • Download
  • Sandbox Project

Concepts

  • Overview
  • AP Concepts in a Nutshell
  • Data Versioning (MVCC)
  • Dimensions and Hierarchies
  • Partitioning and NUMA
  • Other Concepts

Data Loading

  • Overview
  • Datastore

    • Datastore Configuration
    • Datastore Transactions
    • Store Indexing

    ETL

    • Overview
    • CSV Source
    • JDBC Source
    • Parquet Source

    Loading data from the cloud

    • Cloud Source
    • Amazon S3 Cloud Source
    • Azure Cloud Source
    • Google Cloud Source

    Specific data types

    • Handling Dates
    • Vectors

Aggregation & Analytics

  • Overview
  • Cube Configuration
  • Copper API

    • Introduction
    • API
    • Measures
    • Hierarchies
    • Publication
    • Join operations
    • Advanced topics

    Streaming API

    • Continuous Queries Overview
    • Streaming Overview
    • Continuous Query Engine
    • Continuous Handlers

    Advanced APIs

    • Cube Locations
    • Post-Processors
    • Cube Filters
    • Member Properties
    • Context Values

Data Querying

  • Overview
  • Business Frontends
  • Server Endpoints

    • XMLA
    • Datastore REST API
    • Cube REST API
    • Cube Websocket API

    MDX

    • MDX Engine Configuration
    • MDX Functions
    • MDX Operators
    • MDX Formats
    • MDX Filtering
    • MDX Snippets
    • MDX Cellsets
  • Datastore Queries
  • Location-Based Queries
  • Drillthrough Extensions

Configuration

  • Overview
  • ContentServer

    • Content Server
    • ContentServer REST API
    • CS Websocket API
  • ActivePivot Properties
  • Internationalization

Security

  • Overview
  • Client/Server Communication

    • Authentication
    • Authorization & Entitlements

    Data Access Control

    • Datastore Access Control
    • ActivePivot Access Control
    • Branch Permission Manager

Distributed Architecture

  • Overview
  • Communication Flows
  • Post-Processors
  • Security
  • What-If
  • Recommendations
  • Distribution Properties

Operations

  • Overview
  • Monitoring

    • Health Dispatcher
    • Query Execution Plan
    • Monitoring Query Execution
    • JMX monitoring
    • Off-Heap Memory Export
    • Tracing REST API
  • Troubleshooting
  • Performance
  • High Availability

Release & Migration Notes

  • Changelog
  • Migration notes
  • Deprecated features

Reference

  • Javadoc
  • REST APIs

Continuous Queries Overview

A key feature of ActivePivot is its support for Continuous Queries.

Continuous queries are "normal" ActivePivot queries, but instead of just making a query and getting the result at a given instant, they are refreshed when data changes.

Continuous queries are registered to ActivePivot together with their listeners. When the values of the measures defined in the registered query change because of a transaction or a real-time event, the listeners are notified of this change and receive the new aggregated values.

Registering Continuous Queries

For most usages, continuous queries are registered via the Streaming API. In some advanced use cases, you can register locally (within the same JVM as the running ActivePivot server) within location-based continuous queries.

Measures and Handlers Configuration

For listeners to be notified whenever a measure value changes, without recomputing all the queries any time something happens, the continuous query engine must be aware of which events can trigger a value change for a given query.

This is the job of the Aggregates Continuous Handlers.

Continuous Query Engine Configuration

The Continuous Query Engine is responsible for calling the handlers to check if a query can be impacted by an event, then recomputing the relevant measure values for the registered continuous queries and notifying the listeners.

ActivePivot offers various implementations of Continuous Query Engines to best fit different performance and feature use cases.

← Advanced topicsStreaming Overview →
  • Registering Continuous Queries
  • Measures and Handlers Configuration
  • Continuous Query Engine Configuration
ActivePivot
Community
Stack OverflowLinkedinTwitter
More
Blog
Copyright © 2021 ActiveViam