Redis: Requesting RPOPLPUSH
See original GitHub issueI’ve had in my past used RPOPLPUSH
with the redis feeder. This redis operation comes in handy when you want to send a REST request on some “ID”, and then reuse it in another capacity. Say for example of a bookstore (over simplified).
Queue 1 : books to be added to catalog, gatling consumes and makes a rest call (post) to add the book to the inventory Queue 2 : Holds books that have been added from the above operation. gatling consumes and makes a rest call to get info, search etc.
RPOPLPUSH queue1 queue2
returns the right item from queue1 and inserts it to the left in queue2
I tried adding this to the RedisFeederBuilder
but it seems to be very strict w.r.t. to having only one key. (I don’t want to dictate the implementation 😃 ).
PS - RPOPLPUSH
is deprecated since 6.2.0 while the scala redis client being used for gatling hasn’t caught up to the newer replacement of RPOPLPUSH
aka LMOVE
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top GitHub Comments
Thanks a lot! I’m in PTO for one week, I’ll only be able to review when I’ll be back.
Will make time this weekend.