openresty / openresty/lua-resty-redis

Async save to remote redis instances

Open
#82 2 comments 0 reactions 0 assignees View on GitHub

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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.