Book Image

Microsoft Dynamics AX 2012 R2 Services

Book Image

Microsoft Dynamics AX 2012 R2 Services

Overview of this book

Table of Contents (17 chapters)
Microsoft Dynamics AX 2012 R2 Services
About the Authors
About the Reviewers


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

  • Enabling the scheduling of jobs.

  • Providing 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 the following:

  • The individual task approach

  • The helper approach

The individual task approach

This approach will divide the batch job into a number of work units that are 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 executed in batch...