Re: Use of marshaller at node startup routine (need advice)

2018-12-13 Thread Vyacheslav Daradur
In terms of providing consistency of services' API, where the interface `Service` extend `Serializable` end-user should make his implementation to be serializable properly. >From this point of view, `JdkMarshaller` can be used as the common marshaller for service's instance, this allows reduce

Re: Use of marshaller at node startup routine (need advice)

2018-12-12 Thread Vyacheslav Daradur
A bit more: I implemented a solution which regards a node connection state: if the node already joined to the cluster, then configured marshaller will be used, otherwise, JdkMarshaller will be used. This affects static configurations if a service can't be serialized this will be logged (covered

Re: Use of marshaller at node startup routine (need advice)

2018-12-12 Thread Vyacheslav Daradur
Denis, thank you for the answer. I've already implemented the same approach. It works well, new and old tests have passed. On Wed, Dec 12, 2018 at 3:47 PM Denis Mekhanikov wrote: > > Slava, > > Interface *Service *extends *Serializable.* So, all services are supposed > to be serializable by the

Re: Use of marshaller at node startup routine (need advice)

2018-12-12 Thread Denis Mekhanikov
Slava, Interface *Service *extends *Serializable.* So, all services are supposed to be serializable by the JdkMarshaller. Usage of *BinaryMarshaller* or *OptimizedMarshaller* makes sense only from performance point of view. But I don't think, that we should try too hard to minimize the

Use of marshaller at node startup routine (need advice)

2018-12-07 Thread Vyacheslav Daradur
Igniters, I need your advice about the following problem: It is necessary to serialize an object (just convert an object to bytes array) for including it in joining node data (DiscoveryDataBag) *at node startup routine*. The marshalling hangs If we use 'BinaryMarshaller' or 'OptimizedMarshaler'