Giter Site home page Giter Site logo

Comments (9)

eitch avatar eitch commented on June 18, 2024

I have the same problem. Or how can i configure an instance to marshall my objects? I can create a cache remotely, but i can't have it store my objects.

from infinispan-images.

ryanemerson avatar ryanemerson commented on June 18, 2024

@eitch To clarify, are you trying to create a remote cache which store's keys and/or values as application/x-java-object?

If no processing of the objects is required on the server side, it's possible to simply use the marshaller on the client and store the marshalled values on the server.

from infinispan-images.

eitch avatar eitch commented on June 18, 2024

Hi @ryanemerson

I read in a tutorial, can't find it write now, that i could perform streams with filtering and that the filters would be serialized to the cluster nodes, and that i thus could use the compute power of the nodes and not have to transfer all the data to the server performing the query. Or did i misunderstand something?

This is why i want to store my objects as Java objects, and not marshall them.

Of how would i go about this? My idea is to start a cluster of infinispan nodes for storage, then connect remotely with a hotrod client and be able to use the remote nodes as cache, but also use their resources for filtering when searching for objects. Otherwise i would need to implement an index feature in my app and then only retrieve the items i really need. Is this possible?

from infinispan-images.

ryanemerson avatar ryanemerson commented on June 18, 2024

@eitch For your use-case, utilising remote querying should provide what you require without having to make any changes to the server (image) config.

https://infinispan.org/docs/stable/titles/developing/developing.html#query_remote

The use of .proto files means that querying can be achieved without having to store your objects as POJOs on the server, which has the advantage of normal cache operations being faster, as each GET/PUT etc does not have to remarshall the stored key/value when responding to the client.

from infinispan-images.

eitch avatar eitch commented on June 18, 2024

That is an idea, but i would prefer to not reimplement my searching logic, as it builds up on Streams, and unless i misunderstood it, Infinispan explicitly supports serializing Stream filters, or not?

from infinispan-images.

ryanemerson avatar ryanemerson commented on June 18, 2024

For now the only way to configure a serialization based marshaller with the image, is to supply a custom xml config as described here that has the required marshaller configured.

from infinispan-images.

eitch avatar eitch commented on June 18, 2024

ahh, yes, i saw that, and i was going to use it, but then i saw that the XML file needs to have the correct IP etc. all configured, which the previous image would have handled. I guess i need to build my image on top which set the variables...

from infinispan-images.

ryanemerson avatar ryanemerson commented on June 18, 2024

@eitch If you pass -b SITE_LOCAL when launching the server you shouldn't need to hardcode the IP. If you utilise a custom jgroups stack, make sure that the transport protocol has the following:

bind_addr="${jgroups.bind.address,jgroups.udp.address:SITE_LOCAL}"        bind_port="${jgroups.bind.port,jgroups.udp.port:0}"

And the variables will be replaced as required.

from infinispan-images.

ryanemerson avatar ryanemerson commented on June 18, 2024

Closing. The config-generator has been deprecated since 13.x. Users should provide their required server configuration directly to the image: https://github.com/infinispan/infinispan-images#server-configuration

from infinispan-images.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.