Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dikei
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
151.
▲
by
dikei
3y ago
Fat models is the opposite of single responsibility: doing both business logic and data retrieval/storage logic inside the same class is already more 1.
152.
▲
by
dikei
3y ago
That'll likely be an even bigger task, and harder to get into mainline kernel. Linux multi-process is already pretty efficient compared to Windows. However, multi-process is inherently less efficient than multi-thread due to more safet
153.
▲
by
dikei
3y ago
Probably not small enough for a home lab setup, between a 50MB Golang App and 500MB Java App I'd choose the Golang App every time for my home lab, because memory is precious and probably less than 10 people will use it. However, it
154.
▲
by
dikei
3y ago
Not really, it's still way less than a web browser or an electron app, and it can server a heck lot of customers with 1GB of RAM. JVM programs have high initial memory usage, but they scale up very well.
155.
▲
by
dikei
3y ago
I just wish Keycloak has an easier way of building customized login/registration UI. Zitadel is currently not much better in this aspect either, but they're working on it. Only the Ory stack currently has full API supports for ful
156.
▲
by
dikei
3y ago
Not really, but you can use Patroni for that, which automatically promote one of your replica to master, it can also create the replica from WAL archive in S3 using wal-g/pgbackrest.
157.
▲
by
dikei
3y ago
So the premise of the problem is the need to egress traffic to the internet from a private VPC, without using an expensive NAT gateway. The solution is to do NAT manually by having an EC2 instance in a public VPC, and tunneling traffic from
158.
▲
by
dikei
3y ago
>> There is a reason almost every new database aims to be distributed from the beginning. That's partly because you can't compete with the existing RDBMSs if you're single node: they are good enough already. Nobody will
159.
▲
by
dikei
3y ago
> The cutting edge for graphics is all raytracing, and Nvidia still dominates. DLSS3, pathtracing, etc, these are for 'graphics', but heavily dependent on AI post processing, so Nvidia still rules. IMHO, unless you have a $1000
160.
▲
by
dikei
3y ago
> No Datacenter Deployment. The SOFTWARE is not licensed for datacenter deployment, except that blockchain processing in a datacenter is permitted. It's this clause.
161.
▲
by
dikei
3y ago
That's not a typical use case during development though. People need fast feedback loops: they'd rather rent multiple GPUs and have the result the next morning, than waiting for days with no guarantee of success. So unless you hav
162.
▲
by
dikei
3y ago
I think Celery is doing itself a disservice by supporting so many brokers and result stores with different behaviors about delivery guarantee, leading to leaky abstraction everywhere.
163.
▲
by
dikei
3y ago
Key-Value stores are the OG of datastore: most SQL and relational databases are built upon Key-Value stores
164.
▲
by
dikei
3y ago
People stops storing music on computers, preferring streaming services instead; anyone who still does use lossless codecs like FLAC. Among the major Music streaming services, Spotify still uses both AAC and Ogg Vorbis, Apple uses AAC, Youtu
165.
▲
by
dikei
3y ago
I've 80 nodes, totaling around ~700 CPU cores, all in the same DC though.
166.
▲
by
dikei
3y ago
I came expecting a war story about running Kafka on K8S. Instead, I find an advertisement for AWS server-less.
167.
▲
by
dikei
3y ago
Well, for a counter anecdote, my bare metal K8S cluster haven't bugged out on me for months, living through multiple versions upgrade. To each his own, I guess.
168.
▲
by
dikei
3y ago
For databases maybe. However, most programs do not need to allocate so much memory, so frequently that an allocator become an issue.
169.
▲
by
dikei
3y ago
I think Rocksdb would be a good choice, you really can't beat a LSM design for write-heavy workload. Depending on how the mem-table is implemented, they can write at practically RAM-speed. And although you might think that you don'
170.
▲
by
dikei
3y ago
Qt, Gtk UI is already cross-platform, and now you want another layer of (leaky) abstraction on top of it :)
171.
▲
by
dikei
3y ago
RocksDB is awesome, though don't use it with regular glibc malloc because it can cause extreme memory fragmentation. Use jemalloc, tcmalloc, or mimalloc: basically any other advance malloc libraries that can effectively reuse memory.
172.
▲
by
dikei
3y ago
The recommended libraries are still too low-level for me, for supported languages, I myself prefer using Google's Tink: * Sane defaults and API * Built-in integration with external KMS service * Excellent documentation
173.
▲
by
dikei
3y ago
KMS is often used to store KEKs only, you'd still have to create and manage DEKs and use AEAD for actual data encryption.
174.
▲
by
dikei
3y ago
Almost a decade ago, when QtWebEngine replaced QtWebkit as the recommended way to embedded HTML capability in Qt apps.
175.
▲
by
dikei
4y ago
I'm not the original poster you replied to, just a passer by.
176.
▲
by
dikei
4y ago
Sure, unless your sharding/partitioning keys need to be derivable from the business keys.
177.
▲
by
dikei
4y ago
Pass a certain point, you ought to think about whether to keep using a RDBMS as a K-V store or switch to a real distributed K-V store like Cassandra, ScyllaDB, DynamoDB and the like About hot spots, it has always been an issue with K-V stor
178.
▲
by
dikei
4y ago
"Appeal to authority" doesn't prove your point buddy, especially if that "authority" is yourself.
179.
▲
by
dikei
4y ago
Same language does not necessarily mean Buck2 will provide the same API as Bazel to write language rules.
180.
▲
by
dikei
4y ago
Exactly, one of the key selling point Bazel/Buck is their caching systems: very high cache hit rate, with no inconsistency, which allows very fast incremental build: 0-change build takes close to 0 seconds.
More ›