←back to thread

239 points gasull | 1 comments | | HN request time: 0.212s | source
Show context
b0a04gl ◴[] No.44381084[source]
lets say if i someone wants to keep using bittorrent dht for peer finding but swap out quic for something else maybe grpc, does the lib support that split clean? asking from a modular embed first tooling pov, where discovery logic needs to outlive or outswap transport depending on deployment
replies(1): >>44381138 #
1. b_fiive ◴[] No.44381138[source]
yep totally doable. You'd use iroh configured with mainline, Then write a custom protocol for the grpc bit: https://www.iroh.computer/docs/protocols/writing

We use this a bunch for writing rpc protocols on iroh: https://github.com/n0-computer/irpc , but there's no reason you couldn't write one with grpc.