<?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 : Persistence Manager in a web farm environment</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Persistence Manager in a web farm environment</description>
  <pubDate>Thu, 11 Jun 2026 07:48:09 -700</pubDate>
  <lastBuildDate>Wed, 02 Apr 2008 09:12:15 -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=749</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>Persistence Manager in a web farm environment : Jacob, Your comment that &amp;#034;it...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=749&amp;PID=2767#2767</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 749<br /><strong>Posted:</strong> 02-Apr-2008 at 9:12am<br /><br /><P>Jacob,</P><DIV>Your comment that "it would probably be possible to use session affinity" is an understatement.&nbsp; That, in fact, is exactly how the AspDataSource works,</DIV><DIV>&nbsp;</DIV><DIV>You can't save the entire state of the Peristence Manager to a State or SQL Server because the PersistenceManager is not serializable, but there is some important information that can be serialized.&nbsp; In particular, you should be able to persist the Persistence Cache (in Session state) to an Entity Set (pretty much the same way it is done in a disconnected application).</DIV><DIV>&nbsp;</DIV><DIV>David</DIV>]]>
   </description>
   <pubDate>Wed, 02 Apr 2008 09:12:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=749&amp;PID=2767#2767</guid>
  </item> 
  <item>
   <title>Persistence Manager in a web farm environment : Thanks David  That isn&amp;#039;t...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=749&amp;PID=2765#2765</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=77" rel="nofollow">jozza</a><br /><strong>Subject:</strong> 749<br /><strong>Posted:</strong> 01-Apr-2008 at 4:15pm<br /><br />Thanks David<DIV>&nbsp;</DIV><DIV>That isn't really the news that I was hoping for :( When you say "Persist the EntitySets in the Cache" which cache are you actually refering to? Do you mean Session? Do you have any example code?</DIV><DIV>&nbsp;</DIV><DIV>If the webfarm was set up to use session affinity then it would probably be possible to store the persistence manager in the Session and keep it in process so it doesn't need to be serialized out to SQL or State Server. The disadvantage of this of course is that it provides less fault tolerance than 'no affinity' since if the server goes down, the user loses their session.</DIV><DIV>&nbsp;</DIV><DIV>Thanks again</DIV><DIV>&nbsp;</DIV><DIV>Jacob</DIV>]]>
   </description>
   <pubDate>Tue, 01 Apr 2008 16:15:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=749&amp;PID=2765#2765</guid>
  </item> 
  <item>
   <title>Persistence Manager in a web farm environment : Jacob,  I had one customer who...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=749&amp;PID=2764#2764</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 749<br /><strong>Posted:</strong> 01-Apr-2008 at 3:39pm<br /><br />Jacob,<DIV>&nbsp;</DIV><DIV>I had one customer who wanted a web farm for his ASP.NET application.&nbsp; He wanted a sql or state server so that he could fail over his application</DIV><DIV>&nbsp;</DIV><DIV>I suggested two alternatives:</DIV><DIV>&nbsp;</DIV><DIV>(1) You are correct,&nbsp; The PersistenceManager os not serializable.</DIV><DIV>&nbsp;</DIV><DIV>Persist the EntitySets in the Cache.&nbsp; An EntitySet is serializable</DIV><DIV>&nbsp;</DIV><DIV>(2) Always flush the Entity Cache to the database.&nbsp; This works, but basically gives up on using the Cache and gets everything from the database.</DIV><DIV>&nbsp;</DIV><DIV>In the end, we convinced the customer the needs of his application could be handled sufficiently by using session state and that there was no good solution using a sql or&nbsp;state server,</DIV><DIV>&nbsp;</DIV><DIV>David</DIV>]]>
   </description>
   <pubDate>Tue, 01 Apr 2008 15:39:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=749&amp;PID=2764#2764</guid>
  </item> 
  <item>
   <title>Persistence Manager in a web farm environment : Hi  I&amp;#039;ve read in another...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=749&amp;PID=2760#2760</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=77" rel="nofollow">jozza</a><br /><strong>Subject:</strong> 749<br /><strong>Posted:</strong> 31-Mar-2008 at 9:15pm<br /><br />Hi<DIV>&nbsp;</DIV><DIV>I've read in another forum post that the Persistence Manager in non-serializable, yet it seems that the common implementation is to store a new instance of a Persistence Manager in the Session for each new session. This solution however does not work in a web farm enviroment where the session is stored out of process either on a state server or in sql. What other options are there in order to get devforce working in such an environment?</DIV><DIV>&nbsp;</DIV><DIV>Cheers</DIV><DIV>&nbsp;</DIV><DIV>Jacob</DIV>]]>
   </description>
   <pubDate>Mon, 31 Mar 2008 21:15:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=749&amp;PID=2760#2760</guid>
  </item> 
 </channel>
</rss>