Code Monkey home page Code Monkey logo

Comments (3)

crablar avatar crablar commented on August 9, 2024

We need to track how long each user makes it through each episode.

This is a useful signal for how interested a given user is in a given topic. Once we have it implemented, we can do collaborative filtering in a way that doesn't require upvoting.

One way is to log the farthest timestamp that a user makes it to. Then, divide that by the length of the episode. That will give you a double representing the percentage of the episode that the user listened to.

First implementation that comes to my mind: every time a user stops an audio stream

  1. log the timestamp they stop at
  2. divide that timestamp by total episode length
  3. save that to user database and make a new field { [ episode_id : 1312, percentage_listened : .8221] }

What is the right way to implement this?

from software-engineering-daily-api.

TheHollidayInn avatar TheHollidayInn commented on August 9, 2024

We are implementing this on the apps, but my intention was local storage.

If you just want do know for analytics purposes, we currently track play/pause events into firebase analytics. I's possible to add the userId to users if we aren't already. Firebase has a SQL query api that we can use for machine learning and exports.

If we want the data ourselves this sounds like a good use case to link up Kafka -> InfluxDB/Pig/Map Reduce

from software-engineering-daily-api.

andrewmarklloyd avatar andrewmarklloyd commented on August 9, 2024

Sounds like #47 is becoming more relevant

from software-engineering-daily-api.

Related Issues (20)

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.