Show HN: FaunaDB, a strongly consistent, globally distributed cloud database
I feel like I need to note the pricing.  $0.01 per 1,000 queries.  That doesn&#x27;t sound like much, but it adds up.  Let&#x27;s say you make 1,000&#x2F;sec.  $0.01 * 60 seconds in a minute * 60 minutes in an hour * 24 hours in a day * 30 days in a month = $25,920.<p>Is that a lot?  I think it is.  Google Cloud Spanner costs $0.90&#x2F;hour per node or around $650&#x2F;mo.  Each Cloud Spanner node can do around 10,000 queries per second[1].  So, $650 to Google gets you 10x the queries that $25,920 to Fauna gets you.  I mean, for $25,920, you could get a Spanner cluster with 40 servers.  Each of those servers would only have to handle 25 queries per second to get you 1,000 queries per second.<p>I&#x27;m sure that people are going to question whether FaunaDB can actually do what it claims.  At this pricing, I can&#x27;t imagine someone actually seeing if they can live up to their claims.  They have a graph showing linear scaling to 2M reads per second.  Based on their pricing, that would be $630M per year.  For comparison, Snapchat committed to spending $400M per year on Google Cloud and another $100M on AWS (and people thought the spend was outrageous even for a company valued at tens of billions of dollars).  This is more money for the database alone.<p>Heck, it looks like one can get 5-20k queries per second out of Google&#x27;s Cloud SQL MySQL on a highmem-16 costing $1k&#x2F;mo[2].  That would cost $130k-$500k on FaunaDB.  It seems like the pricing of FaunaDB is off by a couple orders of magnitude.<p>Ultimately, Spanner is something built by people that published a notable research paper and used by Google.  Reading the paper, you can understand how Spanner works and be saddened that you don&#x27;t have TrueTime servers powered by GPS and atomic clocks.  FaunaDB has some marketing speak about how I&#x27;ll never have to worry about things ever again - without telling me how it will achieve that.<p>It&#x27;s also implemented in Scala.  This isn&#x27;t a dig on Scala or the JVM, but I use three datastores on the JVM and only one isn&#x27;t sad for it is Kafka.  But Kafka does very little in the JVM - it basically just leans on sendfile to handle stuff which means you don&#x27;t get bad GC cycles or lots of allocations and copying.<p>FaunaDB is a datastore without much information other than &quot;it&#x27;s great for everything and scales perfectly&quot;.  Well, at their pricing, they might be able to make it happen.  I mean, most customers would simply move to something cheaper as they got beyond small amounts of traffic due to the pricing.  60,000 queries per second?  That&#x27;ll be $18M per year from FaunaDB or $50k per year from Google.  It&#x27;s not even in the same ballpark.  If you really need to scale to 2M reads per second, $630M seems like a lot more than $1.6M for Spanner.<p>Maybe it&#x27;s an easy way to get some money off people that &quot;need a web scale database&quot;, but are actually going to be serving like 10 queries per second and are willing to spend $260&#x2F;mo to serve that.  If they hit it big, it shouldn&#x27;t be insane to scale it to 10,000 queries per second and milk $260k out of them each month for a workload that can be handled by a single machine.  That money also pays for decent ops people to run a big box and consult with the customer if they&#x27;re going towards 100k queries per second with a $2.6M monthly payment.<p>EDIT: looking over Fauna&#x27;s blog and some of their comments here, they seem to understand more than their marketing lets on.  Daniel Abadi is one of those people whose name carries weight in the databases world (having been involved with C-Store&#x2F;Vertica, H-Store&#x2F;VoltDB, and others).  While I haven&#x27;t read the Calvin paper, it looks like a good read.  I can see that they are using logical clocks and I can&#x27;t find it right now, but I thought I saw that they&#x27;re not allowing one to keep transaction sessions checked out - that all the operations must be specified.  So, it seems like there&#x27;s some decent stuff in there that&#x27;s currently being obscured by marketing-speak.  Still, the pricing seems really curious.<p>[1] <a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;spanner&#x2F;docs&#x2F;instance-configuration" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;spanner&#x2F;docs&#x2F;instance-configuration</a><p>[2] <a href="https:&#x2F;&#x2F;www.pythian.com&#x2F;blog&#x2F;benchmarking-google-cloud-sql-instances&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.pythian.com&#x2F;blog&#x2F;benchmarking-google-cloud-sql-i...</a>