Hi,
Retrieving inventory with a large number of MEs by calling Get Inventory (SimpleResponse) might cause the application to crash due to memory limitation.
A proposed solution is limiting the number of MEs in the response.
In case this limit is exceeded, which of the next solutions fits best with MTOSI standard?
- Throw an exception (which type?)
- Return only the max possible number of MEs with a warning
- Change communication pattern in the response to MultipleBatchResponse and the caller must use getInventoryIterator repeatedly till the operation is completed
Suggestions are welcomed.
Thanks,
Elad