SMTP Server Extension (Mail Sink) performance
-
We've currently got a Visual Basic coded ActiveX DLL that implements ISMTPOnArrival::OnArrival to intercept messages as they arrive -- we have a website that lets users send/receive emails so they're added to an SQL DB within this DLL. However, over the past few months we've had severe performance problems as load has increased. We're in the process of re-examining the code to determine what can be done to speed things up. One of the things I found mentioned that because of VB6's threading requests had to be serialised and queued before being fulfilled by the Mail Sink object that was housed by the SMTP service. Consequently, one option is to re-write (the essentially simple code) as a Visual C++ ATL project and all it to support MTA and be free threaded, being careful about being thread-aware. The Mail Sink DLL uses other ActiveX COM DLLs to access the DB as per usual DNA architecture. If I were to re-code the mail sink using Visual C++ and support multi-threaded request fulfilment, will this be supported by making subsequent calls to the various other COM DLLs that will be STA/Apartment threaded? I've probably not made myself especially clear, but I'd really appreciate your thoughts. Thanks, Paul -- Paul "Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office." - David Brent, from "The Office" MS Messenger: paul@oobaloo.co.uk Download my PGP public key