Serialization is used to pass java objects from one JVM to another but can’t we have java objects in single JVM itself,? Can someone tell me use case when we have to pass java objects from one jvm to another?
b
best-animal-3294
10/17/2021, 3:23 AM
RPC
best-animal-3294
10/17/2021, 3:25 AM
Sending data over the wire using interoperable formats like json or XML incurs cost. If you know you have same target vm then serialisation is fast and safe. Serialisation will also be network efficient. The same applies for storing binary state on disk for later restoration. Python uses pickling for that