5 ms·
This blog post feels very empty. No code snippets? No actuall before after benchmarks/graphs? How can you state anything without showing numbers?
by Gonzih 10y ago
This blog post feels very empty. No code snippets? No actuall before after benchmarks/graphs? How can you state anything without showing numbers?
- rahul286 10y agoYep. I was looking for same.
- lossolo 10y agoI can confirm some of the statements in that Blog as someone using both also in production. Memory footprint is a lot lower than node like 5-10x times what I've observed on similar code. Go has also very efficient GC, that can be used on large heaps with low latency.
- qaq 10y agoI think would be cool to know at least app type. For something that has a ton of ws connections node will generally have smaller memory footprint.
- lossolo 10y agoWe are using Go for a lot of internal tooling, text processing, also for websockets and web API. Can you provide some more data about memory footprint in node with websockets? How much memory per connection you saw? From my experience it's the other way around. But the most important point is that while both can have a lot of connections active, when you start sending messages thru that websocket connections you will see a LOT higher latency in node.
- qaq 10y agoafter looking at it you are right it is higher for node
- swah 10y agoAlways expecting something like https://aphyr.com/posts/329-jepsen-rethinkdb-2-1-5 https://aphyr.com/posts/329-jepsen-rethinkdb-2-1-5
- joshrotenberg 10y agoHoping for? Yeah. Expecting? Rarely.
- Cyph0n 10y agoAgreed. I posted a comparison between Node and Go UDP socket performance a few months back with some code snippets. My submission was completely ignored. HN can be weird sometimes, huh. Edit (and shameless plug): http://assil.me/2015/11/07/roadomatic-node-vs-go.html http://assil.me/2015/11/07/roadomatic-node-vs-go.html You might need to read the previous post (and only other one!) to understand how the GeoJSON geospatial query works.
- andrewstuart2 10y agoThere was an analysis done recently that showed a few votes very early on (I think 4 may have been the number quoted) is often enough to bump you to the front page. Have ten developers on staff, each with an HN account? Some might see that as a free ticket. At best it's only a very temporary traffic boost, though, unless the content is legitimately interesting enough to warrant return visits.
- throwanem 10y ago> Have ten developers on staff, each with an HN account? I think that's what HN calls a "voting ring" and attempts to detect and counteract.
- adrusi 10y agoI don't think it can be detected the first time its attempted with any particular group of users.
- Cyph0n 10y agoYep, that's true. I got around 5000 page views from Reddit over 2 days, but then the traffic died off.
- tedmiston 10y agoI've noticed that posts to the same link can be made just hours apart or with a slightly more interesting headline -- while the former gets just a couple votes, the latter makes it to the front page. It's a bit strange.
- deleted 10y ago[deleted]
- goldbrick 10y agoIn particular I wished they would have elaborated on the claimed instability in x/net/websocket.
- inlined 10y agoI can't speak to instability, but I had to rewrite a massive stack because gorilla gave me callbacks to execute on control packets and x/net/websocket didn't. If you have any sort of long lived mobile connection, you will encounter half closed sockets due to mobile network quirks. At scale you really want to clean these up. To do so, you need an application level timeout and you want to listen to the PING/PONG control frames to reset that timeout.
- zeveb 10y ago> If you have any sort of long lived mobile connection, you will encounter half closed sockets due to mobile network quirks. At scale you really want to clean these up. Could golang.org/x/net/context.WithTimeout be used to handle this?
- thegeekpirate 10y agohttps://github.com/gorilla/websocket#gorilla-websocket-compared-with-other-packages https://github.com/gorilla/websocket#gorilla-websocket-compa...
- whateveracct 10y agoWelcome to the carGo cult :^)
- deleted 10y ago[deleted]