How to send an IEnumerable<IApiRequest>as one Http post? #143
-
Looking at the implementation of IApiRequestHandler.ApiBulkAsync for each element a post ist sent. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I disagree that for each element within the ApiBulkAsync a post request is sent. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I missed that part. It's working fine. |
Beta Was this translation helpful? Give feedback.
I disagree that for each element within the ApiBulkAsync a post request is sent.
The webserver has a limit for these post requests.
I thought users didnt want to take care that their bulk request does not exceed the limit, therefore we implemented a splitting mechanism for the post requests that exceed the according limit.
The ApiBulkAsync will only chunk the messages into these pieces using the MessageSplitter ->
Then send those to the plc and build those all together.