-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redis: delete and write data #4153
Comments
Providing a feeder to read virtual user data from redis made perfect sense. It's the up to the user to store this data with his favorite redis client at the desired time, typically prior to launching the test. Now, you're suggesting to have a way to also write operations.
WDYT? Is this something you would be interested in contributing? |
How do you see the implementation of Redis support from your side? Internal protocol or extension? |
Sorry, I don't understand your question. What do you mean by "internal protocol" vs "extension"? |
Internal protocol is the ability to call redis commands from the gatling package itself, without external dependencies. For example http protocol. Extension examples are located on the page in the Third Parties section: gRPC plugin, Kafka Plugin, AMQP Plugin etc. |
OK, so you're referring to official plugins in the Gatling organization vs third party ones. Third party plugins.pros:
cons:
Official pluginspros:
cons:
Your call |
What will be the requirements on your part when developing an official plugin? Will it be necessary to implement in three languages: Scala, Java, Kotlin? |
A PR that contributes the code with a Gatling Corp copyright.
Scala is a must. We can take care of the Java DSL as it can be a bit tricky. Regarding Kotlin, the goal for now is to have the Java DSL usage from Kotlin, not a distinct DSL with different paradigms. |
Just wondering why this can't be achieved by a session function. (Been there done that, so it works, sorry I don't have the code with me)
|
Hi, |
@shoaib42 session function must be used to perform blocking calls, all the more network calls. This would hurt performance as the threads are shared. |
@slandelle Yikes, I didn't think about that. I think what @Dmitriy-Smol has requested, is similar to the RPOPLPUSH that I did. Wouldn't it be a similar issue of blocking call with the feeder, if DEL SADD SREM were to be added? (Adding these would be pretty straight forward) |
Several things. Using
|
We want to use a DSL supporting EL to delete (DEL, SREM) and write data (SADD) to Redis, similar to a Redis feeder.
The motivation to use the Redis feeder this way is that we often use Redis to write, update and read OAuth tokens in scripts.
Would this violate the feeders concept?
It is planned to commit this?
And will you be ready to accept this implementation if we do it by adding redis command based on gatling-redis library?
Example DSL:
The text was updated successfully, but these errors were encountered: