gresrun / jesque

An implementation of Resque in Java.
http://gresrun.github.io/jesque
Apache License 2.0
630 stars 131 forks source link

Use Lua script in Worker enqueue #96

Open abhinavdwivedi opened 8 years ago

abhinavdwivedi commented 8 years ago

Can we use a lua script to do all types of enqueue? this would reduce network roundtrips by a factor of 2. I am willing to implement this on the lines of new pop function if you are open to it.

gresrun commented 8 years ago

After the great success we saw with the worker pop, I'm very open to seeing a lot of Jesque logic be pushed into lua scripts! Even if we only see marginal improvement in the throughput, I like the idea!

XiaochunLU commented 8 years ago

Is it better to use Jedis pipelined or multi (tx)?