Latest news about Bitcoin and all cryptocurrencies. Your daily crypto news habit.
Please welcome our weekly sponsor GetStream.io to Hacker Noon! Stream enables you to build scalable news feeds & activity streams in a few hours instead of weeks and is based in both Boulder & Amsterdam. Today, weâre going to catch up with their CEO, Thierry Schellenbach about the origin, scale, and direction of his company.
David: Letâs start with some numbers. Whatâs the scale and traction of your company?
Thierry: Tommaso and I started Stream about 3 years ago. At the start, it was just the two of us doing all engineering work. Soon after, we were accepted into Techstars NYCâââwhich is when things really took off for us. As of today, we have 600 companies relying on Stream. We also power the feeds of over 300 million end users and handle approximately 34 billion feed updates a month. Itâs hard to believe that weâve had this type of growth in such a small amount of time!
300 million end users. Thatâs a lot. In terms of distribution, are your larger customers at the top taking up most of that?
Yes, several of our largest customers have user counts in the hundreds of millions. Of course, not all of those are active, but our large customers drive a significant portion of that 300 million number.
Cool. So you really are an expert in news feeds. Theyâve really blown up in the last 10â15 yearsâââgoing from something that didnât really exist to something that supplies much of our news. If you could, please give me a walkthrough of the technological milestones that made the news feeds we expect possible, and what upcoming breakthroughs for the news feed that you are excited about.
As you know, companies like Yahoo, Facebook, Twitter and Linkedin have invested heavily on their feed technology. Back in early 2010, in order to keep up with their massive growth they had to push the limits of what was available at the time. Many of us still remember Facebookâs blackouts in the early days or Twitterâs fail whale.
One huge breakthrough has been the creation of NoSQL databases. For scaling news feeds itâs necessary to have a very capable and high throughput database.
Operating news feed at scale requires a very capable and high throughput database. Projects like Cassandra, Kafka, RocksDB, Twemproxy, FlockDB, Voldemort and Tornado were created by companies working on some of the largest news feeds and are the building blocks of many of the major news feeds we see today.
Itâs also interesting to note how only 15% of our customers build social appsâââwhich is what people initially think of when they think about feeds. Feeds these days power content discovery in a wide range of applications. Developers are leveraging Stream for B2B applications, transport systems, educational platforms, music, sports, e-commerce, etc.
And so do you think that NoSQL has reduced the amount of time to load stories and find the right stories to load?
Definitely, Stream for instance uses a combination of Go, RocksDB, and Raft.
(Read this StackShare post to learn about the technology that enables Stream to power the feed for over 300 million users.)
What are the common reasons companies plug into your API instead of building a news feed on their own?
The biggest reason we see companies integrating with Stream is time to market. Another big reason is cost. Try to think about building your own in-house feed solution and all the moving parts and components associated with thatâââitâs a daunting thought! Many feeds, for example, run around 9 different clusters of servers that consist of the following:
- API servers
- Message brokers
- Autoscaling worker clusters
- Database clusters (Cassandra is a common option)
- Real-time infrastructure
- Redis as a backend for distributing real-time work & handling locks
- Analytics infrastructure
- Machine learning APIs
- Machine learning worker infrastructure
Itâs a headache to build, document, monitor and maintain.
Even the most simple feeds can become expensive as your user base grows. Typically, Stream is substantially cheaper than hosting an in-house solution.
Weâve even seen companies that had already created a feed in-house, switch to Stream simply because itâs more affordable.
As it so happens, this was a big reason why we created Stream. I had this exact experience at my previous company. We needed to build feed technology in-house and it quickly became a very expensive piece of our technology stack. This is a common theme we see.
Take companies like Instagram, even when they were small, they were spending huge amounts of money on just hosting and maintaining their feeds.
Dubsmash also talks about their in-house vs Stream experience in a case study of ours.
I think you talked a little bit about this earlier, but what aspect of Stream is driving down the cost of hosting as a competitive advantage for you?
Our entire team is focused on building feed technology for over 600 companies. Because of this, we have to spend a lot of time and effort on high availability, monitoring, and optimizations. Part of the cost advantage comes from this focus and our ability to spread the work over 600Â apps.
On the tech side, the cost advantages comes from 3 capabilities of Stream:
- We use an in-house database called Keevo, built on top of RocksDB & Raft, which is optimized specifically for feeds (Linkedin and Instagram do something similar).
- Stream uses a combination of fanout on-read and fanout on-write.
- Our various services are powered by Go (except www.getstream.io and machine learning, which use Python).
Those are the technical aspects that stand out most, but thereâs also hundreds of smaller optimizations that have compounded over the last few years.
And whatâs the simplest way to see the power of your API?
As with many things, I believe that when youâre a developer and youâre trying out a new solution, it really helps if itâs easy to use. With that in mind, we created a 5 minute interactive tutorial: getstream.io/try-the-api/. It allows you to try out Streamâs API right there in your browser.
Could you tell us about your previous company, Fashiolista?
We started that company around nine years ago now. It was a bit like Pinterest before there was Pinterest. We went through a period of crazy growth.
Where were your users coming from?
Our users mostly came from magazines. We had a few large magazines and bloggers. Influencers started pushing the app and sharing their profiles, which drove a ton of traffic. If you take a look at popular fashion bloggers, youâll see they have a huge audience. That space is pretty big. We grew to a few million members in just a few months, which was an exciting experience.
However, once we had millions of members, everything seemed to fall apart. While we were able to easily fix most of the things that broke, the one thing we kept having difficulties with was the feed.
Where would it break and why would it break?
Feeds are particularly tricky to scale because the data is highly connected. Itâs not a linear problem, it becomes substantially harder as the size of your network grows.
The first thing youâll notice is that the feed will start to load slowly for some users, which is a very common problem. Twitter used to have their Fail Whale. In the beginning, Facebook had five second loading time. The issue stems from all data being connected to each other.
So backing up, I read that you also created an open source solution for building feeds. How was that received by the community?
I started Stream-Framework about five years ago. At the time there were some good papers from Yahoo & Princeton about feed technology but no open source solutions. Stream-Framework quickly became the most widely used open source solution for building feeds.
Because of this I ended up talking to many developers that were developing feeds. While Stream-Framework was substantially easier than building it from scratch, it was still a huge hassle to set up, maintain, and build an API around. The minimum cost of deploying a scalable and highly available solution was also very high.
That was one of the reasons for building Stream. Streamâs tech stack is highly optimized and easy to access via an API.
It can be very hard to go from an open-source project to a company. So what advice do you have for others that are trying to do the same? And when I say hard, I mean from the idea of logistically doing it.
My advice would be to take note of industry trends and give the people what they want. The most relevant and interesting trend we noticed was that developers were starting to leverage APIs for everything thatâs not unique to their app. Companies started providing specific components of an app as a service. Think Sendgrid for email, Algolia for search, Twilio for SMS, Stripe for payments, Mapbox for maps. The list goes on and on. Stream is that lego piece for adding feeds to your application.
I personally think this is a great time for developers to start a company. If you have deep domain expertise around a certain topic you can leverage that to build a company. Itâs of course hard, but itâs becoming more and more of a possibility.
So backing up to your customers. Youâre in an interesting spot because youâre seeing news feed activity across different industries and across different use cases. I was curious about the iterations on the news feed for your customers. So how are you seeing them learn and evolve from what Stream did to how they want Stream to give a better experience for their customers, and how that kind of feedback loop has been working? How do you see that working?
One feature Iâm seeing quite often lately is aggregation. For instance, say a friend of yours opens up an app and adds a hundred items, the app developers/designers will have those updates aggregate depending on whatever makes sense for their platform. Aggregation is very helpful for reducing noise in the feed.
Another thing I see more and more apps doing is a âwhile you were awayâ type of experience. Take Facebook and Twitter for example. While there are a few of these platforms where users come back to daily, the users of majority of apps using feeds come back once a week, or even once a month.
You better win that moment, when they come back, with good content.
Exactly. We see not only see apps creating aggregated feeds, but also using personalization in addition to the basic chronological version of their feed. This way users get tailored, relevant content when they return to the app. While those are the main things we see, of course real-time is still a big part of it as well. Many developers will make sure their feed updates in real-time. A few years ago, this used to be a very trendy topic. Nowadays itâs taken for grantedâââusers expect things to update while youâre looking at them.
So what does Stream look like down the road, in say five or 10 years? I mean, what is the long-term vision?
I think the most interesting part about feeds is that they are the leading way through which we discover content online. Whether your following people on Instagram, RSS on Feedly or Winds, topics on Quora, music on Spotify, creators on Youtube or stocks in financial apps, the underlying tech is based on feeds. Apps nowadays still struggle with feeds, since the technology is relatively young. Itâs exciting to see how Stream can help these apps improve content discovery.
Within the onboarding experience, how do you make sure you show the power of Stream and move people through quickly? I guess thatâs an interesting project in and of itself.
As developers weâve researched and tested MANY products, so we know what really works and what doesnât from experience. Once we created a version of âTry The APIâ that we thought was powerful, we then asked our developer friends to go through the tutorial while we sat next to them. That qualitative feedback was super helpful to make Stream easy to use.
Stream, our weekly sponsor, enabled you to build scalable news feeds & activity streams in a few hours instead of weeks: Try out the API in this 5-minute tutorial.
How Stream Started Building News Feeds was originally published in Hacker Noon on Medium, where people are continuing the conversation by highlighting and responding to this story.
Disclaimer
The views and opinions expressed in this article are solely those of the authors and do not reflect the views of Bitcoin Insider. Every investment and trading move involves risk - this is especially true for cryptocurrencies given their volatility. We strongly advise our readers to conduct their own research when making a decision.