2
There is a table in Mysql that suffers many insertions.
The application needs to show these changes to the customer.
Currently the existing application query, every 10 seconds, the table and shows on the screen its contents.
Is there any way that the bank itself informs when there are changes in the table? Or is there a way to improve this type of scenario?
The problem is the infinite loop that jquery gets, sending every 10 seconds a post to capture the information in the database.
Thought Long Polling ?
– Pedro Augusto
I’m giving a study, I’ve never seen.
– Bruno Romualdo
And Websocket, you’ve read about it?
– Pedro Augusto
I just found this too, but where I work is used classic Apple :( to thinking it doesn’t work.
– Bruno Romualdo
I read an answer here in the stack where it is mentioned that Long Polling is a good idea, however it can still generate a resource overload pq goes against its purpose of creation. It is then mentioned that Websocket is the real solution... https://answall.com/questions/254506/o-que%C3%A9-long-Polling
– Neo