LTheGreats

LTheGreats

How should I go about building a public decentralized application?

I want to create a fully decentralized p2p app that is not related to in any way crypto currency.

Some features it would need to have are:

  1. Any node on the network could have it’s own private data and data accessible to any participant on the network.
  2. The ability to query all or a set of nodes and filter them based on tags associated with the nodes.
  3. A node on the network should be able to form a private, encrypted communication channel with any other node on the network. (private meaning that there is no record of any sort on the network)

For the purposes of this project 1 node = 1 user.

At the moment. there is no need for a single global state of the network, but all nodes should be capable of collecting and caching data from each other without being on the same local network.

Do you have any tools, tips and/or tricks that could help me develop this in elixir, or is there a better option for making such a thing? Also I would find architectural advice to be helpful since I’m relatively new to making software in elixir.

Most Liked

lucaong

lucaong

If it is acceptable or desirable that peers are running client-side in the browser, check WebRTC. It is a browser standard, not related to Elixir, implemented by all modern browsers. Although it was originally conceived for real-time media like video chats, it is not limited to it, and comes with all it takes to establish P2P connections between browsers. With WebRTC data channels you can exchange arbitrary data with mandatory encryption and tunable performance vs. reliability trade-off.

I don’t know if it would meet your requirements, but delving through it is also a good exercise in understanding the design and challenges of P2P networks.

For an introduction on P2P with WebRTC, you can check out my talk at the OpenFest 2019: Going Peer-to-Peer with WebRTC (there are many great talk and articles on the topic, so forgive my shameless plug here :slight_smile:)

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New
Tee
can someone please explain to me how Enum.reduce works with maps
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
lk-geimfari
What is most correct way to open, read and parse JSON file with poison? For example if we have example.json file in root of some projec...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
LegitStack
I’m trying to make a websocket server in Phoenix or raw Elixir. I heard about gun, I think I could use cowboy, but since I’m not that sma...
New

Other popular topics Top

lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set? Thanks.
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
William
I would like to know that is there any online source for learning Phoenix Framework for building E-Commerce Store? Any advantage on build...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 42633 214
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

We're in Beta

About us Mission Statement