1

I'm wondering how to let the frontend know when there is a change on the backend. How is this handled? I can think of two possibilities and maybe neither is quite right. I'm making an application in azure. The first option is to simply write the change to the database on the backend and every time the API is called, ask if there is a change and then maybe log the user out on frontend. The second option I can think of is via signalr for example? Is either of those paths good or is there a better one?

1 Answer 1

0

I recommend you to use SignalR, if you want Listen for BackEnd events in FrontEnd, sockets are the best option. it will prevent you from making manual API calls.

this link has an example of SignalR with Angular using ASPNET Core: https://code-maze.com/netcore-signalr-angular-realtime-charts/

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you for response. Ok i ill try signalr. And my app is runing in Azure. Azure has something named web hooks. Do you know this one? Maybe it's something we could use
Do not know him

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.