Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eosrio/Hyperion-History-API
Scalable Full History API Solution for Antelope (former EOSIO) based blockchains
https://github.com/eosrio/Hyperion-History-API
antelope api big-data blockchain elasticsearch eos eosio fio history history-api indexing monitoring observability telos ultra wax
Last synced: about 1 month ago
JSON representation
Scalable Full History API Solution for Antelope (former EOSIO) based blockchains
- Host: GitHub
- URL: https://github.com/eosrio/Hyperion-History-API
- Owner: eosrio
- License: other
- Created: 2019-02-14T12:09:00.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-11-08T01:21:25.000Z (about 1 month ago)
- Last Synced: 2024-11-08T02:24:57.061Z (about 1 month ago)
- Topics: antelope, api, big-data, blockchain, elasticsearch, eos, eosio, fio, history, history-api, indexing, monitoring, observability, telos, ultra, wax
- Language: TypeScript
- Homepage: https://hyperion.docs.eosrio.io
- Size: 27.9 MB
- Stars: 125
- Watchers: 16
- Forks: 72
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: license.md
Awesome Lists containing this project
- awesome-eosio - Hyperion History API - Scalable Full History API Solution for EOSIO based blockchains. (Developers / Libraries and Frameworks)
README
Scalable Full History API Solution for
Antelope
(former EOSIO) based blockchains
Made with ♥ by [Rio Blocks / EOS Rio](https://rioblocks.io/?lang=en)
![CI](https://github.com/eosrio/hyperion-history-api/actions/workflows/build.yml/badge.svg)
### 📖 [Hyperion Docs - Official Documentation](https://hyperion.docs.eosrio.io)
### How to use:
- [For Providers](https://hyperion.docs.eosrio.io/manual_installation/)
- [For Developers](https://hyperion.docs.eosrio.io/howtouse/)
### Official plugins:
- [Hyperion Lightweight Explorer](https://github.com/eosrio/hyperion-explorer-plugin)
### 1. Overview
Hyperion is a full history solution for indexing, storing and retrieving Antelope blockchain's historical data.
Antelope protocol is highly scalable reaching up to tens of thousands of transactions per second demanding high
performance indexing and optimized storage and querying solutions. Hyperion is developed to tackle those challenges
providing open source software to be operated by block producers, infrastructure providers and dApp developers.Focused on delivering faster search times, lower bandwidth overhead and easier usability for UI/UX developers,
Hyperion implements an improved data structure. Actions are stored in a flattened format, transaction ids are added to
all inline actions, allowing to group by transaction without storing a full transaction index. Besides that if the inline
action data is identical to the parent, it is considered a notification and thus removed from the database.
No full block or transaction data is stored, all information can be reconstructed from actions and deltas, only a block
header index is stored.### 2. Architecture
The following components are required in order to have a fully functional Hyperion API deployment.
* For small use cases, it is absolutely fine to run all components on a single machine.
* For larger chains and production environments, we recommend setting them up into different servers under a high-speed local network.#### 2.1 Elasticsearch Cluster
The ES cluster is responsible for storing all indexed data.
Direct access to the Hyperion API and Indexer must be provided. We recommend nodes in the
cluster to have at least 32 GB of RAM and 8 cpu cores. SSD/NVME drives are recommended for
maximum indexing throughput, although HDDs can be used for cold storage nodes.
For production environments, a multi-node cluster is highly recommended.#### 2.2 Hyperion Indexer
The Indexer is a Node.js based app that process data from the state history plugin and allows it to be indexed.
The [PM2 process manager](https://pm2.keymetrics.io) is used to launch and operate the indexer. The configuration
flexibility is very extensive,
so system recommendations will depend on the use case and data load. It will require access to at least one ES node,
RabbitMQ and the state history node.#### 2.3 Hyperion API
Parallelizable API server that provides the V2 and V1 (legacy history plugin) endpoints.
It is launched by PM2 and can also operate in cluster mode. It requires direct access to
at least one ES node for the queries and all other services for full healthcheck#### 2.4 RabbitMQ
Used as messaging queue and data transport between the indexer stages and for real-time data streaming
#### 2.5 Redis
Used for transient data storage across processes and for the preemptive transaction caching used on
the `v2/history/get_transaction` and `v2/history/check_transaction` endpoints#### 2.6 Leap State History
[Leap / Nodeos](https://github.com/AntelopeIO/leap/tree/main/plugins/state_history_plugin) plugin used
to collect action traces and state deltas. Provides data via websocket to the indexer#### 2.7 Hyperion Stream Client (optional)
Web and Node.js client for real-time streaming on enabled hyperion
providers. [Documentation](https://hyperion.docs.eosrio.io/dev/stream_client/)#### 2.8 Hyperion Plugins (optional)
Hyperion includes a flexible plugin architecture to allow further customization.
Plugins are managed by the `hpm` (hyperion plugin manager) command line tool.