HackerTrans
トップ新着トレンドコメント過去質問紹介求人

AlexTDiaconu

no profile record

投稿

The WebSocket Handbook

ably.com
303 ポイント·投稿者 AlexTDiaconu·5 年前·119 コメント

Navigating the 8 fallacies of distributed computing

ably.com
2 ポイント·投稿者 AlexTDiaconu·5 年前·0 コメント

コメント

AlexTDiaconu
·5 年前·議論
Big question! It deserves its own blog post haha.

CRDTs can be the answer. We actually wrote about them recently (https://ably.com/blog/crdts-distributed-data-consistency-cha...), and there is more coming soon as our Chief Of Scientist and his team are researching CRDTs and building demos!
AlexTDiaconu
·5 年前·議論
Hey Aparsons, thanks for your feedback. As mentioned in the post, the Handbook is not finished and we'll continue to evolve, adding more chapters, meat to the current chapters, and we have other ideas like exercises.

It's good that you are interested in Scaling WebSockets, because that is the chapter I am writing now! I hope to get it live in a couple of weeks, once it is I can send you the new version.
AlexTDiaconu
·5 年前·議論
As with REST APIs, you'd want to be able to authenticate to a websocket-based API using either basic auth, or a bearer token-based auth scheme. Unfortunately, the browser websocket API doesn't allow you to specify arbitrary headers in the websocket request, so it's typical instead to have credentials supplied via a query param (such as "accessToken" for a bearer token) in the wss request.
AlexTDiaconu
·5 年前·議論
Hi HN! I'm Alex, and I've been researching and writing about WebSockets for a while now. I'm the author of the recently released WebSocket Handbook. AMA about the WebSocket tech, the realtime web, Ably or anything related to Liverpool FC.