I would like to create a page flow that allows the use to use the service before signing up, so the data that is created up until then must be stored in state.
My options, as I see so far are
- Session in memory
- Cookies
- Store data directly to db as it comes in.
In this case the text/string that are generated during use can be up to 100k in size. With scalability in mind, which approach would be best?
You should not store 100k of data in session variables or cookies. There are downsides in terms of performance and security
You should store them in the database as it comes in, either in a staging area or a form that is flagged as initial.