有人能指点一下https://github.com/zeromq/lzmq这个zeroMQ的lua库可以用吗?

41 views
Skip to first unread message

James LIAOHJ

unread,
Sep 27, 2021, 9:14:11 AM9/27/21
to openresty
大家好!我想在openresty的lua脚本里面直接和后台的zeroMQ应用通讯,主要是lua执行 pub数据,不需要应答,我看到zeroMQ的官方提供了lua接口https://github.com/zeromq/lzmq。 另外也看到早期的一些资料说会阻塞worker。想请教大家:

1, 目前看到它提供了`lzmq-ffi` `lua-llthreads2`,这个能说明它不会阻塞worker了吗?有没有使用过的老手提示一下?

2,如果不编译它的源码,通过luarocks下载它的版本,再手动把so库和lua保存到openresty的对应目录下,有哪些注意点?

谢谢!

另外 https://github.com/openresty/lua-nginx-module/issues/395  这个是2015年前的issue了,不知道章大是否有继续支持封装?
Reply all
Reply to author
Forward
0 new messages