sucese / android-open-source-project-analysis

Android open source project analysis. Note: The project has been moved to https://github.com/BeesAndroid/BeesAndroid.
Apache License 2.0
2.76k stars 509 forks source link

How does MVVM work on AndroidStudio? #27

Open carlosvargas31 opened 4 years ago

carlosvargas31 commented 4 years ago

Hello, I am curious, I have been researching software architectures for a social app for Android devices and I found out that there is MVVM that is similar to the well-known MVC ....... But my question is the following, IF there is a database already created and configured in Postgresql from an external computer with DOCKER virtual machine (Where the database is stored), ¿What architecture fits best to develop a Social app as Twitter? I think of two that would be Client - Server or MVVM, so ¿Which architecture will work best, remember that it is an external database that is in a virtual machine?

KRE-95 commented 1 year ago

Hi, Both Client-Server and MVVM architectures can work with a database stored in a Docker virtual machine. For a social app like Twitter, the Client-Server architecture is a common choice as it separates the frontend from the backend, ensuring scalability and security. However, MVVM architecture is more suitable for complex and large-scale applications, as it separates the business logic from the user interface for easier maintenance and testing. For your social app, a client-server architecture with a RESTful API is recommended, as it allows for easy integration with different client platforms and provides scalability and security. You can use frameworks like Spring Boot or Django to develop the backend and libraries like Retrofit or Volley to consume the RESTful API from the Android app.