Search code examples
cloudantibm-cloud

What are the differences between mobiledata and cloudant services?


hello I am analyzing these two services to use In my app, and I could not find some doc about the difference between these two services. I know that mobiledata extends the cloudant, but what are the pro and cons? In my case I need to have more control above the data, for example create views (I could not create In mobiledata service) etc

So, do you know what the main divergences between these two services? When to use mobile data or cloudant?

Thanks


Solution

  • There are three ways to use Cloudant on Bluemix from an iOS application:

    1. Use Cloudant directly by adding it as a service to your application.
    2. Use MobileFirst for iOS, the Data part specifically (currently beta).
    3. Use the Mobile Data cross-platform SDK.

    (1) and (2) allow you to use views within Cloudant by adding them via either the Cloudant dashboard or by using the Cloudant HTTP API.

    (3) is a service which uses Cloudant in the background, but provides no direct access to your data using the Cloudant HTTP API; you're limited to the services exposed by the SDK. Therefore you can't use many Cloudant features like views or Cloudant Query. Think of Cloudant more as an implementation detail here, rather than an exposed component as it is for (1) and (2).

    Therefore, (1) or (2) is probably more suitable for your needs as you mention wanting to use views.