79472776

Date: 2025-02-27 13:09:25
Score: 1
Natty:
Report link

Just use hazelcast distributed Map. You have to serialisize your POJO then add to map. Implement the serializable interface in your class signature.

If you are working with non-serializable classes (e.g from dependancies/3rd party libs), make a composite class and have them as transient fields. However on the other end of the wire, you need to have the same dependancies.

Or you could use the vertx event bus to send the Object with a custom message codec. I think you still have to deal with the serializable issues above though. But the event bus would be the async way of doing it.

With hazelcast, its synchronous ops. Although its acting on in-memory data, you have to think of network latency for backup/replication of data across the cluster.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hgrammer