Git Product home page Git Product logo

Comments (3)

BioversityCostaRica avatar BioversityCostaRica commented on May 29, 2024

Hi @johndpope

To exclude some users that you don't care about you can link them to a criterion of exclusion. For example:

my_actor = Actor('mark', 'person')
exclusion_list = Object('excluded_persons', 'exclusion_list')
exclusion_activity = Activity('excluded', my_actor, exclusion_list)
my_manager.add_activity_feed(exclusion_activity)

But then you need to write your own aggregators that exclude persons that are part of the exclusion list.

Everything is managed by ES queries. Feeds are basically connections between entities so you can write queries to satisfy your needs. Have a look at the "unaggregated" aggregator so you can write a "Relevant" aggregator to separate users.

from elasticfeeds.

johndpope avatar johndpope commented on May 29, 2024

imagine the pool is hundreds of millions of users - like telegram. exclusion not going to scale. I just want to have feeds from a small circle of my friends (that I've approved) exactly like facebook. I had this working before in the above ruby on rails project. I might have to persevere with that one. thanks for your help.

If there was in interest to update the model - and re-implement in python

here's social stream schema
https://github.com/ging/social_stream/wiki/Social-Stream-Base-database-schema

from elasticfeeds.

qlands avatar qlands commented on May 29, 2024

Well, with ES you can scale it to anything since is “fan-out on read”. If you follow a number of friends you can just say that "A" follows/is_friends_with "B". After a while, "A" will have 10,0000 friends so in a “fan-out on read” with ES you can write an aggregator to satisfy your needs and have scalable notifications in seconds.

from elasticfeeds.

Related Issues (8)

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.