How to use DHT for a social trading environment

I'm trying to figure out if DHT can be used to solve the problem I'm working on:

I have a trading environment in which professional options traders can increase their risk limit by requesting fellow traders to provide them with part of their risk limit. A credit trader can either search for traders with certain risk parameters that are part of each trader profile, i.e. Greeks , or a credit trader, can subscribe to requests from certain traders who are looking for risk.

I want this environment to be scalable and decentralized, but I don’t know how traders can look for certain profile parameters when the data is contained in DHT. Can someone explain how to do this?

Update:
An example that can simplify understanding may be SO, but instead of working as a web application, Risk Exchange works as a desktop application on every trader's workstation. A risk request is similar to questions (which can be marked by a contract, exchange, etc.), and each user has a profile that shows their request history, their profitability on borrowed risk, etc.

Obviously, the “exchange” can be launched on the server, but I was hoping to decentralize it and make it scalable so that the system can support an arbitrary number of traders. How to search for keywords, tags and other data related to the profile of the trader, if this information is stored in a distributed hash table?

+4
source share
1 answer

There is a contradiction in my ear. DHT is a great way to distribute data in a decentralized way, but cannot provide nodes with an overview of information. This means that any overview activities, such as polling a network for specific data, must be performed at a central collection point. Solutions to this contradiction were created, but their fault tolerance does not correspond to a critical system, such as financial trading.

So my answer would be to use a centralized server to store the overview cache on the DHT network.

+3
source

Source: https://habr.com/ru/post/1306877/


All Articles