You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by Valentin Kulichenko <va...@gmail.com> on 2016/01/15 08:31:55 UTC

Persistence in queues and sets

Igniters,

It sounds like users could be interested in being able to persist the data
saved in queues and sets. See the thread on user list [1].

The obvious solution is to reuse our CacheStore interface, but I'm not sure
that this is possible because it's designed for key-value storage. E.g.,
what is the key for a set element? In case of a queue we also need to be
able to preserve order after writing to the database and reloading.

Any ideas how to achieve this?

-Val

[1]
http://apache-ignite-users.70518.x6.nabble.com/Stupide-question-about-Queue-td2557.html

Re: Persistence in queues and sets

Posted by Dmitriy Setrakyan <ds...@apache.org>.
I think we need a specialized CollectionStore API for this. Something that
will receive an element value and its index (if index is required).

D.

On Thu, Jan 14, 2016 at 11:31 PM, Valentin Kulichenko <
valentin.kulichenko@gmail.com> wrote:

> Igniters,
>
> It sounds like users could be interested in being able to persist the data
> saved in queues and sets. See the thread on user list [1].
>
> The obvious solution is to reuse our CacheStore interface, but I'm not sure
> that this is possible because it's designed for key-value storage. E.g.,
> what is the key for a set element? In case of a queue we also need to be
> able to preserve order after writing to the database and reloading.
>
> Any ideas how to achieve this?
>
> -Val
>
> [1]
>
> http://apache-ignite-users.70518.x6.nabble.com/Stupide-question-about-Queue-td2557.html
>

Re: Persistence in queues and sets

Posted by Roman Shtykh <rs...@yahoo.com.INVALID>.
I think persistence through snapshots (Raul proposed the other day) is an option too. 
Since all data structures in Ignite are basically key-value, it should be quite universal. Ordering can be preserved too. 

#This will also require taking care of data updated between snapshots to avoid data loss in case of a cluster-wide failure.

-Roman



On Friday, January 15, 2016 4:32 PM, Valentin Kulichenko <va...@gmail.com> wrote:
Igniters,

It sounds like users could be interested in being able to persist the data
saved in queues and sets. See the thread on user list [1].

The obvious solution is to reuse our CacheStore interface, but I'm not sure
that this is possible because it's designed for key-value storage. E.g.,
what is the key for a set element? In case of a queue we also need to be
able to preserve order after writing to the database and reloading.

Any ideas how to achieve this?

-Val

[1]
http://apache-ignite-users.70518.x6.nabble.com/Stupide-question-about-Queue-td2557.html