You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case, the Content Manager downloads the changes in chunks. The total number of chunks to be fetched can be expressed as chunks = (last_offset - offset) / MAX_SIZE, where MAX_SIZE=1000. This is the upper limit of changes the CTI API returns in a single request. Following the example, the Content Manager would download 10 chunks of 1000 changes and 1 chunk of 710 changes, for a total of 11 requests to the CTI API and 10710 changes, that need to be processed and indexed.
The Content Updater module uses the CTI client module to fetch the changes. It then processes the data and transforms it into CUD (create, update, delete) operations to the appropriate index, using the Index Management module. When the update is complete, it generates a command for the Command Manager, using the client. The Content Updater is the orchestrator of the update process, delegating the fetching and indexing operations to other modules.
AlexRuiz7
changed the title
Add context offset update funcionality to the Content Manager plugin
Context update from CTI consumer's changes
Jan 30, 2025
Description
A context is outdated when its offset and last_offset are different. For example, in the case below.
In this case, the Content Manager downloads the changes in chunks. The total number of chunks to be fetched can be expressed as
chunks = (last_offset - offset) / MAX_SIZE
, whereMAX_SIZE=1000
. This is the upper limit of changes the CTI API returns in a single request. Following the example, the Content Manager would download 10 chunks of 1000 changes and 1 chunk of 710 changes, for a total of 11 requests to the CTI API and 10710 changes, that need to be processed and indexed.The Content Updater module uses the CTI client module to fetch the changes. It then processes the data and transforms it into CUD (create, update, delete) operations to the appropriate index, using the Index Management module. When the update is complete, it generates a command for the Command Manager, using the client. The Content Updater is the orchestrator of the update process, delegating the fetching and indexing operations to other modules.
Functional requirements
Implementation restrictions
offset
value is updated on each iteration. When the update ends,offset
must be equal tolast_offset
.Plan
offset != last_offset
.The text was updated successfully, but these errors were encountered: