0
votes

I recently started working with cloud code for my social iOS app, in my Parse Server which is deployed in a Digital Ocean droplet.

Now, what I want to know is, whether using too much cloud functions instead of native swift, is good practise or not. So far, i'm using cloud functions for liking/unliking photos, posting/deleting comments and following/unfollowing people. Now, I'm considering to put the feed content retrieval into the cloud as well.

In addition I'm using some triggers too. For example when a photo is deleted, it goes in the "afterDelete" function and deletes all notifications/likes/comments associated to that photo.

So, that's what I want to know. Should I reduce the amount of cloud code I'm using, or maximise it?

1

1 Answers

1
votes

Let the server do the heavy things, bro.

I am using Cloud code for almost every function of my app.

AFAIK, trigger doesn't affect the performance and using cloud code is a very good practice.

You don't need to give update for your logical changes. More work on server, less work on mobile.

IMHO, maximize the use of cloud code.

You might want to check this slides