[Observable or not] What's the best architecture to adopt?


#1

Hello,

I’m working on a mobile application in charge of downloading a zip file, unziping it then sending the data from the file to a peripheral via Bluetooth low energy.

I master all the individual tasks but I want to create a provider to give each of my pages the ability to use this functionality.

The whole operation can be long (up to 10 minutes).

What do you recommend me?
A service with its own observable or “something” else, but in this case what?
What can I use as a model to create an observable?

Thank you by advance.


#2

I would recommend reading about the various flavors of Subject to see which best fits your design.


#3

Thank you, I will have a look.