Advanced Configuration : Installing and Configuring the Aggregator Service : How the Aggregator Service Works
 
Share this page                  
How the Aggregator Service Works
Messages can be submitted to POST: <endpoint>/api/aggregators?type=<entity-type>&id=<entity-id>. These messages will be aggregated according to the corresponding entry in aggregator-config.yml. When the number of messages received equals completion-size, or the completion-timeout is reached after the last message is received, then the aggregated message will be submitted to <endpoint>/api/jobconfigs/<entity-id>/listener. The aggregated message can be accessed through djmessage 'msg1' within the dataconnect process.
Sample request to the aggregator API
POST /api/aggregators?type=jobconfig&id=22
Host: <endpoint>
Authorization: <bearer-token>
Content-Type: text/plain
 
<note>
    <to>Tove</to>
    <from>Jani</from>
    <heading>Reminder</heading>
    <body>Don't forget me this weekend!</body>
</note>