Amitkys

Data Persistence Architecture

Overview of how data is persisted in SabnamAI.

Persistence in SabnamAI

Persistence were important concern when students attempting a test series.

We must have to ensure that test series, questions and user attempts are stored reliably
and remain consistent on:

  • Page Refresh
  • Internet connection lost
  • Closing & Reopen Browswer
  • Another/Different Device

The Response that I care.

{
  "responses": [
    {
      "id": "cmkkxl7zj001w42czgk45r708",
      "attemptId": "cmkkxl7z7001k42czda9hb795",
      "questionId": "cmkkxl7xs000r42cz42nt41qy", // this is question id, which have question and option
      "userAnswer": "B",
      "timeTaken": 75
    }
  ]
}

On this page