ami*_*921 5 java serialization oracle-coherence
我了解如果您使用的是C ++和.Net客户端,则需要POF。但是,哪些因素可以帮助决定是否对使用Oracle Coherence缓存的Java客户端使用POF?
根据Oracle文档,POF比默认的Java序列化具有性能优势。那么,为什么不是所有使用Coherence的应用程序都使用POF而不是Java序列化?
从我的理解
Run Code Online (Sandbox Code Playgroud)* Advantages o Built in to java o Does not require any coding * Disadvantages o May not be compatible between different versions of java and can not be used in other languages o Can be large
Run Code Online (Sandbox Code Playgroud)* Advantages o Can be smaller o Not reliant on JAVA, can be used in different versions of Java and other languages. * Disadvantages o Extra methods must be coded - extra work and can lead to errors o Format and coding can get complicated for complex structures
您还可以查看各种序列化模式JSon,Xml,协议缓冲区, Avro,Thrift等。从长远来看,它们可能会提供优势: