1.0.1 • Published 4 years ago

play-history-service v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

Play History Service

Overview

This service has a REST endpoint which the app calls to record the content and playlists recently played by the user. We need to track this server-side so that:

  • When a user starts a new session in the app and opens a playlist, they can see which content they have already consumed, and resume any partially consumed content from where they left off.
  • The app can render playlist History view to the user, enabling them to easily dive back into any playlists they recently played.

Resources

DynamoDB

This service owns two DynamoDB tables:

  • content-usage has a row for each content item a user has played.
  • playlist-usagehas a row for each playlist a user has played.

Both tables only contain the current state of play. So- for example- if a user partially watches a video, we will create a row in the content-usage table. When they subsequently return to the app and resume the video, we will overwrite that row with the latest state of the video.