Giter Site home page Giter Site logo

Too many updates? about stream-laravel HOT 6 CLOSED

gelinger777 avatar gelinger777 commented on September 25, 2024
Too many updates?

from stream-laravel.

Comments (6)

JimmyPettersson85 avatar JimmyPettersson85 commented on September 25, 2024

Hi @gelinger777, do you have an appID? It's hard to do any investigation based on this info alone.

from stream-laravel.

gelinger777 avatar gelinger777 commented on September 25, 2024

@JimmyPettersson85 AppID is 1244128

from stream-laravel.

JimmyPettersson85 avatar JimmyPettersson85 commented on September 25, 2024

Hi! The bulk of your updates (> 1000) comes from unfollowing feeds which is a heavy write operation on our end and "costs" 25 updates per unfollow.

The number of feed updates depends on how many activities you publish via the API and the number of users who follow those feeds. If you add an activity to a feed that is followed by 50 other feeds, this will trigger 51 feed updates. The only exception is unfollows. The unfollow operation is very heavy on our infrastructure and an additional 25 feed updates are billed for every unfollow operation.

https://support.getstream.io/hc/en-us/articles/360041929653-What-constitutes-an-update-Feeds

from stream-laravel.

gelinger777 avatar gelinger777 commented on September 25, 2024

@JimmyPettersson85 I made only like 20 follow/unfollow operations. With one single user as "doer" .

No other user was following the user who was performing the action. No other user was following another user. I have just installed your example.

from stream-laravel.

gelinger777 avatar gelinger777 commented on September 25, 2024

Right now I have in my config following setup

    'news_feeds' => [
        'timeline' => 'timeline',
        'timeline_aggregated' => 'timeline_aggregated',
        'event'=>'event',
    
        'venue'=>'venue',
        
    ]

Right now we have following feeds in the Feed Group Sections
image

From what I understand from Logs, each time I click on Follow or Unfollow , laravel sends Follow and Unfollow on all Feed Groups in the config section. Then it makes sence the quantities I experience.

Maybe would be better if I explain what we want to achieve and you give some advise.

We have user profiles ,artist profiles , events page in our app. An ordinary user can follow those pages, and have a newfeed. In the newfeed we would like to Show upcoming events which friends(read followed users by this particular user) have saved in their event list.

So I guess we have to change the config to be

 'news_feeds' => [
        'timeline' => 'timeline',
        'timeline_aggregated' => 'timeline_aggregated',
  
        
    ]

So USER 1 follow User 2 on timeline in timeline_aggregated ?

Then what to do with Events ?

USER 2 follows Event 3
User 2 Follows Event 4

Then Event 3 and 4 will show up in newfeed aggregated?

Sorry I am a bit confused with how the whole should work .

from stream-laravel.

JimmyPettersson85 avatar JimmyPettersson85 commented on September 25, 2024

Hey @gelinger777

I'm sorry but I can't help you with integration questions here. My advise would be to read up on the documentation and maybe play around with the pure PHP SDK for starters to get more of an idea of whats going on. You are nowhere near reaching the limits on your account.

If you hit a brick wall there's always the official support channels to reach out to. Good luck!

from stream-laravel.

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.