paul.nowak wrote: Matt, thanks for the comments. I made an error on the version of Plone. It's 2.5 Plone running on Zope 2.9x.
In regards to the additional products, we have a skin installed and we have a product that we had custom developed for us that connects to a PostgreSQL database. We've looked at slow PostgreSQL queries causing problems and have not been able to find an issue. We've also tested for the case where the PostgreSQL server is down and have not been able to create an issue. We therefor...
One of the Google folks working on OpenSocial sent me a message
via Facebook asking what I thought about
the technical details of the recent announcements. Since my day job is working
on social networking platforms for Web properties at Microsoft and I'm deeply
interested in RESTful protocols, this is something I definitely have some
thoughts about. Below is what started off as a private message but ended up
being long enough to be its own article.
I prefer idiomatic XML to tunneling data through Atom feeds
in ways that [in my opinion] add unnecessary cruft.
The Facebook APIs encourage developers to build social and
item relationship graphs within their application while the OpenSocial seems
only concerned with developers stuffing data in key/value pairs.
The JavaScript API
At first I assumed the OpenSocial
JavaScript API would provide similar functionality to FBML given the
large number of sound bites quoting Google employees stating that instead of
"proprietary markup" you could use "standard JavaScript" to
build OpenSocial
applications. However it seems the JavaScript API is simply a wrapper on top of
the various REST APIs. I'm sure there's some comment one could make questioning
if REST APIs are so simple why do developers feel the need to hide them behind
object models?
Given the varying features and user interface choices in social networking sites, it is unsurprising that there is no rich mechanism specified for adding entry points to the application into the container sites user interface. However it is surprising that no user interface hooks are specified at all. This is surprising given that there are some common metaphors in social networking sites (e.g., a profile page, a friends list, etc) which can be interacted with in a standard way. It is also shocking that Google attacked Facebook's use of "proprietary markup" only to not even ship an equivalent feature.
I've already mentioned that I prefer idiomatic XML to tunneling data through Atom feeds. Comparing the readability of both examples should explain why.
Currently there is no reference documentation on this API. My assumption is that since Orkut is the only OpenSocial site that supports this feature, it is difficult to produce a spec that will work for other services without it being a verbatim description of Orkut's implementation.
There are some notes on how Orkut attempts to prevent applications from spamming a user's activity stream. For one, applications are only allowed to update the activity stream for their source directly instead of the activity stream for the user. I assume that Google applies some filter to the union of all the source-specific activity streams before generating the user's activity feed to eliminate spam. Secondly, applications are monitored to see if they post too many messages to the activity stream or if they post promotional messages instead of the user's activities to the stream. All of this makes it seem difficult to see how one could specify the behavior of this API and feature set reliably for a diverse set of social networking sites.
This is probably the least interesting aspect of the API. A simple persistence API like this is useful for applications with simple storage needs that need to store user preferences or simple textual data that is needed by the application. However you aren't going to use this as the data storage platform for applications like iLike,
Flixster or Scrabulous.
However, I will add that an Atom feed seems like a horrible representation for a list of key<->value pairs. It's so bad that the documentation doesn't provide an example of such a feed.
Hosting OpenSocial Applications
The documentation on hosting OpenSocial applications implies that any site that can host Google
gadgets can also host OpenSocial applications. In practice, it means that any site that you can place a <script> element on can point to a gadget and thus render it. Whether the application will actually work will depend on whether the hosting service has actually implemented the OpenSocial Service Provider Interface (SPI).
Unfortunately, the documentation on implementing the OpenSocial SPI is missing in action. From the Google site:
To host OpenSocial apps, your website must support the SPI side of the OpenSocial APIs. Usually your SPI will connect to your own social network, so that an OpenSocial app added to your website automatically uses your site's data. However, it is possible to use data from another social network as well, should you prefer. Soon, we will provide a development kit with documentation and code to better support OpenSocial websites, along with a sample sandbox which implements the OpenSocial SPI using in-memory storage. The SPI implements:
Adding and removing friends
Adding and removing apps
Storing activities
Retrieving activity streams for self and friends
Storing and retrieving per-app and per-app-per-user data
The OpenSocial website development kit will include full SPI documentation. It will provide open source reference implementations for both client and server components.
I assume that the meat of the OpenSocial SPI documentation is just more detailed rules about how to implement the REST APIs described above. The interesting bits will likely be the reference implementations of the API which will likely become the de facto standard implementations instead of encouraging dozens of buggy incompatible versions of the OpenSocial API to bloom.
About Dare Obasanjo Dare Obasanjo is a Program Manager at Microsoft where he works on the Contacts team. The Contacts team provides back-end support for Windows Live Messenger, Windows Live Spaces, Windows Live Expo, and related services. Obasanjo is also known for RSS Bandit, a popular .NET-based RSS reader.
Reader Feedback: Page 1 of 1
#2
OpenSocial commented on 6 Nov 2007
nothing more than another networking service that is consumed by multiple web application
#1
bugzpodder commented on 5 Nov 2007
Excellent post! Thank you!
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
Click to Add our RSS Feeds to the Service of Your Choice: