Print Page | Close Window

Asynchronous vs Synchronous Queries

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2031
Printed Date: 21-Apr-2026 at 8:39pm


Topic: Asynchronous vs Synchronous Queries
Posted By: BillG
Subject: Asynchronous vs Synchronous Queries
Date Posted: 29-Jul-2010 at 8:49am

I am used to writing client server apps in which the user populates a grid of records with which they want to work. they click on a record, edit the record and save the record and move on to the next record. What benefit does Async queries do in this case, the user cannot select a record until all the rows come back and they see the one they want.

 
When would I want to do async queries vs. sync queries?
 
If I use sync queries do they still run through the BOS?
 
Bill
 



Replies:
Posted By: davidklitzke
Date Posted: 29-Jul-2010 at 11:12am
The main reason that you would want to use an asynchronous query would be if you were writing a Silverlight application.
 
For more details on asynchrous queries, consult the DevForce Wiki.  For example,
 
http://www.ideablade.com:8989/xwiki/bin/view/Documentation/AsynchronousCommunicationWithTheBusinessObjectServer#HAsynchronousQueries - http://www.ideablade.com:8989/xwiki/bin/view/Documentation/AsynchronousCommunicationWithTheBusinessObjectServer#HAsynchronousQueries
 
 


Posted By: BillG
Date Posted: 29-Jul-2010 at 2:17pm
So  I want to do a n-tier WPF app. I don't need the aynch queries but I would still like to use the BOS because there are some calculations that can run in queries on the server and only the results have to return or some don't have to return anything to the user but write directly to the database after the queries are done?
 
Will n-tier and BOS still benefit me here?
 
Bill
 


Posted By: davidklitzke
Date Posted: 29-Jul-2010 at 2:43pm
Yes.  You can use n-tier and BOS to benefit you.
 
http://www.ideablade.com:8989/xwiki/bin/view/Documentation/BusinessObjectServer#HRemoteServiceMethodCall28RSMC29Methods - http://www.ideablade.com:8989/xwiki/bin/view/Documentation/BusinessObjectServer#HRemoteServiceMethodCall28RSMC29Methods
 
 



Print Page | Close Window