UDF Libraries - Protobuffer and LUA, or C


#1

Has anyone used a UDF against data that has been serialized through google’s protobuffer? Does Aerospike allow LUA to include headers/libraries during execution, or must it be just the pure LUA code with no additional libraries?


#2

http://www.aerospike.com/docs/udf/developing_lua_modules.html UDF can include “.so” file. I have written a TCP client and build it to so file. And then include this so file in UDF. And every time call this UDF to insert record, the UDF will notify the TCP server. It works. But I don’t know how to make protobuffer library into a so file.


#3

Adding this example here, since the UDF and Lua Guide was updated:

https://www.aerospike.com/docs/udf/developing_record_udfs.html#example-using-protobuf