Last I'd checked, the whole "Twitter needs to rebuild as a messaging
architecture" conversation is many months old, and probably well on
its way to being implemented.

http://blog.twitter.com/2009/01/building-on-open-source.html



On Thu, Mar 12, 2009 at 9:19 PM, Joshua Perry <[email protected]> wrote:
> I actually hopped on to request a stopgap feature in a similar vein and saw
> this thread so I thought I'd add kind of a free-associative reply.  You
> know, thinking out-loud.
>
> I think the biggest problem with push is that polling is too ingrained into
> Twitter's architecture to be able to bolt-on push tech without it being more
> expensive than the current pull methods.
>
> Picture the current architecture, back-end MySql, http server, and memory
> cache.  When a user posts a tweet it gets written to cache and persisted to
> the DB, where is the hook for someone that wants to be pushed that tweet?
> An interested party needs to be constantly checking the cache/DB for changes
> in order to see any.  In order to bolt push onto such an architecture would
> require some shim layer to do a sort of tight polling loop to see new
> updates and then push those updates to the waiting client.
>
> Until Twitter's architecture treats the data like what it actually is -- a
> stream of messages -- at all levels, it won't be able to provide efficiently
> provide push functionality without the current giant firehose with a filter
> method
>
> Once twitter has designed and implemented their tweet-router(tm) it will be
> quite easy for clients to register as endpoints and it will be much much
> cheaper infrastructure-wise than polling currently is.  Really, this problem
> has been solved in software and in hardware by many companies since before
> Ethernet.  Tell me why distributing a tweet is much different than a
> multicast TCP/IP message?  The database is an endpoint connected to the
> tweet-router and just persists messages and still serves a pull REST api for
> the initial client cache-charge or web page display.  An incoming message's
> from-user-id could be used as a multicast address and be routed quite
> efficiently to any connected client endpoint "listening" to that address.
>
> If the firehose is a hub with a giant broadcast domain, then tweet-router is
> a router behind a switch.
>
> Maybe thats silly but its what I've been thinking about.
>
> Josh
>
> Alex Payne wrote:
>
> We're going to be offering exactly that (a long-polling firehose) to
> select partners to build on. Please see our FAQ for more information.
>
> Providing a realtime solution for the rest of the API is a lot more
> challenging than just hooking up XMPP. If the technology was there,
> we'd do it. But we've investigated and benchmarked, and it isn't. We
> also want to provide something with a lower barrier to entry when
> we're ready to go down that road.
>
> We understand that power users are very excited about "realtime", but
> the majority of users and developers are still getting up to speed
> with Twitter's basic offerings. Accordingly, that's where our energies
> are at right now.
>
> On Thu, Mar 12, 2009 at 16:08, Sam Sethi <[email protected]> wrote:
>
>
> Please can we get a Twitter xmpp feed. If Twitter are not going to offer
> this can they allow GNIP to go live. GNIP say Twitter are not allowing them
> to offer the firehose via xmpp to developers. Why? Pull based polling is
> last year. Maybe at the least Twitter could offer a Long polling option like
> friendfeed to give a psuedo realtime feed
>
> Thanks in advance
>
> Sam
>
> W: www.twitblogs.com
>
> Sent from my iPhone
>
> On 12 Mar 2009, at 21:21, Alex Payne <[email protected]> wrote:
>
>
>
> POST requests are unlimited.
>
> We used to support XMPP as an experimental feature, but we don't
> currently.
>
> Delivering push features at our scale is a challenge. We're currently
> making our traditional REST request/response APIs the best they can
> be. In the future, maybe we'll tackle push as well. In the medium
> term, select partners will be able to have tweets pushed to them over
> HTTP via our "firehose" mechanism.
>
> As Andrew suggested, there's been quite a lot of discussion on these
> topics in this group and elsewhere on the web.
>
> On Thu, Mar 12, 2009 at 13:55, Adrian <[email protected]> wrote:
>
>
> Hi there, I was wondering if it's possible to push data, rather than
> have the content pulled with JSON or XML fetches. You can poll after
> set amounts of time, but that only present the illusion of Push, and
> uses up bandwith.
>
> Also, is the API limit applied to POST requests?
>
> Lastly, has Twitter thought about implementing XMPP.
>
>
>
> --
> Alex Payne - API Lead, Twitter, Inc.
> http://twitter.com/al3x
>
>
>
>

Reply via email to