openresty / openresty/lua-resty-redis
Async save to remote redis instances
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 2k
- Forks
- 447
- Avg merge
- 2h 24m
- Merged PRs (30d)
- 3
Description
Hello!
I have installed ngx-lua and lua-redis modules on my Linux-server. So the new site's data saved into local Redis DB via Lua code at location section of my nginx. (As I understand in non-blocking mode for other www-clients of my site). But I have some other remote Redis-servers. And I want to save the same data not only into local Redis, but to these remote Redis instances. As I understand if I do that in one Lua-code (local save+remote saves) the www-user need to wait until all save operations have be done. But I want realize remote savings as asynchronous operations. In this case www-user need to wait only local saving to local Redis. Is there any methods in lua-resty API to realize async execution of some lua-code?
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
The issue mentions ngx-lua, lua-redis, nginx location code, and the ngx_lua cosocket API. Start by reviewing the existing lua-resty-redis API and ngx-lua execution model; done would be a clear determination of whether asynchronous remote saves are supported and a scoped decision about the needed behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, redis
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100