To transport data, the WebSocket data connection uses the WebSocket protocol, which provides full-duplex communication over a single TCP connection. A full-duplex communication system allows simultaneous communication in both directions.
You can choose the WebSocket data connection to configure a data flow in the following scenarios:
To transport data over a WAN.
To transport data over a firewall.
To transport data from multiple source services to a single target service.
To transfer data securely. You can use the WebSocket secure mode for secure data transfer.
To aggregate data before writing to the data target.
The following image shows a sample data flow that uses a WebSocket data connection:
When you configure the WebSocket data connection, you can configure the following modes to transport data:
The Streaming mode does not guarantee the delivery of streamed data.
In the Acknowledgment mode the target service sends an acknowledgment to source service after it writes data to the target.
You can also configure security for the data connection. When you configure security, specify the keystore and truststore file details.
When you use a WebSocket data connection in a data flow with one source service sending data to a target service associated with multiple EDS Nodes, the source service sends data to only one of the target service instances.
You can configure the WebSocket data connection to connect to an external load balancer if you are sending data from multiple source services to multiple target service instances. If you use a load balancer in a data flow that has one source service and multiple target service instances, the load balancer does not balance the data across the target service instances.