Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I want to implement a solution where my web page has to be refreshed whenever there is an new entry in our Influx/SQL Database.

In current scenario we are refreshing the data every 5 seconds over WEB API built on C# , due to frequent calls to server there is lot of load on server if there is no new updated over the existing data.

I am confused which one to consider these for implementation to overcome this issue

Web Sockets
Web Transform
Socket.io
gRPC

Waiting for your valuable suggestions. Thank you all in advance.

What I have tried:

I think web socket can help you in achieving this.
Posted
Updated 25-Oct-22 20:15pm
v2

1 solution

You're going to have more load on the server no matter what you do. The data is always going to come from the server.

You either start up a timer in your client javascript and call an API method to get the data, or you can setup a SignalR server, or similar, on your server, rewrite your server-side and client-side code to use it to push data and render it on the client.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900