Home Help Center

.NET AMI api vs TPL

vishreddykvishreddyk Member Vishwanath KasarlaOrganization: BarclaysProject: Risk System

Ice version: 3.5.0
.NET 4.0

Instead of making calls via AMI from the client, the approach we have taken is using Task (Task Parallel Library) constructs for making the server calls asynchronously.

Do you see any pitfalls using this approach?
Do you strongly suggest that we use the ICE AMI APIs as oppose to TPL?

Please advise.


  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff

    Using a Task for making Ice synchronous calls to servers is fine if it simplifies your code and if your code is not performance sensitive.

    Otherwise, AMI calls should in theory be a bit cheaper since they don't require switching to another thread for sending the request and waiting for the reply (Task are executed by the .NET thread pool).

Sign In or Register to comment.