openresty / openresty/lua-nginx-module
Proposal: Hybrid programming with lua-resty-ffi
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11.8k
- Forks
- 2.1k
- Avg merge
- 6h 1m
- Merged PRs (30d)
- 6
Description
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
I hope I could merge this library into openresty. It's meaningful to extend the ecosystem of openresty. Thanks.
@agentzh @zhuizhuhaomeng
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the lua-resty-ffi repository and the linked OpenResty integration references. Identify the lua-nginx-module entry points and tests involved in extending the ecosystem, then establish the integration scope and acceptance criteria before attempting implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, lua
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100