lfrancke commented on a change in pull request #33: TRAINING-18: Apache Ignite: JDK requirements, put & get operations URL: https://github.com/apache/incubator-training/pull/33#discussion_r307740104
########## File path: content/Ignite/src/main/asciidoc/index.adoc ########## @@ -99,3 +125,192 @@ Both server and client nodes will log `Topology snapshot [ver=2, locNode=b5fc314f, servers=1, clients=1, state=ACTIVE, CPUs=12, offheap=3.2GB, heap=7.1GB]` This means nodes detected each other + +== Save data into Grid +Ignite supports JCache JSR 107 API, +`IgniteCache<K,V> extends javax.cache.Cache<K,V>` + +[source,java] +---- +include::{sourcedir}/example/PutGetExample.java[tags=contains,indent=0] +---- + +== Dynamic Cache +---- +ignite.getOrCreateCache(CacheConfiguration cfg) +---- + +Creates an instance of the cache on the fly + +---- +ignite.createCache(CacheConfiguration cfg) +---- + +Creates cache instance + +Ignite will create and deploy the cache across all server cluster members + +Cache will be deployed to any new joined node + +Limitation - not possible to create new cache in transaction + +== Static cache +Accessed using method +---- +ignite.cache(String name) +---- +Will return existing cache or null + +- No cache creation under running transaction + +- User has to provide configuration before node startup + +== Application and cache +Applications are usually made up of multiple caches + +- one for each data type to be stored + +-- This is a best practice + +-- If you have two classes, Card and Client, you should have two caches + +== Replicated and partitioned + +image::replicated_vs_partitioned.png[] + +Replicated - Cache A Review comment: Maybe makes sense to make a list out of this? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services