Ask Your Question

What is the Swift GET & PUT workflow? [closed]

asked 2013-10-27 07:51:58 -0500


Evgeny gravatar image

I am making a simulator for Swift and I need to understand at which points of the code I hit when I read or write from the Swift server and what the difference is between them.

Thanks in advance.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by mithilarun
close date 2014-06-25 04:23:34.901753

1 answer

Sort by » oldest newest most voted

answered 2013-11-12 21:49:05 -0500

koolhead17 gravatar image


I am mentioning swift GET & PUT workflow i hope it will be helpful

Upload (PUT)

A client uses the RESTful API to make an HTTP request to PUT an object into an existing container. After receiving the PUT request, Swift determines where the data is going to go. To do this, the account name, container name, and object name are all used to determine the partition where this object should live. Then a lookup in the ring determines which storage nodes contain the partitions in question.

Then the data is sent to each storage node where it is placed in the appropriate partition. A quorum is required — at least two of the three writes must be successful before the client is notified that the upload was successful.

Downloads (GET)

A request comes in for an account/container/object. Using the same consistent hashing, the partition name is generated. A lookup in the ring reveals which storage nodes contain that partition. A request is made to one of the storage nodes to fetch the object and if that fails, requests are made to the other nodes.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-10-27 07:51:58 -0500

Seen: 368 times

Last updated: Nov 27 '13