Question:
An activity contains 6 events in total. The first 4 events streamed within 2 minutes and the activity was created after the stitching of these 4 events.
The next 2 events occur after 23 hours. Will the first 4 events remain in memory, or will only the activity in cache be available to be stitched with the 2 remaining events?
Answer:
The entire activity, including all its events, are kept in cache for the entire “active,” or “stitching” time, since new events being stitched into an activity could have an effect on the other events already in the activity (e.g., set membership). If also persisting, “kept in cache” does not necessarily mean “kept in memory,” but if a new event comes in and gets stitched to an existing activity, all events in that activity will be loaded into RAM, if not already there.