[openstack-dev] Swift App

Rugwiro Ulysse rugwiro05 at yahoo.com
Wed Oct 17 01:37:41 UTC 2012


Dear John Dickinson
 

I would like to ask a favor from you,i followed the instruction you gave me on how to apload quickly file on swift but i couldnt run and test you code .could you guide me step by step on how i should do it?? i am using windows 7 OS and PyDev
 

Thanks a lot!!

--- On Mon, 10/8/12, John Dickinson <me at not.mn> wrote:


From: John Dickinson <me at not.mn>
Subject: Re: [openstack-dev] Swift App
To: "OpenStack Development Mailing List" <openstack-dev at lists.openstack.org>
Date: Monday, October 8, 2012, 6:20 PM


"Advice on swift application development" could cover a lot of ground and fill a lot of pages of text. However, here are some getting started places.

First, check out the swift API docs at http://docs.openstack.org. Swift's API is HTTP, so any client or library that speaks HTTP can talk to swift. I've published some examples of using Python's httplib to talk to swift at http://programmerthoughts.com/programming/quickly-uploading-to-cloud-files-part-2/.

If you are looking for language bindings, check out either https://github.com/openstack/python-swiftclient (the official Python language bindings) or https://github.com/rackspace/python-cloudfiles). There are bindings for other languages as well.

As a general guide for building a client app, first, know your data. Try to use concurrency when talking to swift (instead of sending each request serially). Also, for large data sets, shard your data across many containers. Try to target 1-10 million objects in each container (although this is affected by your hardware deployment choices). Swift is designed for high throughput using many concurrent connections, so take advantage of that.

--John





On Oct 8, 2012, at 9:03 AM, Rugwiro Ulysse <rugwiro05 at yahoo.com> wrote:

> Hello everyone !!
>  
> I would like your advice on swift application development.
>  
> " How a client can talk directly to a swift cluster without a web service invorved?"
>  
> This question have been in my mind for long and i dont seem to have figured out how to make such application in python. any ideas??
>  
> Regards!!
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


-----Inline Attachment Follows-----


_______________________________________________
OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20121016/b883936c/attachment.html>


More information about the OpenStack-dev mailing list