Do these timings for the RackSpace PHP SDK seem about right? -


i'm using rackspace php sdk upload html container.

this script without using sdk, finishes in ~0.1 seconds. using sdk, it's between 1.5 - 2.5 seconds. i'm doing sdk is.

  1. connect using username , api key.
  2. get instance of objectstoreservice.
  3. set container.
  4. upload data file.

the largest of files uploaded @ moment, 212kb.

does seem right, doing 4 operations taking around 1.4 - 2.4 seconds?

i have found uploading cloud files slower 1 expects, you're looking @ realistic times.

the bottle necks in cloud files library are:

  • when login username , api key, returns token lasts 24 hours. if can should see if can keep token, save api call: http://docs.php-opencloud.com/en/latest/services/identity/tokens.html

  • when upload file, doesn't report 202 ok until has stored file. storage backend uses openstack swift, breaks files blocks, each block must saved on majority of servers; rackspace, heard each block saved on 3 servers, 'upload' won't return until every block of file on @ least 2 servers. way around uploading delay, asynchronously, or processes uploading multiple files @ time. don't know how in php without having secondary , other processes save files you.

  • always use snet (service net) when you're uploading inside same datacenter cloud files service


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -