On Monday, October 24, 2016 at 8:33:55 AM UTC-7, Peter Damoc wrote:
>
> I'm more interested in how one would solve this in a multilayer system 
> where the actual remote persistence is abstracted from the app. 
>
> The actual remote persistence might be implemented with REST, or it might 
> be some kind of websockets thing.
> It might involve a SQL database, or maybe a NoSQL database. 
> It might be something like Datomic. 
>
> I'm interested in how would one implement this abstraction, this *separation 
> of concerns*. 
>

Could you provide more details of what you are looking for? Or some sample 
code?

Are you interested in how one would abstract away the data consumption? 
What I mean by that is: The library user simply requests data and the 
library determines if it needs to make an API call or if it can just get 
the data from localStorage.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to