4 ms·
Ah, the memories of meteor. Feeling like a rockstar while developing. Impressing the colleagues and clients with how amazing functionality I could produce in s
by silversmith 4y ago
Ah, the memories of meteor.
Feeling like a rockstar while developing. Impressing the colleagues and clients with how amazing functionality I could produce in so little time.
Then the absolute horror of production traffic hitting the system and everything grinding to a halt. If I remember correctly, the resources required by their reactive data model scaled up significantly both with read connection count and write activity. And I could not do a damn thing about it without a complete rewrite. First and only real case in my career where I simply could not solve the problem, not even a small part of the problem.
Oh, and it also let me experience running Mongo as primary data source. A lot of experience gained courtesy of meteor.js, for sure, but I'd prefer it to stay in rear view mirror for sure.
- sgdesign 4y agoI ran into the same situation multiple time and was never able to find a solution besides throwing more money at servers. That might be due to my own lack of knowledge about running servers and performance optimization as I was (and still am) a front-end person first and foremost.
- nikanj 4y agoNo worries, performance optimization is root of all evil according to current consensus
- bborud 4y agoThis is perhaps one of the most misunderstood and misused quotes I know of. It doesn't mean what people think it means, yet I hear it misapplied at least a few times every year. (The quote has to be understood in its original context. It isn't really about performance as such, but about maintaining degrees of freedom and development flexibility until you understand the problem you are solving and can commit)
- jstgord 4y agoWould be interested in peoples thoughts on what realistic read/write pressure is a good level to test at, to feel confident in real-world performance... [ if not HN level dos'ing ] Did a basic test of our new new thing, seemed to hum along okay at 10 w/sec and ~50 reads/sec - short writeup here : https://quantblog.wordpress.com/2022/06/26/mon-pho-aka-how-fast-is-node-js-postgres/ https://quantblog.wordpress.com/2022/06/26/mon-pho-aka-how-f...
- wonderbore 4y agoI’m not sure whether I’m understanding those numbers correctly, but servers are expected to deal with many more zeroes than that. 10 writes/seconds reads like a meme.
- jfim 4y agoTen writes per second is abysmal, considering that even consumer NVMe SSDs have several hundreds of thousands of random write IOPS. At the end of the day though, what matters is whether or not your application scales appropriately for your expected workload. If your expected workload is ten writes per second, then trying to get every single bit of performance out of the hardware is probably not time well spent. If you're having to handle thousands of writes per second and you're getting ten writes per second per server, then it's probably worthwhile to look into what's causing that number to be so low.
- jstgord 4y agoAs a followup .. I pushed writes to around 120/sec before I start to notice impact on performance [ latencies start to go up beyond that ] https://quantblog.wordpress.com/2022/06/29/node-js-perf-followup/ https://quantblog.wordpress.com/2022/06/29/node-js-perf-foll...
- davedx 4y agoIt wasn't that bad? Me and another guy made a non-profit platform with Meteor that got Hacker News front page traffic; we spun up like two instances to handle it I think. I wonder how much production traffic you were handling?
- danpalmer 4y agoIn my experience, HN front page traffic is very little in practice.
- winrid 4y agoIIRC never saw more than 50req/s for the time one of my projects was on the homepage.
- dhzhzjsbevs 4y agoProbably just HN aggregator bots, I don't think anyone here actually reads the articles.
- tomcam 4y agoNot my experience. And interacting in the HN comments tells me others do too. Can you point to a current example of an “HN aggregator bot”? I’m assuming you see them often?
- dhzhzjsbevs 4y agoAt least 50% of show HN posts are just HN clones with mobile friendly upvote buttons.
- winrid 4y agoI had a lot of interaction and using the product, as it was a Show HN. There were some weird bots, too.
- silversmith 4y ago
- winrid 4y agoYou can horizontally scale Mongo via sharding and you can horizontally scale meteor pubsub with redis and related libraries as of like 2015. Depending on when, you had a lot of options. :P
- christophilus 4y agoI prefer simple tools for just this reason. I never used Meteor (for fear of what you describe), but I’ve used plenty of 3rd party libs / tools that I was told “do 90% of what we need; just wrap it and do the remaining 10%”. The 90% was usually the easy part, but often had flaws that were a nuisance to (or impossible) work around. Or they’d stop getting maintained and decay over the years.
- bborud 4y agoI've been on the other end of that story quite a few times - being the person having to point out that "this isn't going to work even for normal loads", and having people argue that caring about performance is "premature optimization". And then see them crash and burn because of the arrogance of not testing their assumptions before betting the farm on them. I think the path of least conflict is usually to encourage people to develop quick benchmarks and test their assumptions and then ask questions about how they plan to address any problems that identify themselves. If people are receptive another useful piece of advice is that they shouldn't be afraid of just starting over if it is really early in the project.