<分区>
什么是最好的架构? 我必须使用 Firebase、Mobile (android/ios) 和 Web(angular)。我想构建一个 API,以便从移动和 Web 使用服务,但我们没有 Firebase 后端。有什么想法吗?
<分区>
什么是最好的架构? 我必须使用 Firebase、Mobile (android/ios) 和 Web(angular)。我想构建一个 API,以便从移动和 Web 使用服务,但我们没有 Firebase 后端。有什么想法吗?
最佳答案
对于您的情况,如果您想避免紧密耦合的代码,那么我建议您查看 Robert Cecil Martin 的“Clean Architecture”。
Fernando Cejas 写了一篇关于它的好文章,并与 MVP 结合使用以将表示与业务逻辑分开。可以引用他的文章,给出链接:
Architecting Android…The clean way?
如果它看起来更复杂并且您的代码库很小,您仍然可以使用 MVC 来满足您的要求。
希望有所帮助。
关于android - Firebase、android 和后端的最佳架构是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40121122/