Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Microsoft Dynamics AX 2012 Services

You're reading from  Microsoft Dynamics AX 2012 Services

Product type Book
Published in Dec 2012
Publisher Packt
ISBN-13 9781849687546
Pages 196 pages
Edition 1st Edition
Languages

Multithreading


Microsoft Dynamics AX 2012 has the ability to run jobs in batch by leveraging the abilities of the batch framework. The batch framework has two main purposes:

  • Enable jobs to be scheduled.

  • Provide a mechanism to split jobs up into smaller parts and run them in parallel. By doing so, the batch job has a larger throughput and the response time is much better.

We want the service that we created earlier to use the same batch framework so that it has better performance. There are different approaches to this and each has its advantages and disadvantages. The two most commonly used approaches can be described as:

  • Individual task approach

  • Helper approach

Individual task approach

This approach will divide the batch job into a number of work units also known as runtime tasks . For each work unit, a runtime task will be created. So you will have a one-to-one relation between work units and runtime tasks.

When your batch job is executing in batch, it is only responsible for creating the tasks...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}