67 karma · joined Sep 9, 2019 (7y ago) · 37 submissions
comment 2y ago · link · parent
3.
Interrupt-driven engineering: Working on what matters at Aha(aha.io ↗)
5 points · by gregplaysguitar · 2y ago · 1 comment
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 4y ago · link · parent
My work deploys an instance per customer, and I haven’t encountered the same problem, but they number in the tens at this stage so not at the same scale yet.
Would love to hear any dos or don’ts you’ve picked up, being further ahead in terms of scale!
comment 4y ago · link · parent
comment 4y ago · link · parent
Imagine you’re writing an editing interface of some sort with images, text blocks etc. Each is conceptually a “node” but have different attributes. A single node table with a column per attribute means redundant columns. A table per node type introduces other problems because you need to query all your nodes together. Basically however you model this you end up with tradeoffs and real apps can obviously get much more complex - next thing you have 50 tables and a complex query just to get the data out.
Contrast to the other extreme - storing the whole thing in a single hierarchical json document. There’s no restriction on the data shape, and you can just pass the whole thing around as json. Versioning becomes much simpler because you’re versioning a single document. Your export format is just the json.
There’s tradeoffs of course, and often a middle ground is the right approach - but json columns with validation definitely have their place.
comment 4y ago · link · parent
https://freakonomics.com/2013/10/what-makes-people-do-what-t...
comment 4y ago · link · parent
comment 4y ago · link · parent
Tusker (mentioned in other comment) does it this way; my company has used the technique very successfully for several years via some lightweight tooling built around migra.
comment 4y ago · link · parent
More generally though, all of these "newsql" offerings feel a little too good to be true for me, I can't see how you could really have all the relational integrity of postgres with the elastic scalability of a distributed DB without trading something off. Am I too cynical?
comment 4y ago · link · parent
comment 4y ago · link · parent
[1] https://NATS.io
comment 5y ago · link · parent
This is exactly what we do, and it works really well. We essentially spin up a new tenant for each test suite. Forcing all tests to pass regardless of what other unrelated data is in the db is a great way to ensure cross-tenant data isolation.
The other underrated benefit is that you don't need a separate test database for local development - local dev instance and tests can use the same db. This means you can work on db changes in one place and see their impact on both tests and the running application.
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
One suggestion, you should remove the footer on your landing page if all the links just point to `#`...