openresty / openresty/lua-nginx-module

Proposal: Hybrid programming with lua-resty-ffi

Open
#2,135 2 comments 3 reactions 0 assignees View on GitHub

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

Chinese blog

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.