15. Typical Use-Cases¶
Fast DDS is highly configurable, which allows for its use in a large number of scenarios. This section provides configuration examples for the following typical use cases when dealing with distributed systems:
Well Known Network Deployments. Describes a situation where the entire entity network topology (Participants, Publishers, Subscribers, and their addresses and ports) are known beforehand. In these kind of environments, Fast DDS allows to completely avoid the discovery phase configuring a STATIC discovery mechanism.
Large Data Rates. Presents configuration options that can improve the performance in scenarios where the amount of data exchanged between a Publisher and a Subscriber is large, either because of the data size or because the message rate. The examples describe how to:
Configure the socket buffer size (see increase the buffers size).
Limit the publication rate (see Flow Controllers).
Tune the size of the socket buffers (see Increasing socket buffers size).
Tune the Heartbeat period (see Tuning Heartbeat Period).
Configure a non-strict reliable mode (see Using Non-strict Reliability).
Real-time behavior. Describes the configuration options that allows using Fast DDS on a real-time scenario. The examples describe how to:
Reduce memory usage. For use cases with memory consumption constraints, Fast DDS can be configured to reduce memory footprint to a minimum by adjusting different QoS policies.
Zero-Copy communication. Under certain constraints, Fast DDS can provide application level communication between publishing and subscribing nodes avoiding any data copy during the process.
Unique network flows. This use case illustrates the APIs that allow for the request of unique network flows, and for the identification of those in use.
Statistics module. This use case explains how to enable the Statistics module within the monitored application, and how to create a statistics monitoring application.
ROS 2 using Fast DDS middleware. Since Fast DDS is the default middleware implementation in the OSRF Robot Operation System 2 (ROS 2), this documentation includes a whole independent section to show the use of the library in ROS 2, and how to take full advantage of Fast DDS wide set of capabilities in a ROS 2 project.
- 15.1. Fast DDS over WIFI
- 15.2. Well Known Network Deployments
- 15.3. Large Data Rates
- 15.4. Topics with many subscribers
- 15.5. Real-time behavior
- 15.6. Reduce memory usage
- 15.7. Zero-Copy communication
- 15.8. Unique network flows
- 15.9. Statistics module