High speed cameras usually record into RAM and then dump the recording out to an SSD in slower-than-realtime when it ends. Since the recording duration is limited by RAM capacity they have rolling modes which record continuously into a ring buffer and then store the current contents when the shutter is pressed, so that unpredictable events can be captured after they happen.