Skip to content

research decoupling libp2p from API #32

@gitaaron

Description

@gitaaron

There is an unwritten standard that graphql queries normally happen over http.

If we diverge from that standard we may not benefit from potential interop with other players in the ecosystem in the future (eg/ http cacheing middleware

Decoupling the complexities of NAT traversal can help us focus on the task of getting a workable API for the Photos app (even if it means it will only work over LAN for now).

Can we possibly remove libp2p from the API and add it in later down the road? Yes if it means we are not walking through a one-way door.

So I think the question is would the API fundamentally change if we removed libp2p then added it back in later down the road.

My first thoughts are no as long as we are only providing JS (or other language) libraries/SDKs and not exposing any more details of how the data is sent over the wire.

Some more thought/research should probably be put into this before making such a drastic change.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions