We all know that working with S3 is a pain: deleting virtual directories requires to delete all the objects from within the path, etc. At least with RESTful API this is the case.
I was wondering whether there would be any performance improvement if I would use PHP to call GSUtil rather than using my own PHP class. Is there anything special the way GSUtil handles requests or is it the same REST wrapper?
The main issues I am having:
- deleting big folders
- uploading many small files
- reading hierarchical data steps (e.g. only files and folders under
/foopath, but not their children-children)
Fundamentally, your PHP code and gsutil are both using the RESTful interface (gsutil is actually layered atop an open source Python library called boto which implements the bulk of the REST interface), however, there are several reasons to consider using gsutil:
In summary, you can roll your own PHP code but I think you’ll get your job done faster and have access to more functionality if you leverage gsutil.