lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Back in 2014 I experimented with using message queues with Lua.  I wrote a Lua binding for ZeroMQ, an open-source universal messaging library, luazmq, and mqlua, a program to execute multiple Lua states, each in its own POSIX thread, communicating using ZeroMQ.  I call these parallel running Lua states nodes.

Bot packages have recently been updated and extended, because we started to use them in production for a large scale, containerized micro services based application.

Most notably luazmq no longer uses integer constants for flags etc, but strings which seems to be more Lua'ish.

If you are interested in playing with message queues in Lua, all the code is on github, but be warned, it currently lacks documentation and meaningful examples (I plan to add those).

Weblinks:

ZeroMQ, an open-source universal messaging library: https://zeromq.org/
luazmq, a Lua binding for libzmq: https://github.com/arcapos/luazmq/
mqlua, a Lua environment for parallel running Lua states: https://github.com/arcapos/mqlua

I hope to add a complete example, possibly using more Lua modules form github.com/arcapos, soon.

- mb