Hi Dave,

if you need to send the latest N messages when a user opens a new Lightstreamer session (subscribing to that item), you will simply have to use DISTINCT mode and specify the snapshot depth (how many rows should be sent as part of the initial snapshot, received after the subscription). Such configuration is done through the Metadata Adapter. For example, if you use the provided LiteralBasedProvider, you will have to include, within adapters.xml, the following element:

Code:
<param name="distinct_snapshot_length">20</param>
in case N=20.