News for hackers. Stuff that matters.
Re:Why did we choose Rust to develop TiKV? by bpicolo on Wednesday September 27, 2017 @08:46AM (#15347205)
Anybody have experience with TiDB? How does it stack up against CockroachDB? Seems hard to find comparison. Probably hear less about it mostly because it's developed in China? Looks like it's an impressive piece of tech, though.
Re:Why did we choose Rust to develop TiKV? by lobster_johnson on Wednesday September 27, 2017 @12:25PM (#15349395)
A big difference is that TiDB is not ready for production yet.

Having followed to the project for a while, another distinction is that TiDB is operationally more complex. You need to build and deploy TiDB (high-level query engine), TiKV (key/value store) and PD ("placement driver", which coordinates sharding and data migration) separately. TiDB is stateless and can be scaled freely, but TiKV and PD are both stateful and implement their own distributed consensus systems. PD actually embeds Etcd, whereas TiKV has its own Raft implementation in Rust. Compare this to Cockroach, which has a single monolithic daemon that you deploy everywhere, which contains both the distributed query engine, the key/value store, consensus/cluster coordinator, etc. (There may be benefits or drawbacks to the difference in design; I don't know the internals of either project well enough to debate that.)

For an internal project I'm working on, running TiKV standalone actually looks very interesting, but it's not very well documented yet.

Re:Why did we choose Rust to develop TiKV? by sanxiyn on Wednesday September 27, 2017 @09:10AM (#15347398)
http://weekly.pingcap.com/2016/10/17/how-we-build-tidb/#atom... explains their main difference from CockroachDB.
Re:Why did we choose Rust to develop TiKV? by bpicolo on Wednesday September 27, 2017 @09:19AM (#15347485)
Mostly curious how it works out in practice. Performance, etc.