edge-ur

command module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2023 License: Apache-2.0, MIT Imports: 6 Imported by: 0

README

Edge Node

Edge is currently under heavy development. An optimized version will be released soon

Goal/Purpose

Dedicated light node to upload and retrieve their CIDs. To do this, we decoupled the upload and retrieval aspect from the Estuary API node so we can create a node that can live on the "edge" closer to the customer.

By decoupling this to a light node, we achieve the following:

  • dedicated node assignment for each customer. The customer or user can now launch an edge node and use it for both uploading to Estuary and retrieval using the same API keys issued from Estuary.
  • switches the upload protocol. The user still needs to upload via HTTP but the edge node will transfer the file over to a delta node to make deals.

image

Features

  • Only supports online/e2e verified deals for now.
  • Accepts concurrent uploads (small to large)
  • Stores the CID and content on the local blockstore using whypfs
  • Save the data on local sqlite DB
  • retries the storage deals if it fails. Uses delta auto_retry feature.
  • periodically checks the status of the deals and update the database.
  • For 32GB and above, the node will split the file into 32GB chunks and make deals for each chunk and car them. [WIP]

Getting Started

To get started, follow the guide here.

Author

Protocol Labs Outercore Engineering

Documentation

Overview

It creates a new Echo instance, adds some middleware, creates a new WhyPFS node, creates a new GatewayHandler, and then adds a route to the Echo instance

Directories

Path Synopsis
Package api It takes a path, parses it, and returns the protocol, the CID, and the path segments
Package api It takes a path, parses it, and returns the protocol, the CID, and the path segments

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL