If you’re planning to use Amazon S3 for storage, consider using it with Infinispan. Infinispan itself provides in-memory caching for your data to minimize the amount of remote access calls, thus reducing the latency and cost of fetching your Amazon S3 data.
With cache replication, you are also able to load data from your local cluster without having to remotely access it every time.
Note that Amazon S3 does not support transactions.
If transactions are used in your application then there is some possibility of state inconsistency when using this cache loader.
However, writes are atomic, in that if a write fails nothing is considered written and data is never corrupted.
For a list of configuration refer to the javadoc .