I'm creating a project where I want to record a short sample from a microphone (using a button)
And then play that sample back using a ldr or similar.

Its very simple but I'd just like to ask if recording the sample to the sd card (like in the recorder example) is the best way to go.
It looks like I am limited to 150ms if I wanted to store the sample in memory. Is that correct?

Do I need to worry about frequent writes to the sd card and its life expectancy or is this only the case with for example pi projects where there is a whole OS utilizing the card?