Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

combination of signalr with webapi #5

Open
michl86 opened this issue Nov 23, 2012 · 8 comments
Open

combination of signalr with webapi #5

michl86 opened this issue Nov 23, 2012 · 8 comments

Comments

@michl86
Copy link

michl86 commented Nov 23, 2012

simple table of big datasets with push updates through signalr, but data transfer via webapi or other rest calls. the sample could show a way to get a good integration of the two technologies.

@davidfowl
Copy link
Member

Could you clarify what you mean by big datasets? What does the sample show? I can more see, exposing a rest api that also does push.

@michl86
Copy link
Author

michl86 commented Nov 23, 2012

the data is irrelevant for the sample, could be something from small json data of a couple of business objects up to a binary blob of an file. the payload of an signalr message should not be too big. sometimes you have to combine signalr well with other technologies.

for example: lets say we have a typical business application with tables and forms. one column of the dataset is the state of an workflow. updating only this text with information from the signalr message is a good idea. but if more data changes, the message should only inform the client to get all the new data of the business object via an webapi call.

@davidfowl
Copy link
Member

Lets get concrete here. Describe a specific example. I'm still confused as to what you want to see.

@michl86
Copy link
Author

michl86 commented Nov 23, 2012

  1. list of contacts (firstname, lastname, age, state)
  2. create form of contact (save -> no signalr message, upload via webapi)
  3. save on server pushes notification to all other clients
  4. all client check for push from server and refresh data via webapi call (not the sender client)
  5. a minute later on the server the state from "in progress", changes to "checked" (a workflow in real world)
  6. all clients again update there data because of an signalr message from the server

@davidfowl
Copy link
Member

Awesome, about number 5. What does that mean? What state changes from inprogress to checked? How does that relate to the contact list?

@michl86
Copy link
Author

michl86 commented Nov 23, 2012

in real world projects this could be something like a order information, seat reservation, shipping information, credit-card check...

let's make it a seat reservation - it's delay is caused by an human approval workflow.

@davidfowl
Copy link
Member

I get that you're trying to simulate a real world scenario, but I just want specifics. Someone has to code this up so it needs to be 100% unambiguous.

@michl86
Copy link
Author

michl86 commented Nov 23, 2012

i think a seat reservation for people including a human approval through a simple c# console appliation is ok. the technical implementation should not send the data as payload in the signalr message, but force the relevant clients to load the data via webapi.

this pattern can later be used in other real world applications as starting point.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants