Ask Your Question

Does Swift send updates when objects have been modified in a container?

asked 2014-12-28 14:22:34 -0500

Milan R gravatar image

updated 2014-12-31 12:58:01 -0500

smaffulli gravatar image

Can an application subscribe for receiving notifications (perhaps "out of band" or any other mechanism) when updates to specific objects have been made in a container ?

Does Swift, presently support any mechanism for applications to listen for object changes (due to CRUD operations), to allow them to implement appropriate logic.

I am new to openstack , did not succeed in locating documentation on this aspect, yet. Your kind patience is appreciated.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-12 16:43:21 -0500

zaitcev gravatar image

updated 2015-01-12 16:55:20 -0500

No, there's no pub-sub in Swift. Not in core, anway. Middleware may provide something like that, although personally I'm not aware of such.

There's a heavy-duty solution that a bigger problem, called "ZeroVM", which permits to run apps on Swift nodes. That hammer is definitely big enough for your problem, I'm just not sure you can use it, depending on who owns the cluster and how much effort you're willing to expend.

A more hacky approach that I can think of is to configure StatD middleware to inform a listener. Again you must own the cluster to configure it.

Note that Swift has internal update notification, supported by so-called "updater" processes. They are used to collect summary numbers and cannot be used from the outside. Don't even bother trying to tap into those.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-12-28 14:22:34 -0500

Seen: 412 times

Last updated: Jan 12 '15