76 karma · joined May 27, 2017 (9y ago) · 21 submissions
comment 7y ago · link · parent
In situations where real-time updates are important, the key is to minimize your indices as much as possible. Read up on heap only tuples (HOT). If that all isn't enough, maybe consider sharding your database.
Never run VACUUM FULL; it locks too aggressively. Let autovacuum do the job.
comment 7y ago · link · parent
Feature flags do introduce complexity, but that can be partially mitigated by having good defaults and deleting flags once they're no longer needed. Even without that, as long as there are good defaults, you won't run into any problems until you have hundreds of flags.
I once worked on a system with tens of thousands of configuration flags that could all be overridden in an inheritance-esque chaining scheme, like Server A inherits regional config Foo which inherits from business unit config Bar, which inherits from three other 5000 line properties files. And naturally, almost none of these properties had defaults, so starting from scratch with a new configuration was impossible, leading to snowballing technical debt from copy pasting old configs. shudders
comment 7y ago · link · parent
There are lots of non-remote jobs that pay higher than my current salary, but I don't see that many remote jobs in the $180k to $200k range.
comment 7y ago · link · parent
The test isn't going anywhere until there's a reliable field sobriety for weed. Companies don't want employees operating heavy equipment stoned, and unfortunately there's no way to test that somebody smoked in the last day or two, only that they've smoked in the last X weeks/months, depending on their habits.
comment 8y ago · link · parent
If that's not fast enough, you can bake an AMI and scale more proactively (e.g. scale when your server is 70% utilized rather than 95%)
comment 8y ago · link · parent
I guess Minecraft is one notable exception.
comment 8y ago · link · parent
I found it dead simple to get up and running with Nomad, but it is (perhaps intentionally) missing a lot of features of Kubernetes. For instance, if you want load balancing and auto-scaling, you need to rig it up yourself. In K8s, you set up a service and horizontal pod autoscaling and you're done.
comment 8y ago · link · parent
I can't comment on Ruby's profiling stack, but I think that cProfile is a great tool for finding bottlenecks in Python. Usually, I've found that sorting functions by cumulative execution time is sufficient. You can't do flame graphs out-of-the-box, however.
comment 8y ago · link · parent
I think it's telling that one family cited credit card debt like it's an act of nature instead of a conscious choice. And just because you qualify for a million dollar mortgage doesn't mean you should get one. Spend that big salary on a home near your workplace and sell the $40,000 SUV.
The sooner we wake up from the "dream" of being deep underwater in debt to fund an ecologically and economically unsustainable lifestyle, all the while just a paycheck or two away from complete ruin, the better off we'll be.