I have done some research on js ipfs to realize that, by default, my local ipfs node does not use DHT based queries to fetch files with CIDs nor propagate my local DHT to other connected peers once the local node downloads the file. Instead it makes use of preload nodes, which are essentially delegated routing nodes that receives my http request that contains the CID of the file I want, and queries DHT on my node's behalf. I fully understand on the surface level how delegated routing works, but I want to understand how delegated routing works under the hood. I specifically have a difficult time on what the source code of a delegated routing node should look like in order to receive http requests and return files after a DHT query, as there are no good tutorials on this so far. I am also confused on how exactly a delegated routing node makes the fetched files viewable through my local node's directory. While analyzing the js ipfs source code, I found out that the IPFS.cat() method eventually displays the contents of a file by using the fs module's readFile method on a local path. I don't know how this is possible, since there is nowhere in the actual http request method sent from the local node that saves the returned response in my local directory, let alone access the local directory through the os module. In summary, I want to understand how to set up a delegated routing node to do the following: 1) receive http requests and do DHT queries 2) return the result of the DHT query and also cache the result to the local directory of the IPFS node that had sent the http request. It would be great if there were some good tutorials on this, but resources like these - https://github.com/libp2p/js-libp2p/tree/master/examples/delegated-routing - only show how to connect to a delegated routing node. It doesn't really teach us how to set up a fully functioning delegated routing node.
How do I set up and run my own delegated routing node in IPFS?
134 Views Asked by lucidcloud At
0
There are 0 best solutions below
Related Questions in NODE.JS
- Using Puppeteer to scrape a public API only when the data changes
- How to request administrator rights?
- How do I link two models in mongoose?
- Variable inside a Variable, not updating
- Unable to Post Form Data to MongoDB because of picturepath
- Connection terminated unexpectedly while performing multi row insert using pg-promise
- Processing multiple forms in nodejs and postgresql
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- My unban and ban commands arent showing when i put the slash
- how to make read only file/directory in Mac writable
- How can I outsource worker processes within a for loop?
- Get remote MKV file metadata using nodejs
- Adding google-profanity-words to web page
- Products aren't displayed after fetching data from mysql db (node.js & express)
Related Questions in ROUTES
- No webpage was found for the web address: https://localhost:7002/Category/Add?area=Admin. Why is my URL generated like ?area=Admin instead of /Admin/
- Symfony Framework - Route cannot be found even if it is defined in Controller
- Linux Networking - Routing packets from one network interface to another
- Redirect outbound traffic to a different port
- API not fetch data with dynamic page NEXT js
- Angular title routing translation
- Slim routing in PHP-DI container
- Laravel form action not accepting $order->id but accepting hard coded value
- Express-Router Library Error: Route.post() requires a callback function but got a [object Object]
- Vercel Problem | 404: NOT_FOUND Code: NOT_FOUND
- React Routes not Rendering Components
- data transfer to ip address using osi model
- `UseRouter` Caches the Cookies should I use `redirect`
- No connection could be made because the target machine actively refused it. (localhost:80) when attempting to test routes with TestServer
- Problem in hosting React App with react-router-dom on IIS Server
Related Questions in IPFS
- WebTransportError in firefox
- Can I build a dynamic Web3 site using IPFS?
- In IPFS, will same content produce the same CID on 2 different peers?
- My NFT token Metadata is not opened by Opensea
- How to pin an object (as opposed to a file) to and IPFS node?
- How do I include an already existing web3 directory in a new directory without reuploading it
- I am trying to implement a python3 library to create IPFS-Merkle DAGs but I have been unable to figure out the correct way to specify links?
- Hugo generated site is not deploying correctly, what am I doing wrong?
- NextAuth and IPFS error when hosting on app.fleek.co
- How to setup ipfs on node or in anular app using aws ec2 instance kubo setup
- IPFS not announcing CIDs on indirect peers and unable to get through cmd as CID is not propagated using DHT
- IPFS RPC API : ipfs routing findprovs provides an unreadable response
- WebSocket connection Failed when using Helia IPFS in react app
- IPNS, ENS, content hash records
- ipfs - I just cannot get it working reliably
Related Questions in DHT
- In IPFS, will same content produce the same CID on 2 different peers?
- Save values from a DHT11-Sensor to influxDB container
- How do I periodically remove inactive nodes and flush the routing table with the use of kademlia python library?
- How can I index the bittorrent DHT properly for infohashes?
- IPFS not announcing CIDs on indirect peers and unable to get through cmd as CID is not propagated using DHT
- which libp2p module do I use to broadcast data to peers in the network e.g blockchain? do I use mdns or kademlia for blockchain?
- go-libp2p: my nodes don't find any peers with DHT peer discovery
- Kademlia get_providers() fails to find nodes that start_providing() in Rust libp2p
- Are DHT algorithms good for handling large amount of counting states?
- UDP socket connected to DHT node, not recieving data
- In Bittorrent how to announce utp port for other peers
- trying to understand the flow chart of the extended message protocol as mentioned in bep 10
- Do I remove peers after a certain amount of time?(mainline dht)
- How to find metadata in the dht while only having the Infohash?
- Is it possible to receive from one port and send through another in mainline dht?
Related Questions in JS-IPFS
- How to Add Data to IPFS through Smart Contract in Truffle?
- How to get multiAddr from js-ipfs node running in browser, ipfs.config.get("Addresses.API") always is empty
- With Inline script working, How can I make my external .js file work properly with my HTML file?
- js-ipfs connect two browser peers
- how to get CID of file when creating using ipfs.files.write using ipfs-http-client
- Error when I try to add ipfs file with my nodejs Dapp
- How to store file input content in a variable for later use in Nodejs?
- How to connect to IPFS node started programmatically using ipfs-core from a java server?
- Does js-ipfs have a readonly gateway server?
- How to delete repo.lock from IPFS in Next.js (or how to get rid of the error)
- Typeerror: source is not iterable while uploading file into ipfs by using web3storage
- IPFS file extension for GLB
- How do I set up and run my own delegated routing node in IPFS?
- Where exactly in IPFS.create() or IPFS.add() does my node propagate an updated distributed hash table upon adding a file?
- Does the IPFS.add() method automatically update my local DHT and propagate it to other peers?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?