question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Redis: Requesting RPOPLPUSH

See original GitHub issue

I’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:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
slandellecommented, Feb 19, 2022

Thanks a lot! I’m in PTO for one week, I’ll only be able to review when I’ll be back.

1reaction
shoaib42commented, Feb 16, 2022

Will make time this weekend.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RPOPLPUSH - Redis
Executing RPOPLPUSH results in source holding a,b and destination holding c,x,y,z . If source does not exist, the value nil is returned and...
Read more >
Redis - List Rpoplpush Command - Tutorialspoint
Redis RPOPLPUSH command returns and removes the last element (tail) of the list stored at the source, and pushes the element at the...
Read more >
In Redis, what if I need sorted set with RPOPLPUSH ...
Go with Sorted Sets, but implement your own variant of the requested command with a simple Redis server-side Lua script ( EVAL )....
Read more >
Redis Lists: RPOPLPUSH source destination - w3resource
Redis RPOPLPUSH command is used to return and remove the last element of the list stored at the source, and pushes the element...
Read more >
Troubleshooting - Amazon ElastiCache for Redis
If the load is predominantly reads, using multiple read-replicas can balance the requests across multiple nodes and spare the primary for writes. In...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found