[英]Authoritative server based on cloud technologies (couchdb or similar)
For a few days I've been thinking about creating new game of mine using CouchDB which I'm pretty familiar with, but the problem is - I need some computation or logic done on the server side (for example updating objects not related to any player, or changing some world parameters and what not). 几天来,我一直在考虑使用我非常熟悉的CouchDB创建我的新游戏,但是问题是-我需要在服务器端进行一些计算或逻辑处理(例如,更新与任何内容都不相关的对象)播放器,或更改某些世界参数,而不更改其他参数)。 As far as I know CouchDB and similar technologies transfer all server logic (except for maps and privileges) on front end, but could something like this be done server side?
据我所知,CouchDB和类似技术会在前端传输所有服务器逻辑(除了映射和特权),但是可以在服务器端完成类似的事情吗? Or, could I create some sort of a bridge that would communicate with players on one side and with some document based server on the other?
或者,我是否可以创建某种桥接,以便一方面与播放器进行通讯,另一方面与某些基于文档的服务器进行通讯?
Has anyone had similar issues/ideas? 有没有人有类似的问题/想法?
Regards, V 问候,V
You could run a server process listening for database/document/view updates and react to changes in your world accordingly. 您可以运行服务器进程来监听数据库/文档/视图更新,并相应地对您的世界做出反应。 The changes feed is your friend .
更改提要是您的朋友 。 It has an http interface, decouples your logic and there are libraries for a lot of languages.
它具有http界面,使您的逻辑脱钩,并且提供了许多语言的库。
With couchdb's external processes , you can even make couchdb start and monitor your process. 借助ouchdb的外部进程 ,您甚至可以启动ouchdb并监视您的进程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.