Closed zxxc closed 3 years ago
Well, i believe that file uploading in parallel or sequentially and reaction on errors is part of your business logic. I can agree with improvements like:
But for everything else you can create a wrapper around SDK and implement any business logic that fits your needs.
I'm just curious, what type of integration you build? This SDK was built primarily for Sitecore integration and no one else used it for 4 years.
We have some data in our db and just we want to translate it using Smartling What is the common way to do this?
@zxxc Having 10K resource files for a web site/app localization is unusual.
What kind of content is in your database? UI strings or is it copy for your web site / app? What is your tech stack? Are you using a standard localization library?
one resource is a object with 3-5 lines to translate and list of required languages we have a few web sites and few mobile app And one database where we are storing only translations
And i need to mentions that 10 000 is first part for only one language We are going to increase number of resource around 10 times for every language (for we need only 5 languages) What is a right way to upload and download resources? And what is resource in terms of smartling? What some other unexpected issue we can face?
Closed it as outdated.
Upload multiply files in one go As we have a lot of files (10000) We need to start a lot of threads in parallel
And i found that if we are starting more than 300 requests we will receive some unexpected errors (not only 429, sometimes 500) Would be good if library will have possibiliy for GetFileStatus, UploadFileContents, GetFile to work with multiply files.
For instance, UploadFileContents(new [] {{ fileName:'someFile1.json', fileContents:'{some json string}' }, file2, file...},
For UploadFileContentswe received exceptions that we can't start more than 300 requests, but after some time I saw message for GetFile that we can't start more than 100 requests at the same time