Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

web api for ASP.NET - how to build a stream of objects

It is going to be a kind of subjective question but still want to raise it here.

I am planning to build a stream wall like fb, which will contain objects like text post, * embedded videos*, pictures, polls etc. As I only have bit knowledge in ASP.NET webforms I am planning to use the same. My question is which technique/approach is most appropriate to design the stream?

Will it be good to choose Web API on ASP.NET webform or should I have to rely only on ASP.NET MVC? How can I display different objects type in a same list (stream)? Which I believe is not possible with datalist, repeater, gridview etc.

Perhaps, this seems like a subjective question but may have a value with a perception of architecture.

like image 961
Zerotoinfinity Avatar asked May 13 '13 18:05

Zerotoinfinity


1 Answers

To me, because the Web API was built on some ASP.NET MVC components. It only different the Http packages. So we only need to know how to handling the binary streaming in ASP.NET Web API. I have searched and found out some of useful stuffs in internet like

  • Good discussion about video streaming
  • Async action on ASP.NET Web API
  • Best practices for streaming the large files
  • How to processing video streaming

All of those are a good reference in case you want to do some thing like that.

like image 135
thangchung Avatar answered Oct 13 '22 01:10

thangchung