3 Replies Latest reply on Feb 5, 2015 2:45 PM by nadirx

    Is streaming an option with HotRod?

    wesmith80

      I have large String values (~100MB) in JDG and don't want to read it all into my client app's memory at any given time if possible.


      So is it possible to retrieve a value from data grid as a stream rather than as a String with the HotRod client?

       

      Using REST, I've implemented get() to return an InputStream ...

       

      HttpURLConnection.getInputStream()

       

      .. and then read in chunks from the stream.

       

      But I'd like to do the same with HotRod; since HotRod seems to be the recommended client for better performance, reliability, scalability etc.

       

      Would appreciate any inputs on this.

       

      Thanks!!!

      Bill

        • 1. Re: Is streaming an option with HotRod?
          nadirx

          Not yet, unfortunately. We are working on reorganizing the HotRod server so that we will be able to support streaming of large chunks as well as large number of entries.

          1 of 1 people found this helpful
          • 2. Re: Is streaming an option with HotRod?
            wesmith80

            Thanks Tristan. I've also noticed that a lot of the cool JDG stuff (map/reduce, custom interceptors etc) are only available in library mode and not in client/server mode. Will the reorg address any of these? Also, any idea when this reorg will be available (ETA/version)?

            • 3. Re: Is streaming an option with HotRod?
              nadirx

              Map/Reduce and DistExec over HotRod will be part of Infinispan 7.2 (April 30th).

              As for deployable interceptors, we hope to have those in for 7.2 as well.

              1 of 1 people found this helpful