Hello,
I have a live exchange rate tracking app. Users request to have a price alert option so if the price rises or falls above/below a specific price , they want to get a notification.
I can think of 2 ways :
1) Check price on background and alert ( this is not good for me as I have many users using the app , this will overload the server )
2) maybe send the alarms set by users to a database , check them on the server every 5 seconds , send notification using firebase to user. This seems more logical.
Is there any better way you can suggest ? If not , is the second option is good enough to achieve this ? I would like to hear your ideas.
Thanks
I have a live exchange rate tracking app. Users request to have a price alert option so if the price rises or falls above/below a specific price , they want to get a notification.
I can think of 2 ways :
1) Check price on background and alert ( this is not good for me as I have many users using the app , this will overload the server )
2) maybe send the alarms set by users to a database , check them on the server every 5 seconds , send notification using firebase to user. This seems more logical.
Is there any better way you can suggest ? If not , is the second option is good enough to achieve this ? I would like to hear your ideas.
Thanks