# Aggregation Infrastructure

### How

* Real-time aggregations are processed in-memory via event streamers.
* Historical aggregations are computed from MongoDB + time-series DB pipelines.
* All are available via:
  * REST API (pull on demand)
  * WebSocket (real-time subscriptions)
  * GraphQL (soon)

### Why

Built for decision-making

* Agents and bots subscribe to real-time triggers
* Analysts and researchers query aggregated trends
* Security teams monitor wallet behaviors
* AI models use structured, labeled features for prediction

### Next

You're ready to use the aggregations:

* Subscribe to real-time data
* Query token or wallet insights
* Build dashboards or alerts

\ <img src="https://paper.dropboxstatic.com/static/img/ace/emoji/1f449.png?version=8.0.0" alt="backhand index pointing right" data-size="line"> Continue to the API & Streams section to start integrating.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lyslabs.ai/contextualized-data/aggregation-infrastructure.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
