FileStore

The FileStore is a service installed via the NY_FileStorePlugIn plugin. It provides files for services in the nyssr.net to download. The downloader also needs a local FileStore on the node because file transfer only works between two FileStores.

The FileStore is not a microservice. It installs its API as nanoservices, which can also be used by other nodes.

Typically, a target sends a download request to the local FileStore. If the local FileStore does not have the requested file, it contacts the FileRegistry, a microservice that holds information about the location of each file on the network. The registry forwards the request to another FileStore, and the file is internally downloaded from that FileStore. Finally, the requester receives the desired file in the response.