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
You could set this through the constructor, or perhaps expose a method that can be called, like:
public void OptimizeNetwork(int connectionLimit)
{
var queueServicePoint = ServicePointManager.FindServicePoint(account.QueueEndpoint);
queueServicePoint.Expect100Continue = false;
queueServicePoint.UseNagleAlgorithm = false;
queueServicePoint.ConnectionLimit = connectionLimit;
var tableServicePoint = ServicePointManager.FindServicePoint(account.TableEndpoint);
tableServicePoint.Expect100Continue = false;
tableServicePoint.UseNagleAlgorithm = false;
tableServicePoint.ConnectionLimit = connectionLimit;
var blobServicePoint = ServicePointManager.FindServicePoint(account.BlobEndpoint);
blobServicePoint.Expect100Continue = false;
// blobServicePoint.UseNagleAlgorithm = false; // Not needed for blob
blobServicePoint.ConnectionLimit = connectionLimit;
}
I don't know if more granularity would be needed, but you get the idea. I recommend an optional constructor that can indicate the desire for setting this up, and input the connection limit. I can submit a PR if you'd like, but if this is interesting to you at all, this is probably sufficient for you to add in yourself.
The text was updated successfully, but these errors were encountered:
Marcin, this is a great project. Nice work!
You might consider adding/exposing perf options. See here:
https://docs.particular.net/persistence/azure-storage/performance-tuning
https://docs.microsoft.com/en-us/azure/storage/common/storage-performance-checklist
You could set this through the constructor, or perhaps expose a method that can be called, like:
I don't know if more granularity would be needed, but you get the idea. I recommend an optional constructor that can indicate the desire for setting this up, and input the connection limit. I can submit a PR if you'd like, but if this is interesting to you at all, this is probably sufficient for you to add in yourself.
The text was updated successfully, but these errors were encountered: