Giter Club home page Giter Club logo

local-db-cache-retrofit-rest-api-mvvm's Introduction


In this course you'll learn how to build a local database cache with SQLite and Room. The cache retrieves data from a REST API using Retrofit2. Architecture is MVVM.

Here's the specifics of what you will see in the course:

  1. Caching data for when the network goes offline
  2. Reading cached data when the network is down
  3. Custom SQLite queries using Room
  4. Customizing the cache (how long data will live in the cache)
  5. How Retrofit caching works
  6. Why SQLite and Room is better for caching than Retrofit
  7. How to design a database cache
    • There is no "one size fits all"
    • Retrofit is better for some things but room is better for others
  8. How Glide caching works
  9. Glide RecyclerView Preloader (Customizing how many list items get cached)
  10. Dealing with Network Errors and slow network speeds
  11. OkHttp Network Timeouts
  12. Converting Retrofit Calls to LiveData (Call Adapters)
  13. And much more...

Architecture Diagram



Contributors

  1. gmiklay
    1. Converted to AndroidX: branch: pr/1

local-db-cache-retrofit-rest-api-mvvm's People

Contributors

mitchtabian avatar ohmysaudi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.