lua-nginx-module icon indicating copy to clipboard operation
lua-nginx-module copied to clipboard

Proposal: Hybrid programming with lua-resty-ffi

Open kingluo opened this issue 2 years ago • 2 comments

lua-resty-ffi provides an efficient and generic API to do hybrid programming in openresty with mainstream languages (Go, Python, Java, Rust, Node.js, etc.).

Features:

  • nonblocking, in coroutine way
  • simple but extensible interface, supports any C ABI compliant language
  • once and for all, no need to write C/Lua codes to do coupling anymore
  • high performance, faster than unix domain socket way
  • generic loader library for python/java
  • any serialization message format you like

Please refer to: https://github.com/kingluo/lua-resty-ffi

Also, check this blog post for more descriptions:

Implement Grpc Client in Rust for Openresty

Chinese blog

I hope I could merge this library into openresty. It's meaningful to extend the ecosystem of openresty. Thanks. @agentzh @zhuizhuhaomeng

kingluo avatar Dec 10 '22 09:12 kingluo