Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9072099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:05:30+00:00 2026-06-16T18:05:30+00:00

I’m currently developing an app using Parse and I’d like to start abstracting their

  • 0

I’m currently developing an app using Parse and I’d like to start abstracting their SDK as I don’t know if and when I’m going to replace their backend with another by other provider or by ours.

Another motivation is separating issues: all my apps code will use the same framework while I can just update the framework for any backend specifics.

I’ve started by creating some generic classes to replace their main classes. This generic classes define a protocol that each adapter must implement. Then I’d have a Parse adapter that would forward the calls to the Parse SDK.

Some problems I can predict is that this will require a lot of different classes. In some cases, e.g. Parse, they also have classes for dealing with Facebook. Or that the architecture in some parts can be so different that there’ll be no common ground to allow something like this.

I’ve actually never went so far with Stackmob as I am with Parse so I guess the first versions will share Parse’s own architecture.

  • What are the best practices for something like this?
  • Is there something like this out there? I’ve already searched without success but
    maybe I’m looking in the wrong direction;
  • Should I stick with the Parse SDK just making sure that the code using
    it is well identified and contained?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:05:31+00:00Added an answer on June 16, 2026 at 6:05 pm

    I’m the Developer Evangelist at Applicasa.
    We’ve built a cool set of tools for mobile app developers, part of which includes offering a BaaS service that takes a bit different approach compared to Parse, StackMob, and others. I think it provides a helpful perspective for tackling the problem of abstracting away from third-party SDK APIs in a way that would allow you to replace backends by other providers or your own.
    /disclaimer

    Is there something like this out there? I’ve already searched without success but maybe I’m looking in the wrong direction

    While there are other BaaS providers out there that provide similar and differentiating features, I’m not aware of a product out there that completely abstracts away third-party providers in an agnostic manner.

    What are the best practices for something like this?

    I think you already show to be on a solid footing for getting started in the right direction.

    First, you’re correct in predicting that you’ll end up with a number of different classes that encapsulate objects and required functionality in a backend-agnostic way. The number, of course, will depend on what kind of abstraction and encapsulation you’re going after. The approach you outline also sounds like the way I’d begin such a project, as well—creating classes for all the objects my application would need to interact with, and implementing custom methods on those classes (or a base class they all extend) that would do the actual work of interacting with a backend provider.

    So, if I was building an app that, for example, had a Foo, Bar, and Baz object, I’d create those classes as part of my internal API, with all necessary functionality required by my app. All app logic and functional operations would only interact with those classes, and all app logic and functionality would be data backend-agnostic (meaning no internal functionality could depend on a data backend, but the object classes would provide a consistent interface that allowed operations to be performed, while keeping data handling methods private).

    Then, I’d likely make each class inherit from a BaseObject class, which would include the methods that actually talked to a data backend (provider-based or my own custom remote backend). The BaseObject class might have methods like saveObject, getById:, getObjects (with some appropriate parameters for performing object filtering/searching). Then, when I want to replace my backend data service in the future, I’d only have to focus on updating the BaseObject class methods that handle data interaction, while all my app logic & functionality is tied to the Foo, Bar, and Baz classes, and doesn’t actually care how get/save/update/delete operations work behind the scenes.

    Now, to keep things as easy on myself as possible, I’d build out my BaaS schema to match internal object class names (where, depending on the BaaS requirements, I could use either an isKindOfClass: or NSStringFromClass: call). This means that if I was using Parse, I’d want to make my save method get the NSStringFromClass: of the class name to perform data actions. If I was using a service like Applicasa, which generates a custom SDK of native objects for data interactions, I’d want to base custom data actions on isKindOfClass: results. If I wanted even more flexibility than that (perhaps to allow multiple backend providers to be used, or some other complex requirement), I’d make all the child classes tell BaseObject exactly what schema name to use for data operations through some kind of custom method, like getSchemaName. I’d probably define it as a BaseObject method that would return the class name as a string by default, but then implement on child classes to customize further. So, the inside of a BaseObject save method might look something like this:

    - (BOOL) save {
      // call backend-specific method for saving an object
      BaasProviderObject *objectToSave = [BaasProviderObject
                                          objectWithClassName:[self getSchemaName]];
    
      // Transfer all object properties to BaasProviderObject properties
      // Implement however it makes the most sense for BaasProvider
    
      // After you've set all calling object properties to BaasProviderObject
      // key-value pairs or object properties, you call the BaasProvider's save
      [objectToSave save];
    
      // Return a BOOL value to indicate actual success/failure
      return YES;  // you'll want this to come from BaaS
    }
    

    Then in, say, the Foo class, I might implement getSchemaName like so:

    - (NSString) getSchemaName {
      // Return a custom NSString for BaasProvider schema
      return @"dbFoo";
    }
    

    I hope that makes sense.

    Should I stick with the Parse SDK just making sure that the code using it is well identified and contained?

    Making an internal abstraction like this will be a fair amount of work up front, but it will inevitably offer a lot of flexibility to implement as you wish. You can implement CoreData, reject CoreData, and do whatever you’d like really. There are definite advantages to building internal app logic/functionality in a data-agnostic way, even if it’s to allow yourself the ease of trying out another BaaS in, say, a custom branch of your app code to see how you like another provider (or to give you an easy route to working with developing your own data solution).

    I hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using JSon response to parse title,date content and thumbnail images and place
I've got a string that has curly quotes in it. I'd like to replace
I am using the SimpleRSS gem to parse a WordPress RSS feed. The only
We're building an app, our first using Rails 3, and we're having to build
Does anyone know how can I replace this 2 symbol below from the string
I am using Paperclip to handle profile photo uploads in my app. They upload
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am using jsonparser to parse data and images obtained from json response. When
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.