I want to get response from server every one second, the output will contain some value which I need to process in front end.
In backend I am using some queries to read data from MySQL and return me output.
Things I have tried:
- Ajax
- Webserver Events
- Amazon CloudFront
None of these work for me. Usually it takes 3-4 seconds to get me response,
classic example to see this working (getting output in one sec)
Please let me know if anyone has some solution for this