Thursday, July 09, 2009

BizTalk architecture whitepaper

BizTalk Server 2004: A Messaging Engine Overview is by far the best document in helping to understand the BizTalk.

Despite being written for BizTalk 2004 it is still valid for 2006, 2006R2 and 2009 and makes an especially good reading between taking a First Look at BizTalk 2006 and digging deeper into the details.

Friday, July 03, 2009

Architectural, technical and spiritual videos

From Norwegian Developers Conference June 2009 (Scott Hanselman, Phil Haack, Michael Feathers, Juval Löwy, Rocky Lhotka and many more)

From Øredev conference Nov 2008 (Jimmy Nilsson, Eric Evans and many more)

Thursday, July 02, 2009

WCF thread safety in 25 lines of code

[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall, ConcurrencyMode = ConcurrencyMode.Single)]
public class ThreadSafeService : IServiceContract
{
private int counter;

[MethodImpl(MethodImplOptions.Synchronized)]
public void IncrementCounter(int amount)
{
Mutex m = new Mutex(false);
try
{
Monitor.Enter(this);
m.WaitOne();
lock (this)
{
Interlocked.Add(ref counter, amount);
}
}
finally
{
m.ReleaseMutex();
Monitor.Exit(this);
}
}
}

I dare to say that familiarity with every technique used in this sample would make you comfortable in dealing with WCF multithreading and throughput issues.


© 2008-2013 Michael Goldobin. All rights reserved