connecting redis via POSTMAN - redis

Is it possible to connect redis db via postman, What I am trying to do is I am creating a test suite where I am Executing multiple testcases for that I am passing the test file via collection runner there I am passing the redis configuration values also,
I want to connect to redis first, and then execute the lpush for inserting into db, can we do this using postman?

No.
Postman only supports the HTTP protocol.
You must use a third party tool to access the redis via http protocol.
ex) https://github.com/nicolasff/webdis

Related

NestJS, Bull Queue and Redis in production

I have a project using NestJS version 9.2.0 with Bull Queue version 4.9.0 which is connecting to Redis to schedule jobs.
Locally this is working as expected, however, when deploying to staging then Bull won't connect and it fails with error maxRetriesPerRequest.
My assumption is that on staging Bull is not being able to connect over TLS connection, however I am unable to confirm that this is definitely the issue.
I have tried the following without having any success:
set the Redis url as rediss://.....
pass the parameter ?tls=true at the end of the Redis url
pass an empty tls: {} object as part of the Redis configuration which I then use within the BullModule that I am importing as use as factory within the app.module file
The reasons why I suspect it is an issue related to TLS connection:
the local connection works just fine
when I set an invalid URL locally mocking a scenario where Bull cannot connect to Redis I experience the same behaviour in the console as it happens on staging and production
I ensured that the Redis instance on staging and production is up and running and that the url I am using in the app is correct

How do I load test with multiple socket connections using Jmeter?

Also if I have authorisation header fields-> Where and how do I give them?? Is there any tool for this?
I have done local host "ws://localhost:8080/socket" using
If you are using the "WebSockets Samplers" plugin with JMeter, you can open multiple websocket connections, but not at the same time on the same thread (JMeter user). If you are sure you need that feature, there is an experimental build of the plugin that supports multiple connections on one thread.
You can add authorisation fields by using the standard JMeter HeaderManager.

How to determine whether connected Redis is a single node or cluster mode using StackExchange.Redis?

I only have Azure Redis cache hostname but no other information. Is there any way to tell whether this Redis host name has a Cluster of nodes or just a single node? I am using c# with stackExchange.Redis.
It is not feasible to judge only by Azure Redis cache hostname.
You need at least hostname, groupname, and bearer token.
You can create HttpClient in C# code and use rest api to query the value of shardCount. According to the value of shardCount, you can determine whether your azure redis cache has the cluster function enabled.
If shardCount=1, then it is a single node. If it is greater than 1, it means that the cluster size function is enabled on the portal.
Sample pic:
On portal:
Test rest api online.

Simple HTTP server for key-value lookup

I am looking for a simple HTTP server which accepts (only GET) commands, queries the redis DB with a key and sends the reply (value) back in text format. My only requirement is that the server is very lightweight and can access a backend DB. Thanks in advance.
Try Webdis.
Webdis is a simple HTTP server which forwards commands to Redis and sends the reply back using a format of your choice.
I recently looked for the same kind of HTTP server.
As mentioned by Evandro you can try Webdis or you can go for Nginx with some modules.
In your case, for GET requests only, you can install Nginx with the HttpRedis module.
If later your requirements evolve, you can always go for HttpRedis2Module which support all the Redis commands.
I personally use the HttpLuaModule with the lua-resty-redis module and lua-cjson.
Once you got the HttpLuaModule running it's really easy to add new lua-modules and to extend the capabilities of Nginx. The resty-redis module let you add some logic between the HTTP request handling and your Redis queries using lua. You also have a large number of examples on the module setup and usage on github.
Adding cjon let you return JSON instead of raw text.
Use Webdis as suggested or Mod_redis (module for Redis) with nginx or apache2 server as per your requirements.

Issuing commands over Spring Integration SFTP adapter

Is it possible to interact with a remote system by issuing command line instructions, for example running a script that returns some output over SSH using the Spring SFTP integration?
Or alternatively, is there a Spring Integration adapter available or in progress for SSH?
SFTP Outbound Gateway supports limited commands like
ls,get,mget,rm
here is the link:http://static.springsource.org/spring-integration/reference/html/sftp.html