1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00
docs/developers/ocean-node/README.md

56 lines
3.6 KiB
Markdown
Raw Normal View History

2024-07-02 17:03:18 +02:00
---
description: The new Ocean stack
---
# Ocean Nodes
2024-06-18 12:35:39 +02:00
Ocean Nodes are a vital part of the Ocean Protocol core technology stack. The Ocean Nodes monorepo that replaces the three previous components: [Provider](../old-infrastructure/provider/), [Aquarius](../old-infrastructure/aquarius/) and [subgraph](../old-infrastructure/subgraph/). It has been designed to significantly simplify the process of starting the Ocean stack - it runs everything you need with one simple command.
2024-06-18 16:54:19 +02:00
2024-08-14 14:22:14 +02:00
It integrates multiple services for secure and efficient data operations, utilizing technologies like libp2p for peer-to-peer communication. Its modular and scalable architecture supports various use cases, from simple data retrieval to complex compute-to-data (C2D) tasks.
2024-06-18 16:54:19 +02:00
2024-07-22 12:56:10 +02:00
The node is structured into separate layers, including the network layer for communication, and the components layer for core services like the Indexer and Provider. This layered architecture ensures efficient data management and high security.
2024-06-18 16:54:19 +02:00
2024-08-14 14:32:52 +02:00
Flexibility and extensibility are key features of Ocean Node, allowing multiple compute engines, such as Docker and Kubernetes, to be managed within the same framework. The orchestration layer coordinates interactions between the core node and execution environments, ensuring the smooth operation of compute tasks.
2024-06-18 16:54:19 +02:00
2024-06-18 16:45:10 +02:00
For details on how to run a node see the [readme](https://github.com/oceanprotocol/ocean-node/) in the GitHub repository.
2024-07-04 13:22:43 +02:00
#### Ocean Nodes replace the Provider: <a href="#what-does-the-provider-do" id="what-does-the-provider-do"></a>
2024-07-04 13:22:43 +02:00
* The Node is the only component that can access your data
* It performs checks on-chain for buyer permissions and payments
* Encrypts the URL and metadata during publish
* Decrypts the URL when the dataset is downloaded or a compute job is started
* Provides access to data assets by streaming data (and never the URL)
* Provides compute services (connects to C2D environment)
* Typically run by the Data owner
#### Ocean Nodes replace Aquarius: <a href="#what-does-aquarius-do" id="what-does-aquarius-do"></a>
2024-07-04 13:22:43 +02:00
2024-07-23 16:12:03 +02:00
* A new component called Indexer replaces the functionality of Aquarius.
* The indexer acts as a cache for on-chain data. It stores the metadata from the smart contract events off-chain in a Typesense database.
* It monitors events: It continually checks for MetadataCreated and MetadataUpdated events, processing these events and updating them in the database.
* Serves as an API: It provides a REST API that fetches data from the off-chain datastore.
* Offers easy query access: The API provides a convenient method to access metadata without scanning the blockchain.
**Ocean Nodes replace the Subgraph:**
* Indexing the data from the smart contact events.
2024-08-14 14:32:52 +02:00
* The data is indexed and updated in real-time.
* Providing an API which receives and responds to queries.
2024-08-14 14:32:52 +02:00
* Simplifying the development experience for anyone building on Ocean.
2024-07-25 14:02:07 +02:00
### API
For details on all of the HTTP endpoints exposed by the Ocean Nodes API, refer to the API.md file in the github repository.
2024-07-25 14:02:07 +02:00
{% embed url="https://github.com/oceanprotocol/ocean-node/blob/develop/API.md" %}
2024-08-14 14:32:52 +02:00
### Compute to Data (C2D)
2024-07-29 12:07:59 +02:00
2024-08-14 14:32:52 +02:00
The Ocean nodes provide a convenient and easy way to run a compute-to-data environment. This gives you the opportunity to monetize your node as you can charge fees for using the C2D environment and there are also additional incentives provided Ocean Protocol Foundation (OPF). Soon we will also be releasing C2D V2 which will provide different environments and new ways to pay for computation.
2024-07-29 12:07:59 +02:00
2024-08-14 14:32:52 +02:00
For more details on the C2D V2 architecture, refer to the documentation in the repository:\
2024-07-29 12:07:59 +02:00
{% embed url="https://github.com/oceanprotocol/ocean-node/blob/develop/docs/C2DV2.md" %}