BT

Facebook’s Parse Open-sources its SDK for Android and iOS

| by Sergio De Simone Follow 21 Followers on Aug 16, 2015. Estimated reading time: 1 minute |

Parse, Facebook-owned provider of a successful Mobile Backend as a service, has open-sourced its SDK for the iOS/OS X and Android platforms.

As Parse’s engineer Nikita Lutsenko wrote in the official announcement, open-sourcing Parse SDK is driven by the belief that this can accelerate innovation, enable learning from the community, and foster better collaboration. The Parse SDK conveys with it all that Parse engineers learned by building the service and overcoming challenges that may be common to other developers, says Lutsenko. Accordingly, Parse’s engineer Grantland Chew, announced a series of blog posts to dive into Parse SDK most challenging aspects and into its workings under-the-hood, and started exploring a few key concepts:

  • Asynchronous API: the Parse SDK provides a highly asynchronous API which is based on Bolts, another framework that Parse open sourced one year ago and that provides the abstraction of a future/promise. This is used to simplify the serialized execution of parallel asynchronous operations such as persisting a dependency chain of objects.
  • Decoupled architecture: Parse SDK public API is structured as a façade to an always changing implementation behind it. This makes it possible to continue growing the system and adding new features without breaking anything. Parse SDK’s façade is based on a few abstractions such as:
    • object instances, the basic abstraction that keeps the API stable by providing means to get and set ParseObject properties.
    • state, which represents the internal state of the object, e.g., for a ParseObject, the combination of its server-side representation, the collection of local changes, and its current local representation.
    • Controllers, which define the operations that can be executed on ParseObject, ParseQuery and ParseFile instances. They are also responsible for REST communication and encapsulating features such as the local datastore.

Besides peeking into Parse SDK implementation, developers will be able to submit pull requests for any bugs they fix.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss
BT