Asynchronous Insert

Posts   
 
    
carnold
User
Posts: 1
Joined: 30-May-2006
# Posted on: 30-May-2006 17:30:52   

Hi,

would be nice to hear your statemant about asynchronous insert of entities.

MSMQ or something else (com+ queuing) give us some ideas how to implement such scenario. We have a customer with a high load (on insert side) web application (sometimes 2000´s of inserts / second), asynchronous feature would be very cool for this.

So do you provide some mode (ADO.NET 2.0 asynchron features) or is it not possible to you asynchronous mode with LLBLGEN Pro ?

thanks, chris

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 31-May-2006 10:16:11   

Currently it's not supported indeed, as in: call adapter.SaveEntity(), and you'll get back a signal when it's done.

You can work around this though: use a workerthread to do the persistence logic for you. Like in the scenario of MSMQ: the queue in that scenario then isn't part of the persistence logic call chain, just the end of the queue, where the persistence logic starts. COM+/Enterprise services then controls the complete transaction, thus MSMQ, LLBLGen Pro code at the end of the queue and the caller to MSMQ.

Frans Bouma | Lead developer LLBLGen Pro