Perfect presentation !! The way in which he delivers the complex design choices in an easy and fun way is amazing!!
@-indeed82854 жыл бұрын
Enjoyed way he present.. (Proper slide, Great transitions, No breaks, engaged with audience, making jokes and all of that without losing the context.)
@preetiirrothi744 Жыл бұрын
The best presentation i’ve seen!
@venkatapavankumarsannisett22592 жыл бұрын
Brilliant articulation and to the point. Also for the resources in between. Thanks to infoq for such amazing real world scalable stories from the industry
@kanthipavuluri3874 Жыл бұрын
Totally loved this evolutionary styled presentation, brilliant story telling!
@naveenjohn34023 жыл бұрын
Wonderful talk. Very engaging and beautifully presented
@amolnigade8830 Жыл бұрын
Insightful information on live video interactions
@natadilip3 жыл бұрын
Amazing Explanation. This is clearly one of the best videos on qcon.
@YT-yt-yt-33 жыл бұрын
Very engaging still calm and neat presentation. Insightful.
@user-jt5nd3yq4u10 ай бұрын
Amazing presentation, learned a lot from it!
@visheshgupta499011 ай бұрын
Thank you so much I watched the complete video and it is very helpful 🙌
@codetolive273 жыл бұрын
Amazing presentation. Loved the way he has presented.
@PuneetSethi892 жыл бұрын
Great video Akhilesh! It was very clear, easy to follow and educational.
@Yunus0or14 жыл бұрын
What is the raw computing power of one single Frontend machine? How many cores and ram?
@Secret4usАй бұрын
Good video, thanks.
@Rkrish20104 жыл бұрын
Awesome many thanks 😍😍☺️👍😊🤗😱
@forfun77003 жыл бұрын
Great video + presentation. Thanks
@javisartdesign4 жыл бұрын
Pretty interesting talk! I would really like to know how they manage idempotence and duplication for likes and messages.
@deformercr66803 жыл бұрын
Just have an ID for each like I suppose
@javisartdesign3 жыл бұрын
@@deformercr6680 you do not want to store each like as a record separatelly, it must be just an aggregation or counter in database. I can think on a map-reduce operation in the stream
@deformercr66803 жыл бұрын
@@javisartdesign yes you don't, but you assign it and store it in the client
@javisartdesign3 жыл бұрын
@@deformercr6680 that means you can use different devices and sessions for multiple likes... that is cheating.
@muhammadnuri29103 жыл бұрын
Very useful and clear presentation.
@RahulKumar-lp5jc Жыл бұрын
One of the best talks I have seen. Hats off to you. I have a doubt here. In more than 10k connections case, why do we need an additional layer of frontend nodes? Instead, why can't we store the mapping of video and Real-Time Dispatcher node in the distributed key-value store. The Likes backend can query the key-value store to get the dispatcher nodes for sending the like object. Once it reaches to dispatcher node, the node has the in-memory subscription table to send to the corresponding end user.
@umamahesh87744 жыл бұрын
Very well explained. Great Talk. Thanks
@chaitrakeshav3 жыл бұрын
Great talk! So informative. Thank you!
@anandt83623 жыл бұрын
Thanks for the video...With regards to Kafka, 1. When the client starts to watch the video server we can establish connection and store [key value ] the connection it. 2. We can have front end nodes subscribe to specific topics[videos] which it is gonna handle 3. Whenever a like happens we push into kafka and the front end nodes which are responsible for sending the like to all the subscribed connections. 4. they can get it from the stored connection key value store and send the like to the clients through akka actors . What is the issue in that ? Please clarify ?
@yushutong7222 жыл бұрын
+ 1 this is the part I'm confused. A given frontend server does NOT need to subscribe to topics of every live video, but only to the unique ones that its connections are watching
@gabbah799 ай бұрын
I was thinking the same thing. Just two years later. ;)
@munjal55555Ай бұрын
I think what he means here is even a server do not have to read a message (because their is not user that is watching a particular topic), your server still has to read the kafka message and then may be discard it. so that one extra read will be their. and if their are lot of instance like this(lets say you have 1M different streaming happening at the same time and each have different set of user) , then it might slow down the system.
@raymondsquared4 жыл бұрын
Really professional and easy to follow presentation. Loved it! Whats the benefit of using long polling vs websockets?
@curiousspirit39473 жыл бұрын
curious too
@gxbambu3 жыл бұрын
You don't really need websocket here, cuz sending likes and comments don't need to be real time
@rahulverma25233 жыл бұрын
@@gxbambu Yea, but they are calling it the "realtime" platform. Also, the platform is used for multiple use cases and not just for sending likes.
@ekamaloff2 жыл бұрын
@@gxbambu the whole point of this presentation was distributing likes and comments in real-time , which is required for live streaming
@akashjain2990 Жыл бұрын
He kind off explained that in the first question from audience. Reason is : Long polling using server side events are basically plain HTTP requests; so support even very older devices; do not get blocked by firewalls etc. Both of these problems exists with WebSockets.
@sk41522 ай бұрын
Great presentation. He missed answering one question about how likes at different times are stored and sent to the viewers. For real time watch, we don't need to store any time. But if we're supporting replaying the video and if we want to show the likes as it happened during live video broadcast, we'll have to store the time, say for example number of likes each second.
@allmhuran4 жыл бұрын
How is the key value store scaling? Is it replicated? Presumably the publication of "likes" does not have to be guaranteed, so inconsistency between replicas is acceptable (ie, some likes are not published to active subscribers)? (Edit: OK, second part of this question is covered in the Q&A, verifying the assumption, but is that also the answer to how the key value store scales?) And is that same premise applicable to other elements in the chain? Eg, if a front end times out in response to a publication request, or a client times out in response to a publication request, is it simply dropped or does it need to be retried? Presumably the former?
@iamvasu26984 жыл бұрын
Really nice.. but what about DB scaling or Key-value store mapping..
@yashwanthnerella99353 жыл бұрын
Awesome 👏
@srcmake4 жыл бұрын
Really great presentation.
@munjal55555Ай бұрын
really a good presentation. I have a question on your comment that kafka will not be that good solution. the reason you have given is each and every likes has to be consumed by each frontend server, that will be problem only when you have a lot of low traffic videos which increase a chances that on each frontend server their is no user who has subscribed for that vedio/topic. what I think is kafka can also work here. yes the advantage of the presented architecture over kafka one is that yours will be usually a bit faster.
@ledinhanhtan3 ай бұрын
Does the dispatcher publishs data using WebSocket or SSE?
@foreverursabhi3 жыл бұрын
1. How does the KV store get updated when a front end dies? 2. How do the dispatchers find each other? What happens when one dies? 3. How does dispatcher broadcast prevent infinite loops? (1 publishes to 2 and 3, 2 publishes to 1 and 3, and so on) Why not use gossip protocol instead?
@lazypenguin31563 жыл бұрын
I'm still learning distributed systems but here's what I think. 1. We need a time-to-live on the KV entry (I'd think of the KV as more of a cache than persistent storage bc the data is changing some much that I would not want to write to disk). 2. In the single datacenter model, dispatchers don't talk to other dispatchers. In the multiple datacenter model, I would probably use kafka to fan out instead of letting dispatchers talk to other dispatchers. 3. If I understand your question correctly, I do not think that dispatching an event will trigger another dispatch. I believe we only dispatch when a client sends a message.
@sk41522 ай бұрын
For 1. When a front end server dies, client looses connection. So KV store need not get updated immediately. Clients need to reconnect to a different frontend server and that time new subscription call will happen, which will update the KV store. Until then KV store may have a node which is not active and dispatcher may fail to call. But it can just ignore and move on with other active nodes.
@marvinalone4 жыл бұрын
I think we have 10x viewers on 11/11 when thousands of sellers selling their products online thru live video
@abhijit-sarkar Жыл бұрын
How does a client find a frontend server?
@afrozalam53894 жыл бұрын
Great talk dude
@karansaluja33154 жыл бұрын
In the multi Datacenter scenario, how do you ensure that a node is subscribed to only one dispatcher ?
@_overide3 жыл бұрын
It doesn't have to, node can subscribe to any number of dispatcher. Dispatcher in DC1 simply broadcast likes to all peer dispatcher in other DC and then it get handled as usual.
@willemvdk48863 жыл бұрын
It's amazing how everything in IT boils down to layers of abstraction. Whether you're talking about local device I/O or about large distributed systems. It's abstractions all the way down. Once you realize that it gets so much easier to comprehend.
@sahilkharidia5634 жыл бұрын
Why not add a Dispatcher between client and Frontend Server during Kafka ?
@viczsaurav4 жыл бұрын
The problem will remain. The dispatcher will be bottleneck then and cannot be scaled as each dispatcher would have to consume all the events emanating from all kafka streams. Letting dispatcher decide which events to pull for breaks down the data chunk for it to process through thus providing the multiplicity we see at the end.
@zhakunigor3 жыл бұрын
Why do not include "likes" and "comments" into the stream itself letting client not only show video, but also handle other type of messages in the stream? In this way it's possible to reuse existing video-stream infrastracture fully
@ankk983 жыл бұрын
Thanks
@nikolay67004 жыл бұрын
i do not understand if they use Kafka
@aysarferas22532 жыл бұрын
macam mana nak buat?
@greyreynyn3 жыл бұрын
lmao, man do they ever feel goofy being like "we have dedicated infrastructure and engineering for a fucking thumbs up button"
@greyreynyn3 жыл бұрын
"I get paid 600k USD a year to let people hit a like button" idk seems goofy to me
@avisheksanthaliya37142 жыл бұрын
More like solve the problem "because its a nice engineering problem" than "because it will help the world". TBH I don't care how many people are reacting to a live video.
@lazypenguin31563 жыл бұрын
why introduce the dispatcher? Why not just broadcast to all frontends?
@lazypenguin31563 жыл бұрын
at 47:53 he explains it is a matter of scaling.
@travelingDeveloper Жыл бұрын
Yeah we can broadcast all likes to all frontend nodes but that won't be efficient, as there might be some frontend nodes in which connections does have only red live videos watchers so sending green live video likes to it doesn't make any sense.