The StorageManager class will take ExchangeTick instances passed down to it from a instance of QuoteService, transfer them to an internal buffer until that buffer exceeds a given size threshold at which point it will use compression algorithm (such as gzip) to compress the buffer and write it to disk.
Implementation
The big questions to answer are:
What is the most efficient buffering scheme
What is the best compression algorithm to employ here
What is the optimal buffer size threshold to use to determine when to write the buffer to disk
Overview
The
StorageManager
class will takeExchangeTick
instances passed down to it from a instance ofQuoteService
, transfer them to an internal buffer until that buffer exceeds a given size threshold at which point it will use compression algorithm (such as gzip) to compress the buffer and write it to disk.Implementation
The big questions to answer are: