set a maximum size for the in-memory queue
when this size is exceeded, stop redundantly storing events in memory and disk, instead using just the disk