Loading...
This site is best viewed in a modern browser with JavaScript enabled.
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
Learning resources for lua-resty library and app development
rohit.yadav
Hi,
I had recently asked the community about some amqp library, just finished a transport agent which helps us migrate our backend from lua->Redis pipeline to lua->Redis->agent->RabbitMQ->pipeline. Now, I've already started development of (to be opensourced) lua-resty-rabbitmq (over stomp) library, which would enable us and anyone to feed data directly from lua->RabbitMQ.
I've been hacking the already available libraries such as lua-resty-redis for this work and googling things, can people in the community advise and help collect list of blogs, tutorials on development of lua-resty libraries, testing and app develop, we can then put this list on openresty's wiki or some page?
I'm less experienced with both openresty and lua, I've been right now just copying my library to the install path's in $INSTALL_PATH/lualib/rabbitmq.lua and testing against a test app, how may I develop, test, package/install it. Please advise.
Thanks,
Rohit Yadav
brian
I think existing modules are the best current documentation. It's been on my list for ages to do a quick tutorial, but I haven't had the time. For dev/testing, look at the tests included with existing modules (usually in the "t" directory).