I have a scenario like I would be storing details on the redis-database and this would publish messages to external API's.
Question:
- Is that feasible to publish message from Redis to outside world? - All pub/sub I have seen are within redis-cli.
I have a scenario like I would be storing details on the redis-database and this would publish messages to external API's.
Question:
Yes -- you can pub/sub to clients, but those still have to be Redis clients that also know about pub/sub. Per your account handle, you probably need to look for a simple-but-sufficient Java library.
I wrote about a simple application I create for my own use: a listener process fetches market data (for less than a handful of contracts) and publishes them to Redis from where clients (in a different process and/or on a different machine) can subscribe. Works great. I do this in R because I had already written a (C++ based) client for R (around hiredis) to which we then added pub/sub.
The blog post is here, and I also wrote about Redis for market monitoring in this short arXiv paper -- and there is a corresponding short arXiv paper introducing Redis.