Over WEB data synchronization

Mariyan Gotsev 20 Reputation points
2023-04-25T11:02:02.4933333+00:00

Hi all, I use VS, ASP NET. I would like to achieve over WEB  data synchronization.   I use single SPA ASP.NET/Blazor like DLL web application .    Let's say two users of mi application works in same time form different location editing for example "Customers" form, both users editing same customer record, let' say customer record of John Smith. So I would like when user ONE edit something in the customer record of John Smith, the customer TWO too see in real time changes in the record, made by customer ONE.   How this may be done? Thank you!

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Other
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2023-04-26T02:00:07.6466667+00:00

    Hi @Mariyan Gotsev

    both users editing same customer record, let' say customer record of John Smith. So I would like when user ONE edit something in the customer record of John Smith, the customer TWO too see in real time changes in the record, made by customer ONE.   How this may be done?

    You can use Asp.net core SignalR with your SPA ASP.NET/Blazor application, and create a real-time web app.
    Refer to the following resource to learn the basics of SignalR and how to create a real-time project:
    Tutorial: Get started with ASP.NET Core SignalR
    Use ASP.NET Core SignalR with Blazor
    Besides, you can also search "asp.net core signalr data synchronization sample" online, there have lots of resource, such as: Real-time Web App with ASP.NET Core SignalR
    Finally, when you develop the real-time application using SignalR, if meet any question, you can post it on this forum, then we are glad to help you fix it.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    Best regards,
    Dillion

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 78,086 Reputation points Volunteer Moderator
    2023-04-26T02:05:36.92+00:00

    one approach would be to use signal/r to broadcast changes to clients.

    one of the hub clients would be the data store gateway. it could be used to fetch and update shared information. along with updating the backing store, it could broadcast the changes to subscribed clients.

    you would probably want transactions messages, maybe a fields at a time. you still need to decide about race conditions, maybe last one wins.

    your spa app would use signal/r to send updates, and would receive realtime updates.

    1 person found this answer helpful.
    0 comments No comments

  2. Mariyan Gotsev 20 Reputation points
    2023-05-03T11:43:16.4966667+00:00

    Can I use shared event(s) somehow?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.