Skip navigation links

Package org.thales.punch.libraries.netty.groups

Socket destination group api.

See: Description

Package org.thales.punch.libraries.netty.groups Description

Socket destination group api.

A single socket bolt can be configured with several destination addresses. It will then load balance the data using a round robin strategy. Should one of the destination fail, the bolt will keep writing to others. Periodic re-connections attempts are regularly performed to eventually reconnect to all destinations.

You can further configure the destination addresses as part of groups. A group is a logical grouping of several destination typically part of the same cluster (or room, or site, etc..). A destination address associated to a group is given a weight. The weight of the group is the sum of the weight of each connected address. The bolt sends data only the to destinations addresses for the heaviest group. Let us see an example to make this clear:

Skip navigation links

Copyright © 2023. All rights reserved.