makiftutuncu/MuezzinAPI

Persistance is Required

Closed this issue · 0 comments

A basic 2-way persistence must be implemented to keep the collected data as the API is being used.

Reading should follow:

  1. Get from cache
  2. Get from database
  3. Get from web

Writing should follow:

  1. Write to database
  2. Write to cache

When there is a get from web, there MUST be write.

Since I'm planning to deploy this to Heroku, database configuration wil follow:

  • MySQL on local
  • Postgres on Heroku

Play's anorm can seamlessly work with both, so it shouldn't be an issue.