【发布时间】:2016-10-01 05:11:33
【问题描述】:
我在一个项目中使用 Autobahn,在阅读文档的 running autobahn components section 时,我发现您可以使用内置的 ApplicationRunner 运行应用程序组件。例如,
from autobahn.asyncio.wamp import ApplicationRunner
runner = ApplicationRunner(url=u"ws://localhost:8080/ws", realm=u"realm1")
runner.run(MyComponent)
docs 明确说明应用程序运行器用于开发,
这个类是一个方便的工具,主要用于开发和快速 托管 WAMP 应用程序组件。
我想知道 WAMP 应用程序组件(通过 Autobahn 或其他方式创建)应该如何在生产环境中托管?如,是否有生产运行人员? IE。这个地区的独角兽是什么?
【问题讨论】: