Thanks for link Taylor. I did not know that Storm itself provided this
feature.

I've been using a similar class
<https://github.com/kgdinesh/trident-redis/blob/master/src/main/java/storm/trident/redis/RedisState.java>
that basically does that same thing but I've added *Redis's Sentinel
support *in it.

However, I do not find this feature in the storm's *RedisMapState*. Is this
something that can be added? If yes, I can raise a PR.

On Thu, Oct 27, 2016 at 1:28 AM P. Taylor Goetz <[email protected]> wrote:

> Storm has support for a Redis-backed map state:
>
>
> https://github.com/apache/storm/blob/master/external/storm-redis/src/main/java/org/apache/storm/redis/trident/state/RedisMapState.java
>
> -Taylor
>
> On Oct 26, 2016, at 5:17 AM, Dinesh Babu K G <[email protected]> wrote:
>
> Thanks Arun. Does storm recommend any specific in-memory store for
> persistence? I see memached given as an example in the storm documentation
> but no word about other stores.
>
> On Wed, Oct 26, 2016 at 2:37 PM Arun Mahadevan <[email protected]> wrote:
>
>
>
> MemoryMapState is more for testing and does not provide any persistence.
> It uses a HashMap internally. If you want persistence you need use the one
> based on redis or other.
>
>
>
> Thanks,
>
> Arun
>
>
>
> *From: *Dinesh Babu K G <[email protected]>
> *Reply-To: *"[email protected]" <[email protected]>
> *Date: *Wednesday, October 26, 2016 at 2:31 PM
> *To: *"[email protected]" <[email protected]>
> *Subject: *When to use MemoryMapState while performing a
> persistentAggregate in Trident?
>
>
>
> Hi all,
>
>
>
> I would like to understand when to use MemoryMapState v/s using a state
> that is based on a in-memory data store (like memcached, redis or
> aerospike) while doing persistentAggregate() in Trident.
>
>
>
> Are there any pros & cons between the two approaches?
>
>
>
> Thanks,
>
> Dinesh Babu K.G
>
>
>

Reply via email to