如何在社交交易环境中使用 DHT

发布于 2024-08-28 18:25:01 字数 680 浏览 7 评论 0原文

我试图了解是否可以使用 DHT 来解决我正在工作的问题on:

我有一个交易环境,专业期权交易者可以通过要求其他交易者借给他们一些风险限额来提高他们的风险限额。贷款交易者可以搜索具有某些风险参数的交易者,这些参数是每个交易者个人资料的一部分,即 希腊人,或者贷款交易者可以订阅某些寻求风险的交易者的请求。

我希望这个环境是可扩展和去中心化的,但我不知道当数据包含在 DHT 中时,交易者如何搜索特定的配置文件参数。有人能解释一下这是如何做到的吗?

更新:
一个可能更容易理解的例子可能是这样,但风险交换不是作为网络应用程序运行,而是作为桌面应用程序在每个交易者的工作站上运行。风险请求就像问题(可能被合同、交易所等标记),每个用户都有一个个人资料,显示他们的请求历史、借入风险的回报等。

显然,“交易所”可以在服务器,但我希望将其去中心化并使其可扩展,以便系统可以支持任意数量的交易者。如果与交易者个人资料相关的关键字、标签和其他数据存储在分布式哈希表中,我如何搜索这些信息?

I'm trying to understand if a DHT can be used to solve a problem I'm working on:

I have a trading environment where professional option traders can get an increase in their risk limit by requesting that fellow traders lend them some of their risk limit. The lending trader can either search for traders with certain risk parameters which are part of every trader's profile, i.e. Greeks, or the lending 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 search for specific profile parameters when the data is contained in a DHT. Could anybody explain how this can be done?

Update:
An example that might make it easier to understand might be SO, but instead of running as a web application, the Risk Exchange runs as a desktop application on each trader's workstation. The request for risk are like questions (which may be tagged by contract, exchange, etc) and each user has a profile which shows their history of requests, their return on borrowed risk, etc.

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

空心空情空意 2024-09-04 18:25:01

你的问题在我听来是矛盾的。 DHT 是一种以去中心化方式分发数据的好方法,但无法为节点提供信息概览。这意味着任何概览操作(例如向网络询问某些数据)都必须在集中收集点完成。这个矛盾的解决方案已经创建,但它们的容错能力与金融交易等关键系统不匹配。

所以我的答案是使用集中式服务器来保存 DHT 网络的概览缓存。

Your question holds a contradiction in my ears. DHT is a great way of distributing data in a decentralized manner, but cannot provide the nodes with an information overview. This means that any overview action, such as questioning the network for certain data, will have to be done at a centralized collection point. Solutions to this contradiction has been created, but their fault tolerance does not match a critical system such as financial trading.

So my answer would be to use a centralized server to hold an overview cache of the DHT network.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文