Hi,
You probably can try some coroutine-based solution.
I.e. do some work, yield and continue after poke from a client. (Tell
me if you'd like a more complete explanation.)
Redis does not provide a framework for that, but... this would be,
IMHO, much easier to push through than full async stuff.
My 2c,
Alexander.
On Mon, Jun 3, 2013 at 8:00 AM, Lawrence <
lawren...@gmail.com> wrote:
> Hi,
>
> Currently lua scripts are always executed atomically.
>
> I'm using lua scripts for fairly complex analytical (time-series) functions.
> Some functions take a "long" time. All these scripts only make read-only
> redis calls though, they never write anything to redis.
>
> Given a script that only makes read-only redis calls would it be possible to
> execute those kind of scripts in a non-atomic way so that it doesn't block
> other clients for the total duration of the script? Or would adding such an
> option to redis be out of the question due to some architectural
> constraints? (for example a lua script might not be able to work with the
> redis event loop??)
>
>
> PS. Also a script that only makes read-only redis calls wouldn't need to be
> executed on replicated slaves (as it does today) I would think.
>
>
> Cheers,
> Lawrence
>
> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
redis-db+u...@googlegroups.com.
> To post to this group, send email to
redi...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/redis-db?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>