轻量级查询服务器
我正在寻找一些非常简单且轻量级的服务服务器。它应该由管理脚本或简单应用程序使用来查询仅以其他服务器上的 root 身份可用的信息。
我不需要高吞吐量、有状态处理等。只需要阻塞、同步查询。最好没有 HTTP 服务器。我很高兴能够接受一些字符串作为输入并通过网络输出一个字符串。如果需要,可以在客户端中完成任何数据序列化,以便仅传递不透明字符串。
现在有类似的项目吗? Perl 和 Python 的绑定将是一个额外的好处。
I'm looking for some service server that is extremely simple and lightweight. It's supposed to be used by administration scripts or simple apps to query for information that is available only as root on other server.
I don't need high-throughput, stateful processing, etc. Only blocking, synchronous queries required. Preferably no HTTP server. I'd be happy with something that takes a number of strings as an input and outputs a string over the network. Any data serialisation can be done in the client if required, so that only opaque strings are passed.
Is there any project like that already available? Bindings for perl and python would be a bonus.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有D-Bus,但是网络传输有点...... DIY。
There is D-Bus, but the network transport is a bit... DIY.
那么您只需要该服务的数据?我之前使用过 memcached 来做听起来像你需要的事情。 perl中有Cache::Memcached::Fast可以与进程交互。
So you only need data out of this service? I have used memcached before to do what it sounds like you need. There is Cache::Memcached::Fast in perl that can interface with the process.
我发现了 RPC::Lite,它满足了一切(或多或少)并且使用起来非常简单。我可能会坚持这一点,但请随意添加更多想法。
http://metacpan.org/pod/RPC::Lite::Server
I've found RPC::Lite, which satisfies everything (more or less) and is extremely simple to use. I'll probably stick with that, but feel free to add more ideas.
http://metacpan.org/pod/RPC::Lite::Server