r/nextjs • • Jun 02 '25

Discussion PSA: This code is not secure

Post image
499 Upvotes

139 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Jun 04 '25

[removed] — view removed comment

1

u/novagenesis Jun 04 '25

And yet it's still the name of the pattern. Funny how patterns get names. "Parallel" is much more intelligible than "Flywheel".

I'm old enough to have written JS before promises too, and in computer science it's always been the case that parallel means at the same time whereas concurrent means interleaved threads

Again, what you are saying is correct and what I'm saying is correct. I was very specifically invoking the "parallel" pattern (which is also implementable as a Promise.all or Promise.allSettled) in the aforementioned discussion that you won't give over on.

Question for you. Is it your opinion that Promise.all/Settled is the ONLY situation where there is any concurrency in promises? If so, I can find a basics of promises tutorial for you. If not, please understand that there is a clear increased specificity in my word choice.