Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-525

In-Memory Repository infrastructure

    XMLWordPrintable

    Details

      Description

      It would be useful to have an in-memory backed repository implementation (perhaps backed by a CHM) that could be used for storing / querying in memory-data, especially for testing etc.

      We could even implement predicate evaluation by traversing the object graph and evaluating it's attributes in memory.
      We could also leverage querydsl's support for querying collections and beans here: https://github.com/querydsl/querydsl/tree/master/querydsl-collections

      The Spring-XD guys did some interesting work in this are:
      https://github.com/spring-projects/spring-xd/blob/1354e45b4226a61bf03c10d0acb108f865688585/spring-xd-analytics/src/main/java/org/springframework/xd/store/AbstractInMemoryRepository.java

      This abstraction could also leverage other (potentially distributed) in-memory stores like Hazelcast, EHCache, Redis or general JCache implementations etc.
      Some of those stores, e.g. hazelcast provide a (rich) query API that we could use to implement repository query methods (http://hazelcast.org/docs/2.0/manual/html/ch02s03.html)

        Attachments

          Activity

            People

            Assignee:
            cstrobl Christoph Strobl
            Reporter:
            thomasd Thomas Darimont
            Last updater:
            Oliver Drotbohm
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: