<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Arjun Bhushan on Medium]]></title>
        <description><![CDATA[Stories by Arjun Bhushan on Medium]]></description>
        <link>https://medium.com/@arjun.bhushan2?source=rss-fcbf1a3edbb9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*pjupS9HuJN-cr-n0</url>
            <title>Stories by Arjun Bhushan on Medium</title>
            <link>https://medium.com/@arjun.bhushan2?source=rss-fcbf1a3edbb9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:18:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arjun.bhushan2/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[✉️ You Get an Email]]></title>
            <link>https://medium.com/xp-fantasy/%EF%B8%8F-you-get-an-email-34c1f1e627a0?source=rss-fcbf1a3edbb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/34c1f1e627a0</guid>
            <category><![CDATA[esport]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[mail]]></category>
            <category><![CDATA[fantasy]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Arjun Bhushan]]></dc:creator>
            <pubDate>Mon, 17 May 2021 15:11:04 GMT</pubDate>
            <atom:updated>2022-06-15T19:14:46.275Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*kbLfgmfUgiLCdDj6A9Il8w.png" /><figcaption>You All Get Emails!</figcaption></figure><p>Hey everyone,</p><p>This is Arjun tuning back in after the last post. You may be wondering, who let this guy write <strong>ANOTHER</strong> post? Well, if there is anyone to blame, it’s Justin. As part of our bet, I am slated to write another blog post since I didn’t finish our mobile app on time (in other news, the app <em>has </em>been submitted for approval to both the Apple App store and the Google Play store — wish us luck). I hope you enjoy the two upcoming engineering blogs!</p><p>For today’s topic, we’ll be discussing email delivery — I know, riveting — and how to get them out of your end-recipients’ spam folders and into their inboxes.</p><p>🤷<strong> Why email? </strong>🤷</p><p>At XP Fantasy, we use emails for three reasons — account verification, account recovery, and email notifications.</p><p>✅ Account Verification</p><p>To verify a new user’s account, we send a seven-digit numeric code to each newly registered user’s email and require them to enter the code on our site before allowing any non-GET requests to be performed. Verification is necessary as it allows a means for a user to perform account recovery, a direct method of contacting winners to claim their prizes, and to prevent simple bots from auto-creating thousands of accounts to win contests.</p><p>👤 Account Recovery</p><p>As mentioned in the section above, we use emails to perform account recovery. As the only verified method of contacting a user outside of the platform is through email, we send a 7-digit numeric code to allow users to set a new password.</p><p>🔔 Notifications</p><p>The last use case we have for emails are for notifications. As for why we need them, here is a quote from Richard’s <em>Notifications At Scale</em> <a href="https://medium.com/xp-fantasy/notifications-at-scale-4e85da3aa440">post</a>.</p><blockquote>“We wanted to build a system that would let users know when <strong>(a) </strong>they have received a friend request or, <strong>(b)</strong> a friend has accepted their friend request, to make the experience for people who want to connect with other users as seamless as possible. Our users can now also be notified when there are important contests starting.”</blockquote><p>🚫<strong> How to avoid the spam folder? </strong>🚫</p><p>Once we realized that we needed to send emails, we then had to figure out how to send them.</p><p>To begin, we (logically) sent emails from our GSuite account (support@xpfantasy.com). After testing with a naive implementation with <a href="https://docs.spring.io/spring-framework/docs/3.2.x/spring-framework-reference/html/mail.html">Java Spring Mail</a>, emails seemed to be getting delivered.</p><p>The only issue however, was that although the emails were getting delivered, they were going straight to our users’ spam folder, which I thought was odd since I was getting them perfectly fine while using temporary emails generated from <a href="https://temp-mail.org/en">tempmail</a>.</p><p>After doing a bit of research, I discovered that spam filters were smarter than I thought. Before an email can be put into your inbox, the email has to be deemed “safe”. A couple methods used to determine the legitimacy of an email is to verify that <em>(i) </em>the email sender isn’t being “spoofed” — email authentication — and <em>(ii) </em>that the sender has a high sender reputation.</p><p>🔑 Email Authentication</p><p>Thankfully email authentication is a solved problem. <a href="https://sendgrid.com/blog/what-is-dmarc/">DMARC</a> (Domain-based Message Authentication, Reporting &amp; Conformance) is the industry-wide practice for verifying that an email is in fact being sent by your domain. By putting a DMARC record on our domain, emails sent from registered email addresses are verified. For example, emails sent from our server as support@xpfantasy.com are authenticated by our domain xpfantasy.com. This prevents “spoofing” (where a third-party pretends to be support@xpfantay.com and sends phishing emails to our users).</p><p>📈 Sender Reputation</p><p>Although email authentication is important to getting emails validated, another piece of the puzzle is “sender reputation”. Each mailbox provider (Gmail, Outlook, etc.) has their own internal determination of how “reputable” a domain and IP are. This reputation is quantified and is called the <em>sender’s reputation</em>. Much like how your credit score determines whether you can get a mortgage on a house, your sender reputation determines whether an email goes into the recipient’s inbox, junk folder, or is blocked outright. Like missing a credit card bill decreases your credit score, any bounced emails make your score go down. In contrast, whenever your emails are successfully delivered and clicked through, your score goes up. Therefore, to ensure that our sender reputation is “good”, we only send emails to verified email addresses since they clearly exist and are active. Secondly, since sender reputation is tied to a sender’s domain and IP address, it is critical that your servers aren’t being hosted with other users that could potentially decrease the reputability of your IP. We avoided that issue by hosting our domain on a dedicated IP address in AWS.</p><p>❗️<strong> Technical difficulties </strong>❗️</p><p>Now that email authentication and sender reputation have been tackled, the last part is actually sending the email.</p><p>Again, we went back to sending emails from our GSuite account (support@xpfantasy.com) with <a href="https://docs.spring.io/spring-framework/docs/3.2.x/spring-framework-reference/html/mail.html">Java Spring Mail</a>. Now, while some of our emails were still getting caught by the spam filter, the majority of them were getting to our user’s inboxes! This lasted until we got to 400 users.</p><p>At this point, we experienced two issues. The first being GSuite authentication and the second being email sending limits.</p><p>🛑 GSuite Authentication</p><p>To send a general notification, we loop through each user and send the message along with a unique unsubscribe link. As recommended by Java Spring Mail, we create a session for each individual email and send the email through the session. The problem however, was that we were getting inconsistent errors in regard to “Too many login attempts”. Meaning that there was an undocumented rate limiter with respect to time when authenticating an email address.</p><p>👮🏻 Email Sending Limits</p><p>As we have email notifications for account verification, account recovery and general notifications, we found that we were extremely close to hitting GSuite’s email limit of <a href="https://support.google.com/a/answer/166852?hl=en">2,000 </a>messages per day.</p><p>💡<strong> Solutions </strong>💡</p><p>At this point, we had a problem. As our number of users grew, we continued to rapidly approach GSuite’s sending limits and, without proper timeouts in place, would continue to hit GSuite’s authentication rate limiter.</p><p>So, we had two options. The first was custom building an email sending service which received email requests from our other services and the second was outsourcing our problem to SaaS products such as Sendgrid, SES, or Mailgun.</p><p>In regards to creating an email sending service, we could manage to avoid the GSuite authentication rate limiter by having a pool of GSuite accounts that we rotated between to avoid authenticating too quickly. Furthermore, by using a pool of GSuite accounts, we could also increase our email limit by 2,000 emails per account. The only downside would be having to manage the number of accounts, and the cost of $7.80 CAD/user/month.</p><p>In contrast, using a SaaS product such as Sendgrid, SES, or Mailgun would save engineering time to build such a service and we would have direct communication with support engineers. For this reason, we decided to go with Sendgrid. And, as a happy coincidence, we learned that Sendgrid provides a free year of email sending to startups. Before committing to Sendgrid, we evaluated whether they were truly better than the current system we had in place for avoiding spam filters across four criteria — authentication management, dedicated IP, time-based rate limiting, and the monetary cost to us.</p><p>In our evaluation, we found the following:</p><ol><li>Sendgrid manages authentication by adding their own DMARC records onto our domain.</li><li>Sendgrid provides a dedicated IP for our emails to ensure that our sender reputation is not affected by other users on their service.</li><li>Sendgrid does not have any time-based rate limiting in place to prevent us from sending thousands of messages in quick succession.</li><li>Since Sendgrid has a cost function regarding the number of emails you send, they essentially do not have any email sending limits.</li></ol><p>In summary, since we would be able to tackle all of the technical hurdles discussed in this post by moving to Sendgrid <em>and</em> we received a free year of Sendgrid’s service, the decision to switch over was a no-brainer.</p><p>🎉 <strong>Check us Out! </strong>🎉</p><p>If you haven’t already, check us out at <a href="https://xpfantasy.com/">xpfantasy.com</a> and stay current with all things XP Fantasy by joining our <a href="https://discord.gg/7B8qPaJTp7">community discord</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34c1f1e627a0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/xp-fantasy/%EF%B8%8F-you-get-an-email-34c1f1e627a0">✉️ You Get an Email</a> was originally published in <a href="https://medium.com/xp-fantasy">XP Corp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built XP Fantasy]]></title>
            <link>https://medium.com/xp-fantasy/how-i-built-xp-fantasy-39aeae0cd276?source=rss-fcbf1a3edbb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/39aeae0cd276</guid>
            <category><![CDATA[esports-market]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[league-of-legends]]></category>
            <category><![CDATA[fantasy]]></category>
            <dc:creator><![CDATA[Arjun Bhushan]]></dc:creator>
            <pubDate>Mon, 15 Feb 2021 20:18:52 GMT</pubDate>
            <atom:updated>2022-06-15T19:14:24.983Z</atom:updated>
            <content:encoded><![CDATA[<h3>How We Built XP Fantasy</h3><p><strong>What is XP Fantasy</strong></p><p>XP Fantasy is a daily fantasy esports website. To understand exactly what that means, read the <a href="https://medium.com/xp-fantasy/6-months-into-my-startup-xp-fantasy-8448dbf91804">article</a> my co-founder, Justin Wong, put together.</p><p>Today I’ll be sharing what we’ve built so far and introducing features that will be landing within the next couple months.</p><p><strong>Who I am</strong></p><p>My name is Arjun Bhushan (a.k.a Abfusion) and I am the CTO and co-founder of XP Fantasy. What that means in our small team is that I manage all of the infrastructure, frontend and backend development.</p><p>I am currently a third year student in the Software Engineering program at the University of Waterloo. I have experience working in your classic Bay Area startup, Apple 🍎 and Citadel 📈. Fun fact, if you are using an iPhone, you are running code that I’ve written for iOS 14!</p><p><strong>What I Have Built 🔨</strong></p><p>Fantasy websites, regardless of the underlying sport, provide a means for users to create a roster of professional players from the NBA, NFL, and now in esports! Rosters will be scored based on each individual player’s in-game performance with prizes awarded to the highest performing teams.</p><p>To develop our current system, the first step was to obtain data on the various leagues, upcoming matches, players and player statistics. One way of accumulating all of this data would be looking at all the upcoming matches for each individual league, which entails analyzing hundreds of players and matchups per week. So, unless I wanted to spend all my Sunday afternoons searching up every single player’s performances, I did what every good developer would do and paid for a solution instead. After integrating with PandaScore — an esports data provider — all of the data we need is now ingested and cleaned for us, we’re able to pull all of the required data and create contests on the fly. Phew.</p><p>The second part of the main product is to score each player’s in-game performance on a select number of player statistics — ie. kills, deaths, assists, creep score, barons, minions. Another engineer on the team, Shun, wrote all about scoring systems in this <a href="https://medium.com/xp-fantasy/diversity-data-delight-3-essentials-for-any-fantasy-points-system-fcd29e0194c9">blog</a>.</p><p>After both those pieces of the product were put together, the main product had been built.</p><p>Now came the fun part, groups and user personalization.</p><p>Although creating a roster and crushing random users’ rosters is quite enjoyable, it is even more fun to crush your friends’ rosters.</p><p>Therefore, we wanted our next group of features to be focused on grouping users together so that they could directly compete against people they knew personally, making their victory that much sweeter. We integrated an “Add Friends” system and, since we are currently testing our product with university students, we created a “Groups” feature that enabled users to compare their stats and performances against their fellow classmates.</p><p>Lastly, my favourite feature to date has been personalization. Personalization gives users the ability to upload their own profile pictures and pick from a range of custom badges to be displayed for everyone to see. This has definitely been my favourite profile picture to date —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*QDjntIqYir9B6yBr5tUyrg.gif" /></figure><p>Why YES, that IS a cat riding a unicorn on a rainbow. Gotta love our community.</p><p><strong>Product Roadmap 🗓</strong></p><p>The fun doesn’t stop here for the XP Fantasy engineering team!</p><p>After numerous user interviews and suggestions in our #suggestion channel on our <a href="https://discord.gg/7B8qPaJTp7">discord</a> page, the team has decided on the three most important features that we will be tackling in the coming months:</p><ol><li>Live Scoring</li></ol><p>Reduces user wait time to receive roster performance results since scores are updated in real time</p><p>2. Mobile App for iOS/Android</p><p>Helps users track their rosters and stats while they’re on the go.</p><p>3. Browser Extension</p><p>To provide people the flexibility of watching the games on their preferred platform (Twitch, YouTube, etc.), while still keeping track of their live performances.</p><p>If you’re interested in learning more, check us out at <a href="https://xpfantasy.com/">xpfantasy.com/</a> and join our <a href="https://discord.gg/7B8qPaJTp7">discord community</a> to see what we’re up to!</p><p>“Strive for continuous improvement, instead of perfection.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39aeae0cd276" width="1" height="1" alt=""><hr><p><a href="https://medium.com/xp-fantasy/how-i-built-xp-fantasy-39aeae0cd276">How I Built XP Fantasy</a> was originally published in <a href="https://medium.com/xp-fantasy">XP Corp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>