Hello Backendless world,
I just have a small use case scenario in here. Share your ideas on implementing a ‘Views’ or ‘Impact’ count of a Post . If It would have been a PHP Server I would add an extra integer for a post to track the ‘total requests’ and whenever the post is thrown as a response, increase the current count. I can still do this thing in Backendless from client side by updating the ‘Views’ index .But that would cost me an extra network request. But , how can we do this from server side, What sorts of custom Server logic should be implemented to achieve this .
Any ideas regarding this would be really great !!
Hi Pujan,
You could add a server-side event handler for an API request your app makes. In the event handler you’d manage your view counts. You can read more on event handlers here:
https://backendless.com/feature-114-custom-business-logic-event-handlers-overview/
https://backendless.com/documentation/business-logic/php/bl_overview.htm
Regards,
Mark