News for hackers. Stuff that matters.
Re:Introducing Cloud Spanner, a Global Database Service by kornish on Tuesday February 14, 2017 @01:38PM (#13645922)
> It will be interesting if Amazon and Microsoft choose to compete with Google on this service. If we get to the point where you have databases, compute, storage, and connectivity services from those three at equal scale, well that would be a lot of choice for the developers!

There are also plenty of choices evolving for developers who aren't looking for hosted solutions (which can sometimes be a showstopper for enterprise on-prem deployments). There's a growing ecosystem of distributed open-source databases to look out for too.

Take Citus, for instance – a Postgres-compatible distributed store which automatically parallelizes normal SQL queries across machines. It's as easy to set up as adding an extension, and people are doing some staggering things in prod with it.

Different audience from BigQuery and Spanner, but no less exciting.

Disclaimer: no professional association, but love their product and the team.

Re:Introducing Cloud Spanner, a Global Database Service by craigkerstiens on Tuesday February 14, 2017 @01:57PM (#13646077)
Craig from Citus here. Thanks for the kind words. We've seen a lot of people scale-out transactional workloads with Citus as well. In particular, we've seen a lot of multi-tenant apps that need to keep scaling beyond a single node when they're running into memory or compute issues.

If you are looking for something that is more Postgres flavored (meaning we're just an extension to it so you get all the good stuff of Postgres such as JSONB, PostGIS, etc.) then we hope we'd be a good fit. And we run a managed service on top of AWS as well (https://www.citusdata.com/product/cloud) built by the team that built Heroku Postgres. If curious on pricing you can find it at https://www.citusdata.com/pricing/

Re:Introducing Cloud Spanner, a Global Database Service by sandGorgon on Tuesday February 14, 2017 @02:12PM (#13646199)
It would be very interesting to have your product at the 200-300$ pricepoint. Currently, the lowest tier starts at almost 2000$ per month for the high availability version.

I'm not trying to compare on a per-mb level, but it would be nice for smaller scale workloads.

Re:Introducing Cloud Spanner, a Global Database Service by craigkerstiens on Tuesday February 14, 2017 @02:15PM (#13646236)
Helpful feedback, we do have a development plan for $99, but it's not really intended for production workloads. If you only have 10 GB of data we'd heavily recommend going with something like RDS or Heroku Postgres. At that amount of data single node Postgres works great.
Re:Introducing Cloud Spanner, a Global Database Service by StreamBright on Tuesday February 14, 2017 @03:46PM (#13646995)
I really like your attitude towards something like this, when your product would be an overkill for a use case and you just recommend a different product. I also really like your blog posts about Postgres, we use it a lot for developers explaining a bunch of internals, like the one with how to paginate in Postgres.
Re:Introducing Cloud Spanner, a Global Database Service by miketery on Tuesday February 14, 2017 @10:44PM (#13649514)
Link to blog post?
Re:Introducing Cloud Spanner, a Global Database Service by craigkerstiens on Tuesday February 14, 2017 @11:38PM (#13649738)
I believe this is the one they're referring to on pagination: https://www.citusdata.com/blog/2016/03/30/five-ways-to-pagin...

Though hopefully you'll find many more useful ones about Citus and Postgres broadly on our blog: https://www.citusdata.com/blog/

Re:Introducing Cloud Spanner, a Global Database Service by sandGorgon on Tuesday February 14, 2017 @03:15PM (#13646707)
RDS is not single node - its multi-AZ replicated. And that's what we are paying 300$ instead of 99$ for.

Imagine.. RDS is literally the ONLY place where you can buy a 10 GB data multi-AZ replicated, snapshotted and managed postgresql.

Its pretty much a monopoly, now that Google seems to have officially closed the book on ever supporting postgresql.

Re:Introducing Cloud Spanner, a Global Database Service by ShaneOG on Tuesday February 14, 2017 @03:54PM (#13647068)
> Imagine.. RDS is literally the ONLY place where you can buy a 10 GB data multi-AZ replicated, snapshotted and managed postgresql.

Not true. I was looking for a hosted Postgres provider and discovered these two:

https://aiven.io/postgresql (tried it, worked excellently)

https://www.elephantsql.com

Re:Introducing Cloud Spanner, a Global Database Service by tscanausa on Tuesday February 14, 2017 @04:12PM (#13647231)
> now that Google seems to have officially closed the book on ever supporting postgresql.

I would be hesitant to say that this is a fact.

Re:Introducing Cloud Spanner, a Global Database Service by dragonwriter on Wednesday February 15, 2017 @12:31AM (#13649968)
> Its pretty much a monopoly, now that Google seems to have officially closed the book on ever supporting postgresql.

Uh, how? I wouldn't be surprised to see a Cloud SQL-like managed Postgres service from Google.

While there's obviously some overlap in the potential market for any relational datastore service, Spanner doesn't really overlap with a cloud Postgres service as much as Cloud SQL does.

Re:Introducing Cloud Spanner, a Global Database Service by sandGorgon on Wednesday February 15, 2017 @03:39AM (#13650591)
I would be. its been years and google and has been building out various pieces of infrastructure around mysql - including cloud spanner.

the issue is that the migration path of self hosted mysql to cloud sql to spanner is pretty well defined. I dont see postgresql being strategically important or relevant to google for anything.

if I was a startup deciding on my database, there's a lot less compelling reasons to choose postgresql from the point of view of long term viability. hell, I can pretty much do a back of the envelope calculation on how much will it cost me to support 100 million users on mysql.

Is it safe to think that Evernote and Snapchat - startups who are giant success stories - are google mysql hosted? (in some form.. maybe even spanner)

So uber, snapchat, Google, Evernote and a clear cut path for upward scale.

I have very less hope for postgresql on google cloud.

Re:Introducing Cloud Spanner, a Global Database Service by dragonwriter on Wednesday February 15, 2017 @12:26PM (#13653638)
> its been years and google and has been building out various pieces of infrastructure around mysql - including cloud spanner.

What does Cloud Spanner have to do with MySQL? It's neither API nor SQL-dialect compatible with MySQL. If there are MySQL bits used somewhere in the implementation, they are well hidden, and irrelevant to users.

> the issue is that the migration path of self hosted mysql to cloud sql to spanner is pretty well defined.

So what? Were there a Cloud SQL-like Postgres offering, the same would be true; Spanner is no closer to MySQL than Postgres. (If anything, it's SQL dialect is a little closer to Postgres's dialect than MySQL's, though not so much that you'll get away without doing substantial conversion going from either.)

Re:Introducing Cloud Spanner, a Global Database Service by manigandham on Wednesday February 15, 2017 @10:36AM (#13652679)
You keep saying this - have you actually talked to them? Find some PMs and send a few emails. Postgres is definitely in progress.
Re:Introducing Cloud Spanner, a Global Database Service by poooogles on Tuesday February 14, 2017 @06:03PM (#13648133)
>Google seems to have officially closed the book on ever supporting postgresql.

Er, that's a bet I'd strongly suggest you didn't make.

Re:Introducing Cloud Spanner, a Global Database Service by ecnahc515 on Wednesday February 15, 2017 @12:01AM (#13649828)
Right? Apps written to use Postgres aren't just going to be re-written to use Spanner.

If anything, hosted Postgres from Google Cloud will be priced in a way that makes Spanner some what more attractive, as a way to get conversions to Spanner in the long-run.

Re:Introducing Cloud Spanner, a Global Database Service by manigandham on Tuesday February 14, 2017 @11:58PM (#13649814)
There are several managed hosting companies that will run Postgres (and other databases) for you on public clouds. Compose, Aiven, ElephantSQL, Database Labs, Heroku, etc. There are all kinds of price points and GCP is working on supporting postgres internally.

How many nodes are you looking to run for $300/month? Unless you have more than 150gb/node of data, you don't really need a distributed database which is what Citus is for.

Re:Introducing Cloud Spanner, a Global Database Service by sandGorgon on Wednesday February 15, 2017 @03:46AM (#13650623)
not at the price point that RDS is at. the starting cost of a multi - az deployment is lower. For a startup thats just starting out, it is the best and safest choice. Even heroku, but im not very sure about its reliability versus rds.

Please note what im paying for is availability and reliability.. not for a database per se.

And im not even talking Aurora. That stuff is going to blow every other price point out of the water at probably higher reliability metrics.

Re:Introducing Cloud Spanner, a Global Database Service by zedpm on Wednesday February 15, 2017 @11:27AM (#13653137)
RDS is only multi-AZ if you want it to be (and are willing to pay twice as much).
Re:Introducing Cloud Spanner, a Global Database Service by mistermann on Tuesday February 14, 2017 @02:19PM (#13646282)
As someone who works (in part) in the MS SQL field, is it irrational to be a bit worried about the effects some of these platform advances might have one one's career?

For example, being a MSSQL performance tuning expert requires years of experience and probably pays very well, but just the other day I read an anecdotal story where someone switched a large BI database to use columnar indexes, allowing them to replace very complex (extreme manual tuning to achieve acceptable performance) queries with just standard SQL with comparable performance.

How long until the scale, pricing, and now transparent & full(?) sql compliance offered by these cloud platforms starts to make traditional RDBMS platforms a niche platform?

Re:Introducing Cloud Spanner, a Global Database Service by aaronblohowiak on Tuesday February 14, 2017 @02:25PM (#13646322)
Microsoft has a history of sales and support that will allow them a certain longevity. They also have less "brand hate" than Oracle. I dont think MSSQL is going to be like Sybase any time soon, but I probably wouldn't focus on that stack starting now if you are into the startup or california scene. For many places in the USA, MS is the way to go.

EDIT: Also, most DB users don't need global-scale databases.

Re:Introducing Cloud Spanner, a Global Database Service by Godel_unicode on Tuesday February 14, 2017 @03:18PM (#13646735)
Not sure if this is what you intended, but you are aware that SQL server was developed in partnership with Sybase until the mid-90s (when they were substantially the same product) right?
Re:Introducing Cloud Spanner, a Global Database Service by aaronblohowiak on Tuesday February 14, 2017 @04:22PM (#13647322)
Neat history! I was not aware of that! I meant to imply that sybase's rdbms offering is no longer a big player and I would not want to bet the future of my career on being an expert in it.
Re:Introducing Cloud Spanner, a Global Database Service by sah2ed on Tuesday February 14, 2017 @06:01PM (#13648118)
> ... but I probably wouldn't focus on that stack starting now if you are into the startup or california scene.

That is not necessarily a foregone conclusion. In tandem with their marketing of Azure, MS is pushing SQL Server on Linux heavily [0].

"SQL Server is Windows-only" is no longer a valid argument to choose another RDBMS if a startup uses lots of MS tooling but deploy on Linux servers.

[0] https://www.microsoft.com/en-us/sql-server/sql-server-vnext-...

Re:Introducing Cloud Spanner, a Global Database Service by mistermann on Tuesday February 14, 2017 @05:09PM (#13647694)
I'm not saying MS is going to abandon the platform, but to me it seems entirely possible that "very soon" these cloud platforms using cheap, shared, commodity hardware might be so affordable and technically capable that it might be a no brainer choice unless you have a very good reason to use MSSQL (kind of the opposite today, on-prem by default, cloud if necessary).
Re:Introducing Cloud Spanner, a Global Database Service by jksmith on Tuesday February 14, 2017 @06:16PM (#13648226)
What it will do is encourage MSFT to drop the cost of MSSQL licenses in Azure.
Re:Introducing Cloud Spanner, a Global Database Service by dragonwriter on Wednesday February 15, 2017 @12:54AM (#13650053)
> As someone who works (in part) in the MS SQL field, is it irrational to be a bit worried about the effects some of these platform advances might have one one's career?

There's a reason why regulated (including self-regulated) professions have continuing education requirements; progress happens and you become obsolete if you don't keep up with it.

Just because tech isn't regulated doesn't mean it's any more sensible to expect to remain valuable without keeping up with progress in the field.

That being said, MSSQL experts will likely have good-paying opportunities for quite a while, for the same reason thats then case for any well-established enterprise technology: lots of systems are going to be around using it long after it has become distressingly uncool to spend time learning.

Re:Introducing Cloud Spanner, a Global Database Service by hosh on Tuesday February 14, 2017 @02:37PM (#13646439)
I write software as a developer. This is how I earn my livelihood.

Four years ago, I determined that while development work might seem to be near the top of the food chain, there will at some point where my work will be replaced by AIs.

This is not so different from how word processors replaced the specialist job of typesetters. Word processors make "good enough" typesetting. You can still find typesetters practicing their craft; the rest of us use word processors and don't even think about it.

At the time, I was learning to put the Buddhist ideals of emptiness and impermanence to practice, and to become more emotionally aware: the _main_ reason I had thought I would never be replaced by an AI writing software has more to do with wishful thinking and attachment than any clear-sighted look at this.

I also made a decision to work on the technologies to accelerate this. Rather than becoming intoxicated by the worry, anxiety, and existential anguish, I decided try to face it. Fears are inherently irrational, but just because they are irrational does not mean it is not what you are experiencing. Fears are not so easily banished by labeling them as irrational. Denial is a form of willful ignorance.

Now, having said all that, whether our tech base will come to that, who can say?

Since then, I have been tracking things like:

Viv - a chat assistant that can write it's own queries

DeepMind's demonstration of creating a Turing-complete machine with deep learning using a memory module.

I watched a tech enthusiast write a chat bot. He does not write software professionally. Talking with him over the months when he tinkers with in his spare time, I realized that in the future, you won't have as many software engineers writing code; you would learn how to _train_ AIs when they become sufficiently accessible to the masses. Skills in coaching, negotiation, and management becomes more important then some of the fundamental skills supporting software engineering. And like typesetting, I can see development work being pushed down the eco-ladder.

It's not surprising to me to see that Wired article about how coding becoming blue collar work. And even that will eventually be pushed down even further.

It's not surprising to me about Google's site-reliability engineering book, branding, and approach. I have done system admin work in the past, and I can already see traditional, manual sysadmin work being replaced.

It's easy to get nihilistic about this, but that isn't my point here either. I know the human potential is incredible, but I think we have to let go of our self-serving narratives first.

Re:Introducing Cloud Spanner, a Global Database Service by sjclemmy on Tuesday February 14, 2017 @03:42PM (#13646953)
I find this fascinating. There are a few ideas that are at play. One is the march of progress seeking to automate everything. The rationale of automation is to improve productivity. But what happens when everything is automatic? I don't see a corollary being played out at the moment. There are a small number of people reaping the benefits, and huge swathes of the population being marginalised and disenfranchised as a result.

The second idea that interests me is this idea of very high technology. It is built upon layer after layer of very clever tech year after year that I wonder how long it would take to start again from scratch if some disaster rendered a large part of one of these layers unusable.

For instance, if you were on a desert island, could you (would you want to?) build some piece of tech? An electric generator would be useful, perhaps. How long would it take to build? You'd need knowledge, raw materials, plant, fuel etc. It's not an easy solve. And that's way down the tech stack before you start talking about AIs. I suppose what I'm saying is, that the AI layer is based upon such high tech, that is inherently fragile, because it is so hard to do.

Re:Introducing Cloud Spanner, a Global Database Service by hosh on Tuesday February 14, 2017 @03:57PM (#13647102)
> There are a few ideas that are at play. One is the march of progress seeking to automate everything. The rationale of automation is to improve productivity. But what happens when everything is automatic? I don't see a corollary being played out at the moment.

I don't know! :-D

I don't know what society would look like from a purely technological point of view. From a spiritualist point of view, though, it could either go very well or very badly. When everything is automated, would people have enough time and space to really start asking the really big questions? Or would it accelerate and intensify existential anguish?

> There are a small number of people reaping the benefits, and huge swathes of the population being marginalised and disenfranchised as a result.

Yeah. Arguably, this has already happened.

> The second idea that interests me is this idea of very high technology. It is built upon layer after layer of very clever tech year after year that I wonder how long it would take to start again from scratch if some disaster rendered a large part of one of these layers unusable.

The stuff of sci-fi :-D Among them, alt-history novels (what happens when someone drops into a lower-tech era; you'd have to start from 0 ... literally, 0, as in Arabic numerals).

Open Source Ecology is trying to preserve some of this tech base. I find their aims awesome, though I am not sure how effective it is.

The flip side are things being spoken from well outside the techno-sphere, (for example, shamans and mystics) It is the perspective that the further evolution of human consciousness will, at some point, no longer require a technology or artifacts. Technology seen as the last crutch. The collapse of a high-technic civilization then sets the stage for a removal of that crutch, and humans learn to stand with two feet (so to speak).

Re:Introducing Cloud Spanner, a Global Database Service by justinhj on Tuesday February 14, 2017 @05:45PM (#13648008)
Anything that you can easily specify and describe in detail can be automated. In practise the world is filled with computers that need programming to cope with ever changing chaotic actions of our users. Personally I'm long on software developers, despite being very excited by how AI has blown up lately.
Re:Introducing Cloud Spanner, a Global Database Service by rpranav on Tuesday February 14, 2017 @07:44PM (#13648752)
Agree. I remember someone advising me against getting a degree in computer science, back in 2000. Argument was -- look at MS Word. what else you want to add to this? It has more features than you need.

Not a fair argument against the point made above, however, I believe we will find the next big challenge for software to solve as soon as traditional problems are commoditized/automated and considered solved. Also, just knowing how to code is not going to be enough. You must complement it with domain expertise to solve challenging unsolved real world problems.

Re:Introducing Cloud Spanner, a Global Database Service by lrem on Wednesday February 15, 2017 @04:03AM (#13650692)
I would say: quite long enough, but the scale/importance of traditional deployments will be going down through that time. If you're looking around the market regularly, you should have ample time to notice that gigs are not what they used to be, so maybe it's time to change area.
Re:Introducing Cloud Spanner, a Global Database Service by amalag on Tuesday February 14, 2017 @02:51PM (#13646547)
People are abusing databases like MSSQL to do things they may not be not good at. Large scale analytics is an example where databases like Infobright give amazing performance.