1. Is it possible to use a THIN-client with Ignite Spring-Data (IgniteRepository) and Ignite Spring Cache (SpringCacheManager) ?

  2. Is it possible to use a THICK-client with Ignite Spring-Data (IgniteRepository) and Ignite Spring Cache (SpringCacheManager) ?

PS:

THIN-client - use interface IgniteClient,

THICK-client - igniteConfiguration.setClientMode(true)

2

There are 2 best solutions below

1
Stephen Darlington On

It works only with the thick client currently.

The documentation shows how to configure and use it: https://ignite.apache.org/docs/latest/extensions-and-integrations/spring/spring-caching

0
user3235602 On

It is expected in 2.11 version:

https://github.com/apache/ignite-extensions

https://github.com/apache/ignite-extensions/tree/master/modules/spring-cache-ext

https://github.com/apache/ignite-extensions/blob/master/modules/spring-cache-ext/src/main/java/org/apache/ignite/cache/spring/IgniteClientSpringCacheManager.java

There are two implementations of Apache Ignite Spring Cache Manager - org.apache.ignite.cache.spring.SpringCacheManager and org.apache.ignite.cache.spring.IgniteClientSpringCacheManager, that provide ability to use the Ignite thick or thin client to connect to the Ignite cluster and manage Ignite caches, respectively. Note, that org.apache.ignite.cache.spring.IgniteClientSpringCacheManager can be used only with Ignite since 2.11.0 version.