Ayende @ Rahien

It's a girl

Building Distributed Apps with NHibernate and Rhino Service Bus

The first part of a two parts article about NHibernate and Rhino Service bus in now on MSDN.

Comments

Jason Meckley
06/30/2010 03:22 PM by
Jason Meckley

great article. i especially like the caching technique, simply "re-send" the response. I'm looking forward to part 2.

g
06/30/2010 10:57 PM by
g

Interesting! With some modifications and an automapper with the domain layer it should be fairly straightforward to write the client in Javascript. The persistent cache can be handled with WebKit SQL storage.

JC
07/01/2010 03:35 AM by
JC

Great! I've been looking for some solid guidance on this exact type of architecture with smart clients.

Matthijs ter Woord
07/01/2010 07:31 AM by
Matthijs ter Woord

Will the final source project be posted somewhere?

Greg Fleming
07/01/2010 02:42 PM by
Greg Fleming

Nice article, but... Where are the tests? I don't understand how it can be considered acceptable to publish a code sample like this without unit tests. IMO, tests are the most important part of sample code.

fschwiet
07/01/2010 04:25 PM by
fschwiet

@g

Yeah I was considering how to apply this architecure to a Javascript application as well. You statement about using WebKit SQL implies you would keep the queue on the client. I was thinking the queue would still be on the server, the javascript code would just be a queue client.

You lose the transaction support and durability, but it allows for the message based architecture. I can see though how having a queue on the client would be helpful as well to coordinate UI blocks that communicate.

Does anyone know of tools to support such an architecture in a javascript scenario?

g
07/01/2010 09:26 PM by
g

fschwiet, do you have an email address / twitter?

H. Kusters
07/02/2010 06:45 AM by
H. Kusters

Great article!

Is this something that could be used in a silverlight application as wel. If so, you probably need to rewrite the PersistentCache to store the files in isolated storage, or is there more involved?

I am looking forward to your next installment.

Stuart C
07/02/2010 07:05 PM by
Stuart C

Great article as always. Can't wait for part two...

I am however interested in how you handle authentication... is authentication handled at the message level or at some higher, more general level?

Nikos Baxevanis
07/03/2010 12:25 PM by
Nikos Baxevanis

Wow, this should be a 3-in-1 article covering 3 different MSDN magazine columns. It covers the basics of a backend infrastructure implemented the right way using the right tools (NHibernate, Rhino.ServiceBus w. protobuf-net, etc) but also covers a very acceptable (maybe the best?) way to implement a UI client in WPF/SL using the Caliburn framework. Add that lot of best practises can be found in the article (IoC containers, ISession management, etc). I wish if you could write even more (about new details on Linq and re-motion's Linq provider in 3.x release on NHibernate trunk). Microsoft should take such articles into very detail.. You are upfront & forward-thinking as always. **10/10

fschwiet
07/07/2010 09:43 PM by
fschwiet

@g, I'm the only fschwiet on the internet :P its @gmail

Comments have been closed on this topic.