Comments (9)
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.
@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.
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.
@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.
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.
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.
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.
@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.
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)
- Deprecate the config-generator HOT 1
- Remove the config-generator
- JDK images should use `file:/dev/urandom` to prevent blocking
- Install artifacts to server lib
- Utilise OpenJDK 17 runtime image
- native ARM image HOT 3
- Image release script broken by config-generator removal
- SERVER_LIBS fails when multiple libraries are specified
- Add INIT_CONTAINER mode to allow environment initialization without running the server
- Add SERVER_LIBS_DIR so that server-root can be configured when installing dependencies
- Upgrade images to ubi9 HOT 1
- Allow java properties to be passed to openjdk CLI
- Allow java properties to be passed to Gossip Router
- Use WildFly OpenSSL for Gossip Router
- Explicitly add tar and rsync dependencies to openjdk image
- config-generator binary required to build our own image from infinispan server source HOT 4
- Server Image doesn't enable GC logging by default
- Init script to import certificates to PKCS#11 NSS database (FIPS) HOT 1
- Avoid to set bind-address if not defined HOT 2
- SERVER_LIBS fails on container restart with FileAlreadyExistsException
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infinispan-images.