Jungtaek Lim created STORM-691:
----------------------------------

             Summary: [storm-redis] Add basic lookup / persist bolts
                 Key: STORM-691
                 URL: https://issues.apache.org/jira/browse/STORM-691
             Project: Apache Storm
          Issue Type: Improvement
    Affects Versions: 0.10.0
            Reporter: Jungtaek Lim
            Assignee: Jungtaek Lim
            Priority: Minor


Currently storm-redis provides AbstractRedisBolt for normal (not Trident) Bolt.

Jedis is easy to use so it may be enough, but we can also provide 
implementations of AbstractRedisBolt for simple usage.
eg. store (key, value) pair, get key's value

Since Redis has various data types and commands, we can't cover whole things, 
but seems like below things could be considered.

|| Type || Read || Write ||
| STRING | GET (key) | SET (key, value) |
| HASH | HGET (key, field) | HSET (key, field, value) |
| LIST | LPOP (key) | RPUSH (key, value) |
| SET | SISMEMBER (key, member) | SADD (key, member) |
| SORTED SET | ZSCORE (key, member) | ZADD (key, score, member) |
| HLL (HyperLogLog) | PFCOUNT (key) | PFADD (key, element) |

Btw, since we will normally get key & value from tuple (as most external module 
did), HASH, SET, SORTED SET needs additional key to process.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to