A: It can depends on the environment, our test shows that 8Mb is enough. So the best way is to do a few tests with different values, then to choose.
A: When gap is detected MessageListener::onGap will be fired to notify that market data is not valid.