Delta Publishing Mode

Delta Publishing mode only supports the Timer polling method. When Delta Publishing mode is enabled, Publication Service checks the input file on a preconfigured timer interval, and copies any new data to a work file in the WIP directory, and then processes and publishes it.

To better explain the mechanism of Delta Publishing mode, the delimitedReader example is used. The example is located in the SimpleRecord.zip file in the TIB_ADFILES_HOME\examples\samples\BusinessWorks5 directory.

In the delimitedReader example, the delimited.txt input file is shown as follows:

Order, ID41678, 20May2000
Item, GigaWidget, 60, $75
Item, MegaBucket, 48, $125
Customer, Hopkins Associates, ID26490
Order, ID41680, 20May2000
Item, Rt.Clopper, 40, $100
Item, Lt.Clopper, 50, $100
Customer, Jersey WebInovaters, ID46786

When using Delta Publishing mode, you have to consider the following two conditions:

  • Each line

    Each line might be written in the input file by another application at intervals. The intervals are set at three times of the polling interval that you have set in the Configuration tab. The adapter can handle all kinds of writing rates for each line when you set a proper polling interval.

    When a line is published as one message in Delta Publishing mode, the intervals are reset. When setting the polling interval, you have to consider the writing rate of the application.

  • Each complete message

    A complete message is written in the input file at intervals. The intervals are set at three times of the polling interval you have set in the Configuration tab. In this example, according to Read Schema, Order is the root record, so the first 4 lines form a complete message, and the last 4 lines form another complete message.

    In Delta Publishing mode, the adapter cannot recognize where the next complete message starts, and the data is written in the input file by another application continuously. If no data is written in the input file at the specified intervals (3 times of the polling interval), the last 4 lines are published as a complete message.

    After the last 4 lines are published as a complete message in Delta Publishing mode, other data appended to the last line is not allowed. For example, after publishing the last 4 lines as a complete message, it is not allowed to append data to line 8 as follows: Customer, Jersey WebInovaters, ID46786 fdsfdsfds