Ajax with set Interval OR SignalR

Mickael

New Member
#1
I have a scenario, where i need check if my Database has received new orders (restaurant).

Signalr seems to be the best option.

But I can wait 2-3 minutes to update with AJAX.

Given this long range I can expect, and thinking of a large scale, would not ajax be better?
 

Admin

Administrator
Thành viên BQT
#2
SignalR is perfect for notifying users real-time. You can call client functions from the server and vice versa. This makes it very dynamic.

I think it would be more heavier to call an endpoint every 2 minutes – even if there was no order placed – then only perform an action when an order has been placed.

The capacity for concurrent connections depends on the performance of the server.
 

Từ khóa phổ biến

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top