简体   繁体   English

chrome扩展程序:在何处/如何托管用户提供的数据?

[英]chrome extension: where/how to host user-contributed data?

question: 题:

how/where to send HTML objects from individual users to common (accessible) database? 如何/从何处将HTML对象从单个用户发送到公共(可访问)数据库? how/where to host? 如何/在哪里托管?

context: 上下文:

In a browser game, the states of many in-game objects constantly change. 在浏览器游戏中,许多游戏对象的状态不断变化。 These states are useful to know, and you can go check the objects to see their states in plain HTML, but it is costly, in terms of time and in-game resources. 了解这些状态非常有用,您可以检查对象以纯HTML格式查看它们的状态,但是这在时间和游戏资源方面都是昂贵的。

Many players cooperate, each checking various objects and reporting their findings, but there is a lot of overhead (typing) involved, and it is generally difficult to organize. 许多参与者合作,每个参与者检查各种对象并报告他们的发现,但是涉及很多开销(输入),通常很难组织。

I want to write code that will eliminate the overhead AND organize the data. 我想编写代码来消除开销并组织数据。 It will gather HTML data from individual users, as they encounter in-game objects, and send the latest state of each object to a common database, where it will be time-stamped and organized, available for participating user to query/view. 当遇到游戏中的对象时,它将从单个用户那里收集HTML数据,并将每个对象的最新状态发送到一个公共数据库,该数据库将进行时间戳记和组织,可供参与的用户查询/查看。

But where/how can I store such a database? 但是我可以在哪里/如何存储这样的数据库? Is there a utility already built into chrome extensions, for this purpose? 为此,Chrome扩展程序中已经内置了实用程序吗?

You have to host external servers yourself. 您必须自己托管外部服务器。 For example in Google Compute Engine or pre-made services. 例如在Google Compute Engine或预制服务中。 The only similar facility that Chrome has is storage.sync but its meant for small data and only syncs between browsers with the same chrome users. Chrome具有的唯一类似功能是storage.sync,但它仅适用于小数据,并且仅在具有相同chrome用户的浏览器之间同步。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM