jboss / jboss-nosql

3 stars 0 forks source link

Add support for remote Infinispan database #15

Open scottmarlow opened 7 years ago

scottmarlow commented 7 years ago

I'm not sure exactly how this will work but from a discussion on the Infinispan mailing list discussion (subject: Infinispan URL format):

Question:

Once you are connected to a remote (Infinispan) database, does the application simply use the java.util.Map api to put/get any application get values? Or are puts not allowed to use application classes? I'm trying to better understand how the marshaling works, since the remote Infinispan database probably wouldn't have access to the application classloader (unless it does, which I'd like to also understand).

Answer:

Scott, the application receives Infinspan's CacheManager and/or Cache APIs just like in the Mongo case, one receives the Mongo specific objects. As far as the objects you can put in the cache: the ideal situation is that you use a protobuf schema and the client side will marshall things as protobuf and send these protobuf structure to the server. The server then does not need to have the client classes in its classpath.

scottmarlow commented 7 years ago

Could JTA transaction enlistment work for remote Infinispan? Is remote Infinispan ACID or BASE or something else?

emmanuelbernard commented 7 years ago

Remote Infinispan is not transactional.