I have a bookmarking feature in my app, which lets users bookmark posts of other users. When clicking on the bookmarking icon, a workflow is triggered that (i) creates a new thing “Archive” (in which I save the bookmarked post), (ii) hides such icon and (iii) shows a different icon (in the same position where the first icon was). When the user clicks on this second icon, the opposite workflow is triggered.
This works perfectly well if a user clicks back and forth in a reasonable manner, i.e. with approximately 2 seconds between the two clicks. However, if a user clicks on the (alternating) icons pretty fast and multiple times, the workflows seem to be too slow and the database gets filled with multiple entries of the same archived post.
Of course, such fast clicking is not normal user behavior, but if a user indeed clicks in a frenzy, this causes all kinds of problems…
Has anyone experienced this as well? Is there a way to avoid that fast clicking by users triggers multiple identical workflows?
Any help would be highly appreciated!