I am using Jedis to connect to Redis and push data into a list. I am using rpush for the JSON data.
These are the steps I do:
- Fetch Data from Rabbitmq
- Collect info from JSON data and prepare a key , value pair
- Push the data into redis using the key and the value.
I dont see my code scaling more than 3000 requests per second.
Note:
I am not using pipeline , every message will result in getting jedis resource , add it to redis and close of resourse.