<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Cocktail on the server</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Cocktail on the server</description>
  <pubDate>Sat, 11 Apr 2026 11:55:00 -700</pubDate>
  <lastBuildDate>Thu, 04 Oct 2012 15:35:43 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3692</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Cocktail on the server :   John,Many of the concepts...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3692&amp;PID=14742#14742</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3692<br /><strong>Posted:</strong> 04-Oct-2012 at 3:35pm<br /><br />John,<div>Many of the concepts in Cocktail are very much at home on the server, especially repositories and unit of work as a whole. For services you would implement them synchronous, but for business processes running on the server they could be asynchronous. For example a client could start an asynchronous process on the server via a service or server method call and when the process is done, the server could notify the client via something like SignalR.</div><div>&nbsp;</div><div>There are considerations on the server that differ from the client. The server environment is inheritly multi-threaded. Each request comes in on it's own thread. That means things like the MEF container must be created per request and disposed at the end. Similar consideration must be given to authentication and authorization as the server is also inheritly multi-user, processing requests from different users concurrently. </div><div>&nbsp;</div><div>At the moment there is no server version of Cocktail, but pretty much everything starting from the unit of work could technically have server specific implementations. </div><div>&nbsp;</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 04 Oct 2012 15:35:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3692&amp;PID=14742#14742</guid>
  </item> 
  <item>
   <title>Cocktail on the server : First let me state that I know...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3692&amp;PID=14732#14732</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1009" rel="nofollow">JohnBloom</a><br /><strong>Subject:</strong> 3692<br /><strong>Posted:</strong> 04-Oct-2012 at 7:27am<br /><br />First let me state that I know that cocktail is a client side framework. I am not looking to use Cocktail on the server I just feel like there is not a lot of talk about best practices for the server.&nbsp;<div><br></div><div>We use a lot of third party libraries that are written in .Net. We use rpc to make calls to these libraries or we put them in a windows service and save records in a db to trigger them. On the client I am very confident about how to organize code and use the repository model and unit of work but on the server things are getting a little sloppy.</div><div><br></div><div>I used to think that this topic was beyond the scope of cocktail because cocktail is a client side framework and designed to run asynchronously while the server is synchronous. Then I watched John Papa's SPA video and there he was implementing a cocktail like framework on the server and it looked pretty good. I could see Ward Bell/Ideablade influence through the whole video. It seems the Cocktail design&nbsp;principles are gaining traction. John, however, &nbsp;had implemented it on the server synchronously.&nbsp;</div><div><br></div><div>This brought up questions in my mind again. What is cocktails answer for the server? How should we be organizing our code on the server and in services where there is no need for async but a still&nbsp;prevalent need for organization and code reuses? Why am i confident on the client but not so much on the server?</div><div><br></div><div>What are your thoughts?</div><div><br></div><div>Thanks for you work on this project Marcel we rely on your advice a lot and it is nice to see people like John Papa creating cocktailesque applications.&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 04 Oct 2012 07:27:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3692&amp;PID=14732#14732</guid>
  </item> 
 </channel>
</rss>