forwardResending Messages   Table of ContentFile-based Session Storageforward
Memory-based Session Storage

Memory-based session storage is typically used to maintain a high-performance FIX session when persisting of a session state and messages to the file system is not required (e.g. a market data stream).

Switching to Memory-based Session Storage

To create such a session, the storageType parameter in the Session(String, String, ProtocolVersion, Boolean, SessionStorageType) constructor has to be set to the MemoryBasedStorage value.

bool keepSequenceNumbersBetweenFixConnections = false;

Session session = new Session("SenderCompID", "TargetCompID", ProtocolVersion.FIX44, keepSequenceNumbersBetweenFixConnections, SessionStorageType.MemoryBasedStorage);