I have the web application that provides user with the interface to edit its character. When user makes some changes and saves them, I store it as delta in MongoDB. UI and backend communicate via REST.

But in addition, I want to store any change that user made on UI - like clicking the button, or updated some parameter without saving yet. Something akin a separate mechanism that tracks user actions.

Will REST suffice for that? Or will it lead to spam of REST requests? Because user or multiple users may do a lot of changes thus it will lead to multiple REST calls.


Yes, you see this commonly with heatmap generation and marketing tools for websites.

As the processing power for each request is small, simply an insert, a webserver can easy handle lots of requests.

If you could choose your protocol you might go for UDP rather than HTTP over TCP, but you are limited by having to have your code run in a browser over the internet

  • so REST is way to go? I thought Websockets or something else will be faster. – lapots Apr 4 at 8:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.