How to limit parse.com requests

Brent, Part 6 is now up! This time it’s discussing using Parse as a CDN:

http://www.ladeezfirstmedia.com/2013/10/03/tutorial-part-6-use-parse-com-as-a-cdn-for-your-corona-sdk-app/

best,

Jen

Thanks Jen!

It’s now linked up in Corona University:

http://www.coronalabs.com/resources/tutorials/communication-and-social-media/

Keep 'em coming. :slight_smile:

Brent

hi, *blush* thanks for the shout-outs. Just passing thru and available if you need any help on the Parse stuff. It really is a fantastic service.

One thing to optimize your api requests (which will indeed start adding up, although the ceiling is pretty high even for the free account) is to chain your queries. I think I need to write a tutorial on this…my sample code ought to be refactored so that, for example, once you login, we don’t make a second request to send an email but rather chain the user registration with the email sending process so that the whole thing is done in one fell swoop on the Parse side, rather than as another network request.

Another thing we ought to be leveraging is Parse’s brand spankin’ new scheduler tool. So your scheduler could be set to run on a daily job on the Parse side to mark any of your files that have changed; your query to fetch the file then could simply grab the file(s) marked as changed automatically.

https://www.parse.com/docs/cloud_code_guide#jobs

I think that the scheduler doesn’t chew up API requests, not 100% sure. Looks like I need to do some more writing :slight_smile:

Jen

Hi Jen,

Can you please let me know when you post a “Part #6” to your Parse.com tutorial series, if you plan to write one? I’ve been linking these up in Corona University, and I don’t want to miss if you add another one before I notice it being there.

http://www.coronalabs.com/resources/tutorials/communication-and-social-media/

Thanks,

Brent

I agree with Jen that using something like Parse’s cloud code helps save on requests. I sometimes do up to 4-5 things in a single request before returning to my app. I took a lot of bits and moved it to the cloud. However it will still cost you at least one call.

I would go with something like ksan suggests. Just put a text file on your webserver. Download it as often as needed. You can still use Parse as your user database. The key advantage of these cloud services is they scale to the needs of your apps. If scalability is not a huge concern, doing your own database solution may be better.

Brent, Part 6 is now up! This time it’s discussing using Parse as a CDN:

http://www.ladeezfirstmedia.com/2013/10/03/tutorial-part-6-use-parse-com-as-a-cdn-for-your-corona-sdk-app/

best,

Jen

Thanks Jen!

It’s now linked up in Corona University:

http://www.coronalabs.com/resources/tutorials/communication-and-social-media/

Keep 'em coming. :slight_smile:

Brent