Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Thu, 23 Aug 2007 22:54:01 -0700,    group: microsoft.public.dotnet.distributed_apps        back       


How To: Write a custom remoting transport   
I have created cache (basically a Dictionary(tkey, tvalue)) that is remoted 
via TCP.

It allows me to load up the cache with 1+gb of data that remains cache 
between calls and client startups.

Multiple callers can call on the remoted cache and retrieve data.

I'd like to avoid the binary serialization cost on the "server" side by 
storing a pre-serialized version of the object in the cache and build a 
remoting transport that doesn't have to do serialization while responding to 
a request.

Here's the ideal situation
The data in the cache is binary serialized to disk, the cache starts up and 
reads the serialized data into memory, pulls out the key and stores the 
serialized data as the value and the key in the Dictionary. A caller 
configures itself to call the cache via RemotingConfiguration.configure then 
makes a call on the cache. The data is looked up in the cache and the raw 
value is sent back to the caller. On the server there is no serialization 
cost. On the client, the value retrieved must be deserialized (this can't be 
avoided).

Any pointers would be greatly appreciated.
-- 
====================

 eAndy

====================
date: Thu, 23 Aug 2007 22:54:01 -0700   author:   eAndy

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us