Class IonSerializer

All Implemented Interfaces:
MoleculerLifecycle

public class IonSerializer extends Serializer
Amazon ION Serializer

Description: Amazon Ion is a richly-typed, self-describing, hierarchical data serialization format offering interchangeable binary and text representations. The binary representation is efficient to store, transmit, and skip-scan parse. The rich type system provides unambiguous semantics for long-term preservation of business data which can survive multiple generations of software evolution. Ion was built to solve the rapid development, decoupling, and efficiency challenges faced every day while engineering large-scale, service-oriented architectures.

This serializer is NOT compatible with the JavaScript/Node version of Moleculer. Sample of usage:
Transporter trans = new NatsTransporter("localhost");
trans.setSerializer(new IonSerializer());
ServiceBroker broker = ServiceBroker.builder()
                                    .nodeID("node1")
                                    .transporter(trans)
                                    .build();
Required dependency:

https://mvnrepository.com/artifact/software.amazon.ion/ion-java
compile group: 'software.amazon.ion', name: 'ion-java', version: '1.5.1'
See Also:
  • Constructor Details

    • IonSerializer

      public IonSerializer()