闪亮的服务器只是一个 "additional features" 的网络服务器吗?

Is a shiny server simply a web server with "additional features"?

我不是网络服务器方面的专家,所以我想知道:

shiny 服务器只是一个 web 服务器,具有托管 shiny 应用程序所需的一些附加功能吗?

换句话说:

我可以像 Apache 这样的 Web 服务器在闪亮的服务器上做同样的事情吗?

或者:

"traditional" 网络服务器和闪亮的服务器有何不同?

免责声明:我从未使用过Shiny。由于这个问题,我开始阅读它,并且无法停止。以下是我从阅读中得到的一些印象:

Can I do the things I do with a web server like Apache also do on a shiny server?

如果您的意思只是提供静态资产(html、css、js、img 等),例如 Apache 的 httpd,那么答案似乎是肯定的。来自 the administrator's guide:

Each server can have locations that are capable of serving Shiny Applications and static assets, as well.


Is the shiny server simply a web server with some additional features necessary to host shiny apps?

或多或少。一个 Shiny 服务器可以被认为是一个盒子,有几个端口(可能包括 443/80)暴露,运行 是 Shiny 二进制文件并且有一个 R 运行time。这本质上是弥合 R 代码和浏览器之间差距的脚手架和胶水。

它还公开了一个用于与服务器交互的管理 Web 界面。对于 Pro 用户,它具有简单的 LDAP 集成等优点。


How do a "traditional" web server and a shiny server differ?

乍一看,您可能会在 Shiny 的配置文件中配置 httpd 类型的东西(shiny-server.conf 而不是 httpd.conf)。我没有看到任何迹象表明您需要自带网络服务器,所以我猜那部分是由 Shiny 二进制文件本身提供的。

当然,您可以 运行 在这个盒子上的 Shiny 旁边添加任意数量的东西,直到 运行 RAM 或端口不足。