213 karma · joined Dec 15, 2014 (11y ago) · 109 submissions
comment 8y ago · link · parent
I guess of you're working with gui that's a different story. But for .net websites and background servers, simply use docker on linux and never lool back. And it's much simpler than docker for windows too.
comment 8y ago · link · parent
comment 8y ago · link · parent
This is true in mysql if you rollback a transaction, or use a INSERT INTO ... ON DUPLICATE KEY UPDATE.
In the first, the rollback doesn't revert the sequence, in the second the "insert part" will always increase the number, even if there is a duplicate to update.
comment 8y ago · link · parent
As a more permanent solution for scaling, I'm moving out of mysql into something more distributed.
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
Also, an order by using the cluster field most probably invokes an index scan, while a clustered table doesn't.
comment 8y ago · link · parent
Never saw any real problem. I use char(36), as it's easier to query manually when needed, but I' looking into binary(16) for those billion row tables.
I think most issues with fragmented tables are old problems since ssd, and the overhead is something you will only notice in benchmarks.
If your keys ate supposed to be uuids, the just use them and get the hardware to handle it. In reality, you're most likely to be affected by a zillion other things before an uuid as pk.
comment 8y ago · link · parent
But once you go live and start to grow, there is a point where the lambda cost equals the instance price. And with an instance, you can almost always do a lot more than that number. Again, that will work if your requests are predictable enough that you can see this number consistently over a large period, say, every week at least.
comment 8y ago · link · parent
What you don't get is all their regions, easy scalability with EBS, managed services, etc. But all of that has a very high price, and depending on who you are and what you're trying to do, these cloud providers are probably the worst option.
15.
The Mysterious Life of Developers(youtube.com ↗)
3 points · by nvivo · 9y ago · discuss
comment 9y ago · link · parent
comment 9y ago · link · parent
In short, if you want to use the disk a lot, you need to pay a lot. If your app is slow on aws and uses EBS as storage, increase the disk size, not the VM instance type. This is true mostly for database performance, which once the RAM is filled, relies on IO a lot to get new pages from disk.
comment 9y ago · link · parent
It's a trade you must account for when choosing cloud providers, nothing is free. For now it's still cheaper to pay for servers than spend time setting things up ourselves, but we're always measuring cost x benefits and thinking if we need to leave aws. The time is coming, but for now it's still working for us.
comment 9y ago · link · parent
I thought it was a bad idea the first time I saw it, and after seeing it in real code I still think the same thing.
comment 9y ago · link · parent
It's interesting, but pointing to the product page instead of the github project page makes it look like advertising a paid pocket competitor with no apparent advantages.
comment 9y ago · link · parent