←back to thread

238 points gasull | 3 comments | | HN request time: 0.603s | source
1. swoorup ◴[] No.44383760[source]
Does this always have to be p2p or does it also allow for client server architecture
replies(2): >>44384252 #>>44384579 #
2. dpc_01234 ◴[] No.44384252[source]
It just makes a connection between two sides. How you use it (e.g. client makes a request, server responds) is up to you. So yes.
3. rklaehn ◴[] No.44384579[source]
The two sides are peers when it comes to connection establishment, but once you have a connection they can and frequently will have different roles.

Many existing iroh protocols have clear client and server roles once the connection is established. E.g. gossip is a peer to peer protocol, blobs is a client server protocol in that one side provides data and the other requests it.

For a client you can use an ephemeral node id and not publish your info to discovery, since you will never be dialed yourself.