Linq to the future ??

Feb 19, 2013 at 10:02 PM
Hi All !

Part of my app is a big cache. This is a - optionally - a separate
computer, which has (all) data in memory in form of Net objects.
This is not a sql server. It should not be a tuple store, like memcache.

I am currently using the Zyan framework [here on codeplex too]
for this. The client has a linq query and send it over to the server,
which executes it and returns the result.

I just see this more as a message. The message transports
just a serialized expression tree to the server, where the
handler executes it.

This would be a good extension to the AppSpace!
What do you think ??

Thanks anyway and
best regards,
++mabra
Feb 20, 2013 at 8:34 AM
Edited Feb 20, 2013 at 8:34 AM
Hi mabra,

Nice to hear from you again. Actually there is the possibility to transfer a lambda expression within a message. This is currently used only in the Publish/Subscribe feature to provide a filter function which filters event messages on the server side. You can also use this in your own messages, best take a look at the Subscribe class here:
http://xcoappspace.codeplex.com/SourceControl/changeset/view/70895#567579

It shows how an expression can be prepared for serialization, and on the other side compiled into a function. We are using an altered version of MetaLinq (http://metalinq.codeplex.com/) for that.
I admit that this currently requires a bit more code than with Zyan, but it all stays within the message class, so once you have created that it's simple.

Is this what you imagined or do you have something else in mind?

Best regards
Thomas
Feb 22, 2013 at 12:11 PM
Hi Thomass !

Much thanks for your pointer, I'll have a look at it.

Best regards,
++mabra