Azure

25th June, 2024

Blend Tracker

Architecture Diagram

AuthenticateAuthenticateProcess Blend SongProcess Blend SongProcess Blend PlaylistProcess Blend PlaylistWebsiteWebsiteSpotify OAuthSpotify OAuthAfter Spotify OAuthAfter Spotify OAuthProcess Blend Playlist QueueProcess Blend Playlist QueueService Bus IntegrationService Bus IntegrationEnqueue MessageEnqueueMessageEnqueue Message for each SongEnqueueMessage foreach SongUsers TableUsers TableCheck if user is part of the blendCheck if user is partof the blendProcess Request TableProcess Request TableStore process request documentStore process request documentSongs TableSongs TableCreate / Update song documentCreate / Updatesong document

Serverless Functions

Authenticate

Trigger

  • Http Get

Outputs

  • Cosmos DB (Create / update user document)
  • Service Bus (process-blend-playlist)
  • Http response

Process Blend Playlist

Trigger

  • Service Bus (process-blend-playlist)

Outputs

  • Cosmos DB (Create / update song document)
  • Service Bus (process-blend-song)

Process Blend Song

Trigger

  • Service Bus (process-blend-song)

Inputs

  • Cosmos Db (Get existing song)

Outputs

  • Cosmos DB (Create / update song document)