<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Questions about brainCloud Friends and Social Leaderboard behavior]]></title><description><![CDATA[<h2>Context</h2>
<p dir="auto">Hello brainCloud team,</p>
<p dir="auto">We are designing a follow/friend system for our game and would like to confirm a few details before implementation.</p>
<p dir="auto">Our intended model is:</p>
<ul>
<li>We maintain our own <code>FOLLOW</code> Custom Entity as the source of truth.</li>
<li>A game “friend” is defined only when two users follow each other mutually.</li>
<li>When mutual follow is established, we plan to call <code>FriendService.AddFriends([targetProfileId])</code>.</li>
<li>When either side unfollows, we plan to call <code>FriendService.RemoveFriends([targetProfileId])</code>.</li>
<li>We may later use brainCloud Friends as an optimized source for social leaderboards.</li>
</ul>
<h2>Questions</h2>
<h3>1. Friend Relationship Direction</h3>
<p dir="auto">Are <code>AddFriends</code> and <code>RemoveFriends</code> bidirectional for internal brainCloud friends?</p>
<ul>
<li>If user A calls <code>AddFriends([B])</code>, will B also see A in <code>ListFriends("brainCloud")</code>?</li>
<li>Will both A and B see each other in <code>GetSocialLeaderboard</code> results if they both have leaderboard scores?</li>
<li>If A calls <code>RemoveFriends([B])</code>, is the friend relationship removed from both users?</li>
</ul>
<h3>2. Idempotency</h3>
<p dir="auto">Are <code>AddFriends</code> and <code>RemoveFriends</code> idempotent?</p>
<ul>
<li>What happens if <code>AddFriends([B])</code> is called when A and B are already friends?</li>
<li>What happens if <code>RemoveFriends([B])</code> is called when they are not friends?</li>
</ul>
<h3>3. Consistency and Caching</h3>
<p dir="auto">Are friend changes immediately visible?</p>
<ul>
<li>After <code>AddFriends</code> or <code>RemoveFriends</code>, should <code>ListFriends("brainCloud")</code> and <code>GetSocialLeaderboard</code> reflect the change immediately?</li>
<li>Or is there any eventual consistency or caching delay we should expect?</li>
</ul>
<h3>4. Friend Count Limits</h3>
<p dir="auto">Is there a hard or recommended limit for the number of brainCloud friends per user?</p>
<ul>
<li>We could not find a documented hard cap.</li>
<li>Are there practical performance limits we should design around?</li>
</ul>
<h3>5. <code>GetSocialLeaderboard</code> Behavior With Many Friends</h3>
<p dir="auto">How does <code>GetSocialLeaderboard</code> behave when a user has many friends?</p>
<ul>
<li>Does it return all recognized friends plus self, with no paging or limit?</li>
<li>Is there any hidden maximum result count or payload limit?</li>
<li>Are pacers included in this result as well?</li>
</ul>
<h3>6. Recommended API for Top-N Friend Leaderboards</h3>
<p dir="auto">What is the recommended API for a top-N friends leaderboard?</p>
<ul>
<li>Can we use <code>GetMultiSocialLeaderboard([leaderboardId], leaderboardResultCount, replaceName)</code> with a single leaderboard ID?</li>
<li>Is <code>leaderboardResultCount</code> applied after social filtering and score sorting?</li>
<li>Is there a maximum allowed value for <code>leaderboardResultCount</code>?</li>
<li>Is this API preferred over <code>GetSocialLeaderboard</code> when we only need the top 50 friends?</li>
</ul>
<h3>7. Social Leaderboard Pagination</h3>
<p dir="auto">Is regular pagination supported for social leaderboards?</p>
<ul>
<li>We found <code>GetGlobalLeaderboardPage</code> for global leaderboards, but did not find an equivalent offset/page API for social leaderboards.</li>
<li>Is there any supported way to retrieve friend leaderboard entries 51-100, 101-150, etc., without requesting all prior entries?</li>
</ul>
<h3>8. Billing and API Counts</h3>
<p dir="auto">Is <code>GetSocialLeaderboard</code> counted as one API call regardless of the number of friends returned?</p>
<ul>
<li>Are there additional billing or performance considerations based on response size or number of leaderboard entries returned?</li>
</ul>
<h3>9. Recommended Usage</h3>
<p dir="auto">Are brainCloud Friends suitable as an app-specific “mutual follow friend cache”?</p>
<ul>
<li>We will not use brainCloud Friends for unrelated gameplay relationships.</li>
<li>We plan to keep <code>FOLLOW</code> as our source of truth and use brainCloud Friends only as a derived mirror/cache for mutual follow relationships.</li>
<li>Does this align with recommended brainCloud usage?</li>
</ul>
<p dir="auto">Thank you.</p>
]]></description><link>https://forums.getbraincloud.com/topic/359/questions-about-braincloud-friends-and-social-leaderboard-behavior</link><generator>RSS for Node</generator><lastBuildDate>Fri, 29 May 2026 17:05:07 GMT</lastBuildDate><atom:link href="https://forums.getbraincloud.com/topic/359.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 May 2026 08:17:14 GMT</pubDate><ttl>60</ttl></channel></rss>