Closed rickbeeloo closed 1 month ago
I wonder how it works behind the scenes for Mistral. If you recreate the channel for each iteration like in the example does that then load all requests in memory or still max 10,000?
Let me just close this as it's not really a necessary thing but people can find it back
@rickbeeloo I think you are correct. Perhaps using an mspc channel is overkill.
All we need, internally, is way to send the request return the response across threads. Internally, the Engine runs on a different thread. If you have any ideas about how to improve this I would accept a PR!
I was looking at the batch example and noticed that the channel get recreated for every request:
In tokio normally the channel is created and requests are pushed to it this confused me at first. Maybe an example like this would be more intuitive:
I think now the part:
Matches more with the tokio example: