News for hackers. Stuff that matters.
Re:Firebase is Joining Google by johns on Tuesday October 21, 2014 @02:09PM (#8488796)
Startup dilemma pre-acquisition: "they're just a startup! how will I know they'll be around in 12 months?! so risky!"

Startup dilemma post-acquisition: "they're no longer in control! how can I trust they'll be around in 12 months!? so risky!"

Re:Firebase is Joining Google by christiansmith on Tuesday October 21, 2014 @03:02PM (#8489106)
I'd like to take that devil by the horns and strongly suggest that companies like Firebase, who clearly deliver a critical infrastructure dependency for anyone using their service, should open source their platform as an act of good faith toward their customers.

No one wants to run yet another cluster, but anyone with an eye to business continuity ought to want the assurance that they can migrate to and from their own servers if that need should arise.

That might not be in the short term interests of Firebase, but it's definitely in the long term interests of their customers. Why would anyone ever base the future of their own business on the exit needs of another company's investors? It is a ridiculous risk. As much as I love what Firebase has built, I'd never use it for anything more than a toy project for that exact reason.

Basho, ElasticSearch and Docker(?) seem to be on a good path with commercial open source models. Is there any reason that a startup like Firebase couldn't do both? Offer their open source product as a service with non-critical value adds? GitHub is another example that comes to mind. If they were to get bought and shut down, it would be a pain in the ass to set up new remotes, but no one would have to stop using git.

Re:Firebase is Joining Google by kenjackson on Tuesday October 21, 2014 @08:33PM (#8490946)
One company similar in services to FireBase is FanOut (fanout.io) and they share your open philosophy. Their server code is open source, and they make money by running it for you. I'm optimistic about FanOut and hope that they can be a success based on this model (and their service in general).
Re:Firebase is Joining Google by koolkao on Friday October 24, 2014 @07:23AM (#8503107)
Looks fascinating. Setup of the open source version seems quite involved, are there containers I can use to try it out?

For my applications in healthcare I'm often forced to use in-house servers.

Re:Firebase is Joining Google by jkarneges on Saturday October 25, 2014 @01:40AM (#8507325)
If you are using VMs in house, then an easy way to get going with Pushpin is to install Ubuntu Utopic and run "apt-get install pushpin".

It is also available in Debian jessie.

Re:Firebase is Joining Google by sanderjd on Tuesday October 21, 2014 @03:23PM (#8489270)
This is a great point. Just running the infrastructure is a big enough value-add. I wonder how well this is working for Discourse. Obviously a very different type of platform, but they're using this model and appear, from the outside, to be having success.
Re:Firebase is Joining Google by tburns on Tuesday October 21, 2014 @08:55PM (#8491002)
I'd also be very interested to see how things are turning out for Discourse as a business. I've been keeping an eye on OSS product + hosted businesses for awhile (Ghost being another one now).
Re:Firebase is Joining Google by lookingsideways on Wednesday October 22, 2014 @04:58AM (#8491951)
It's not just Discourse and Ghost. Wordpress has been doing this since way before those projects were started and there's no sign that they're going away any time soon.
Re:Firebase is Joining Google by SiVal on Tuesday October 21, 2014 @08:11PM (#8490884)
Maybe Google could open source it themselves. A lot of us didn't want to risk much on Firebase, because who knew what might happen to a small company. With the acquisition, we are now in the position of not wanting to risk a significant part of our business on an insignificant part of Google's.

What to do?

Google could resolve that by both hosting Firebase and open sourcing it. That way, you could outsource the critical Firebase management to Google and not have to build it yourself, while still having the security of knowing that if Google ever made it unavailable (shutting it down, worsening service, raising the price, etc.), you wouldn't be wiped out.

They already offer hosted database service for other OS databases. I hope they'll do the same with Firebase.

Re:Firebase is Joining Google by jimbokun on Tuesday October 21, 2014 @08:29PM (#8490935)
One interesting thing about the legacy of CouchDB is the sync protocol. There are now multiple implementations capable of syncing with each other, making it easy to migrate data to a different provider, even if the underlying implementation is different. I think there have been one or two forks and different service providers, and they can all exchange data without issue, as far as I know.
Re:Firebase is Joining Google by jchrisa on Tuesday October 21, 2014 @11:11PM (#8491339)
HTML5 - http://pouchdb.com iOS, Android, .NET, Java - http://developer.couchbase.com/mobile Hosted - http://www.iriscouch.com and http://cloudant.com Original - http://couchdb.apache.org

All of these are 100% open source and interoperable.

Re:Firebase is Joining Google by marpalmin on Wednesday October 22, 2014 @12:51AM (#8491498)
This is exactly why I went for couchbase and decided to avoid firebase.
Re:Firebase is Joining Google by skrebbel on Wednesday October 22, 2014 @02:38AM (#8491657)
Assuming you use PouchDB, how do you avoid syncing the entire database with all users?
Re:Firebase is Joining Google by willholley on Wednesday October 22, 2014 @08:37AM (#8492386)
database-per-user is a common pattern with CouchDB. If you need to aggregate data across your users for reporting etc then you can use a server-side replication to create a "master" database which is only accessible to your internal users.

You could also use filtered replication but it is: a) not scalable b) not secure (the whole db would still be accessible to all users)

Couchbase has a different spin on this via "channels" though I'm not sure how it interoperates with PouchDB.

Re:Firebase is Joining Google by jchrisa on Wednesday October 22, 2014 @10:17AM (#8492787)
Couchbase Sync Gateway's channels are just slices through the data. The mechanism is internal to the Sync Gateway (you write a JS function that says who can see which channels and which channels a doc belongs to.) Replicating clients don't Need to know about this filtering, so channels work great with all flavors of Couch.
Re:Firebase is Joining Google by jchonphoenix on Wednesday October 22, 2014 @02:07AM (#8491602)
Before making suggestions like this and getting the HN bandwagon to support this POV, perhaps we should put ourselves in the startup's shoes?

Forcing an open source on acquisition severely limits your exit options and lowers your acquisition value. In terms of the companies you've mentioned with commercial open source models, none of them are clear successes. All still have battles to fight. Open source is a really hard path to take, and it's littered with dead companies and zombies who's revenues have been cannibalized by their open source creations.

As much as the users feel like startup founders owe them something, startup founders are human like everyone else. They don't exist to be our slaves. Imposing rules like this on companies would result in fewer tools and companies overall as the companies themselves would no longer make economic sense.

Re:Firebase is Joining Google by christiansmith on Wednesday October 22, 2014 @02:17PM (#8494173)
> Before making suggestions like this and getting the HN bandwagon to support this POV, perhaps we should put ourselves in the startup's shoes?

As a founder, I am in a startup's shoes, and my intention was not to provoke an angry mob, but merely to state my own opinion. I don't want to use Firebase for anything my own revenue will depend on, and that's a shame, because they have made an awesome product.

> Forcing an open source on acquisition severely limits your exit options and lowers your acquisition value.

These acquisitions of 3 year old companies are always sort of disappointing to me. On the one hand, I'm truly inspired and encouraged see their measure of success. On the other hand, I'd really like to see more startups committed to building lasting companies that strive for win-win outcomes that include users, employees, investors and founders. This isn't supposed to be a zero sum game.

> As much as the users feel like startup founders owe them something, startup founders are human like everyone else. They don't exist to be our slaves.

With a company like Firebase, there's a chain of trust that's really important. They are not responsible for just their own individual users. They are responsible for other companies' users. The effects of everything they do are multiplied accordingly.

Part of offering a platform is the guarantee that "this thing you depend on to serve your users will not go away unexpectedly without leaving a viable alternative." That's not an unreasonable thing for someone to demand when they're building their house on your foundation. Their use of your service also represents an investment of their own developer time. You go away, they lose that investment. If you as the operator of a platform don't want to take on that level of responsibility, don't go into that business.

> Imposing rules like this on companies would result in fewer tools and companies overall as the companies themselves would no longer make economic sense.

Who said anything about imposing rules? You're putting words in my mouth.

There's a trend to throw VC money at open source force multipliers: http://words.steveklabnik.com/is-npm-worth-26mm

This isn't perfect and it contradicts my point about wanting to see sustainable companies, but I find it encouraging nonetheless. I think Firebase could have easily fallen into this category.

Re:Firebase is Joining Google by jchonphoenix on Thursday October 23, 2014 @12:08AM (#8496662)
I'm not trying to say your opinion is incorrect. Judging by your response, you took my comment a little too harshly.

I'm trying to point out that there is a very large number of companies where open sourcing on acquisition doesn't make sense. And there's also very serious financial risk to founders if they choose to adopt this idea. The way you've stated this suggestion, I'm afraid unsuspecting founders will adopt this policy and shoot themselves in the foot a few years down the line.

I draw a lot of this from personal experience. I just sold my company a few months back, I currently work at an open source company (which you've already mentioned as one of the "model" OSS companies), I have first hand experience with a company getting acquired that had this "open source" clause a few weeks back, and I'm also heavily involved in the due diligence process for many tier 1 VCs that look to invest in the infrastructure space.

Having been through all of that, I can say that my personal outcome would not have been possible had I had the "open source" clause for my company, and we would have needed to pivot hard. The company acquired with this clause lost a vast majority of its acquisition value because of this "open source" clause. It's basically become a talent acq. And from doing due diligence/working at an OSS company, it's become clear that most founders SEVERELY underestimate the challenges in building an OSS company. It's a double edged sword. And it's one where arguably the edge facing you is sharper than the one facing your market.

Re:Firebase is Joining Google by christiansmith on Thursday October 23, 2014 @11:53AM (#8498817)
I didn't take it personally at all and if you have the time and inclination I'd love to hear more about your experiences. Please feel free to email me. smith at anvil dot io.
Re:Firebase is Joining Google by jeswin on Wednesday October 22, 2014 @02:24AM (#8491624)
I was trying to respond to your pre-edit comment about fewer companies being started if we have such rules.

Most people start companies because they love what they are doing, want to make an impact, and to make a good living.

An interesting study would be whether open source startups are doing any better or worse than closed source companies. Do you have any links?

Re:Firebase is Joining Google by jchonphoenix on Wednesday October 22, 2014 @11:36AM (#8493173)
I don't have any links per say, but I have done extensive market research on this as it's a requirement in my job (I work at one of the aforementioned open source companies). A quick nitpick, regardless of what people publicly say to the press, I'm 100% positive that most companies are started with some financial motive.

It's not impossible to build a business around open source, but it's incredibly hard. Take MySQL for example. MySQL's initial pitch was this "We'll destroy 50% of the DB market, and then capture 25% of the remaining market." And MySQL the company never really made it. This is with arguably the largest pure technical market to ever exist (databases).

[dead]
Re:Firebase is Joining Google by jemfinch on Tuesday October 21, 2014 @06:36PM (#8490569)
There's a small triangle for that right next to the GP's username. This comment adds nothing to this conversation.
[dead]
Re:Firebase is Joining Google by matthewmacleod on Tuesday October 21, 2014 @05:14PM (#8490060)
But that's a thousand lines of code I don't have to write. And integrations I don't have to do. And libraries for lots of platforms.

I think you're undersstimating the added value – the point is that people don't have to bother setting up and maintaining all of those moving parts with a service like firebase.

Case in point, I was building a small real-time web serice this weekend; it's exactly the sort of thing that Firebase would be great for. But given that I couldn't run it locally, and that there's no migration path if they were to acquired and shut down, I had to implement a half-assed solution on my own. If Firebase had been open-source, I'd almost certainly have ended up forking over cash for them to host it anyway.

Re:Firebase is Joining Google by dude3 on Tuesday October 21, 2014 @08:06PM (#8490872)
The project in which I implemented this toolset is working great and it only took me one weekend to implement too. I am not saying Firebase is inferior at all.

Just, for my situation, I am not sure why I need to pay for that functionality when I can literally set it up in one day vs reading the documentation on how to set it up on Firebase in the same time.

I also control all outcomes and avoid ones like this where Google could potentially take over control of a large portion of your app.

My server side code is about 100 lines. This controls a chat server, chat rooms, youtube video commands. And its currently working just fine with 4,000 visitors a day on a vps that cost $5 a month.

Why not learn how to do it yourself? Especially if you already have vps. I am using varnish with multiple sites and it took a couple hours to set up. I am really confused on this.

Re:Firebase is Joining Google by jnbiche on Tuesday October 21, 2014 @09:13PM (#8491064)
I think you're vastly underestimating what Firebase offers, which you presumably didn't do in 100 lines of code:

1) Full user management services, including registration and password recovery 2) Extremely fine-tuned access control per resource 3) Complete, tested front-end libraries for AngularJS, Backbone, and other popular frontend libraries. 4) Much more reliability than socket.io in providing cross-platform, cross-mobile real-time messaging (believe me I've used and tested socket.io). socket.io may or may not work on a given platform, and it's no longer a very active project, either. 5) Full admin panel for database, including real-time data updates.

Look, for a chat app, you're absolutely correct that Firebase may be overkill. But very few of us that rely on Firebase for applications are limiting ourselves to chat apps.

That said, I'm not happy about this acquisition. And this is probably the last time I'll be burned like this by a PaaS company. I saved a lot of time by going with Firebase (much more than 100 lines of code) but I'm questioning whether it was worth it.

PS: I didn't downvote, although I was tempted after reading your "Why not learn" remark. I think you're right in the end that open source is the best solution, but you're very wrong to assume that people are using Firebase because they can't quite figure out how to make a 100-line Node app.

Re:Firebase is Joining Google by ulisesrmzroche on Wednesday October 22, 2014 @10:16AM (#8492782)
Socket IO is definitely an active project, the last commit was 9 days ago today.
Re:Firebase is Joining Google by jnbiche on Wednesday October 22, 2014 @01:09PM (#8493671)
Yes, it's picking back up now, but for a while it languished (half of 2013 with no commits, for example).

Also, check out the number of issues, some of which are pretty significant (although there are tons of ridiculous ones there, too). But if they're catching up -- and they appear to be -- that's great. It's a great project.

Re:Firebase is Joining Google by christiansmith on Tuesday October 21, 2014 @05:19PM (#8490088)
Don't forget about persistence. Creating a horizontally scalable database isn't likely to be a trivial matter. Somehow I don't think Twitter Bootstrap is going to be much help there.

Firebase has solved many harder problems than you and I are ever likely to have to deal with and they deserve full credit for that.

Re:Firebase is Joining Google by icedog on Tuesday October 21, 2014 @08:37PM (#8490957)
We don't know how "solved" these questions are because it's closed source.
Re:Firebase is Joining Google by Nekorosu on Tuesday October 21, 2014 @05:38PM (#8490231)
Bootstrap and Angular? Why? I'm pretty sure the core idea of FireBase is being usable with any JavaScript client-side.
Re:Firebase is Joining Google by rakoo on Tuesday October 21, 2014 @06:32PM (#8490557)
I don't see MongoDB. Is that on purpose ?
Re:Firebase is Joining Google by dude3 on Tuesday October 21, 2014 @05:24PM (#8490133)
+ Redis
Re:Firebase is Joining Google by justsee on Tuesday October 21, 2014 @07:06PM (#8490685)
When building our realtime platform we quickly realised socket.io fell over spectacularly with serious traffic, and that all other hefty realtime services did not use it.

There has been lots of movement with the bigger release but nothing that has interested us in going back to it.

Re:Firebase is Joining Google by ddorian43 on Tuesday October 21, 2014 @07:34PM (#8490779)
so what did you use ?
Re:Firebase is Joining Google by justsee on Tuesday October 21, 2014 @08:10PM (#8490879)
Well the memory leaks and approach to fallback connections led to it being more sensible to roll our own.

We've only needed to handle concurrent connections in the 1-10k range though.

There are really better c++ and erlang implementations we've investigated but won't pull those off the shelf till needed.

Obviously there's loads of great realtime-as-a-service offerings like Firebase and Pusher that make sense for a lot of use cases, just not ours.

We were always uncomfortable with relying on a third party for a core aspect of infrastructure, and this acquisition introduces uncertainty that we don't have to worry about.

Re:Firebase is Joining Google by Xixi on Tuesday October 21, 2014 @08:56PM (#8491006)
I've not tried it yet, but Poxa [1] looks quite promising: it's an Elixir app that is supposedly compatible with Pusher libraries.

[1] Poxa: https://github.com/edgurgel/poxa

Re:Firebase is Joining Google by ggreer on Tuesday October 21, 2014 @02:38PM (#8488967)
The solution I've come up with is a pledge to release the source code if the product dies.[1] We've done this at Floobits, and it makes our users' lives less stressful.[2]

1. http://geoff.greer.fm/2012/09/19/a-responsible-product-sunse...

2. https://floobits.com/pledge

Re:Firebase is Joining Google by jamesisaac on Tuesday October 21, 2014 @05:54PM (#8490344)
Nice to see someone else viewing pledges as a potential solution.

Something I think would make this even better, is if the pledges were standardised, so they followed some mutually agreeable guidelines. I had a go at doing this here:

https://github.com/jamesisaac/pledges

I have it in place on my app (https://nachapp.com), and plan it include some/all of the pledges on future products I launch. Haven't yet come in contact with any other founders who are up for including it on their product... but if you like the idea and want to help improve the draft (even if it's just for the "long-term service" pledge), feel free to get in touch.

Re:Firebase is Joining Google by baddox on Tuesday October 21, 2014 @02:52PM (#8489056)
What good is a pledge? Once the product dies, there's presumably little incentive to abide by it.
Re:Firebase is Joining Google by loumf on Tuesday October 21, 2014 @03:11PM (#8489174)
I have worked at startups that people could believe would fail. We used source code escrow services that release the code to customers if we went out of business. Any of them would have been free to open-source.
Re:Firebase is Joining Google by bigtunacan on Tuesday October 21, 2014 @04:28PM (#8489739)
Up-voted and seconding. I have worked at startups that have done the same thing. I think this is not an uncommon practice.
Re:Firebase is Joining Google by btown on Tuesday October 21, 2014 @10:49PM (#8491300)
Any recommendations as to reputable code escrow services? I'd imagine there are some misbehaving players out there.
Re:Firebase is Joining Google by loumf on Wednesday October 22, 2014 @11:22AM (#8493104)
Never heard of a bad actor. I think you just choose a law firm, insurance company, big 4 accounting firm. That sort of company.

They just need to safeguard the code drops and execute the transfer at the proper time. Like reading a will.

Re:Firebase is Joining Google by ggreer on Tuesday October 21, 2014 @02:58PM (#8489085)
Little incentive? Even assuming sociopathic tendencies, it doesn't make sense to renege on the pledge and be branded a money-grubbing liar. The internet has a long memory, and people would not trust you in the future.
Re:Firebase is Joining Google by sliverstorm on Tuesday October 21, 2014 @03:56PM (#8489510)
How about the pain-in-the-butt that is organizing, packaging, and releasing an organic network & development environment when you have other bigger things on your plate? I'm sure there are a few companies here and there with everything already nicely packaged. Yet, most places I've worked, it would be a herculean effort to pull the tangled jungle that is the internal network & development environment into one halfway-functional package.

It's less than ideal, but it is usually extremely low on the list of priorities as well as virtually untestable, unless the business model involves a large number of functionally identical VLAN's.

Also, names of people are usually not very strongly attached to products.

Re:Firebase is Joining Google by seanflyon on Tuesday October 21, 2014 @04:27PM (#8489727)
Who said anything about organizing or packaging? Just put the code up on Github with a reasonable license and walk away. Running and maintaining is of course still a problem, but you can hardly expect a company that is out of business to do that.
Re:Firebase is Joining Google by ufmace on Tuesday October 21, 2014 @05:42PM (#8490258)
You may have the code, but there might still be a huge pile of problems. Such as:

How many application variables are hard-coded to your company's specific network and server configuration?

Have you fully documented the configuration of every related server, checked that in, and kept it up to date?

Are the required versions of every dependency well documented?

Does it use any third-party packages that you have modified, but never checked into your source control?

Is any part of it dependent on some massively expensive piece of software or data set that you happen to have easy access to for some reason?

Re:Firebase is Joining Google by seanflyon on Tuesday October 21, 2014 @07:21PM (#8490744)
I completely agree that open sourcing the project does not guarantee that the project will continue to function. I also think that after a company goes out of business they have no responsibility to keep their project functioning. Once they open source it, anyone is free to put in the work to keep it going and I can't think of a better guarantee a company could reasonably give.
Re:Firebase is Joining Google by danielweber on Tuesday October 21, 2014 @05:14PM (#8490059)
"Just put the code up" isn't always that easy.
Re:Firebase is Joining Google by dhimes on Tuesday October 21, 2014 @05:43PM (#8490267)
Not to be a dick, but

"One thing we do want to make clear: Svpply is not going away. We’ll continue to bring our users new products each day"

https://news.ycombinator.com/item?id=7939934

And as dotBen posted, from their blog:

"One thing we do want to make clear: Svpply is not going away. We’ll continue to bring our users new products each day"

And if you follow the comments you'll see that some believe that these promises aren't even meant to be long term. So, simply, we would be stupid to bank on it.

Congratulations to the team, though! It shows a great and determined effort, something I greatly admire. And hopefully a means of maintaining trust will emerge.

Re:Firebase is Joining Google by baddox on Tuesday October 21, 2014 @03:53PM (#8489487)
> Even assuming sociopathic tendencies, it doesn't make sense to renege on the pledge and be branded a money-grubbing liar.

But that's just the same incentive for a company to continue providing the same level of service after being acquired.

Re:Firebase is Joining Google by stonemetal on Tuesday October 21, 2014 @03:27PM (#8489289)
In general it could be taken as a legally binding statement so if they are bought out and shut down there would be an avenue to pursue with the new owners.

The couple of small companies that I have worked for that had such a pledge took it seriously. They would hand source for every release over to an escrow company ensuring availability after company death.

Re:Firebase is Joining Google by baddox on Tuesday October 21, 2014 @03:54PM (#8489491)
Yes, the legal route sounds at least plausible. I don't know if there's any precedent or how reliable such a contract could be made.
Re:Firebase is Joining Google by james_in_the_uk on Tuesday October 21, 2014 @05:43PM (#8490263)
It's not plausible because insolvent / bankrupt companies have the option to walk away from onerous contracts if it is in the interests of the debtors not to honour them. In this case, the idea of open sourcing the software UPON bankrupcy could destroy any remaining value left in the business (value of IP) which would otherwise be realisable to distribute to debtors.
Re:Firebase is Joining Google by grinich on Tuesday October 21, 2014 @03:32PM (#8489320)
Why not just open source it from the beginning? :)

https://github.com/inboxapp/inbox/blob/master/LICENSE

Re:Firebase is Joining Google by wlesieutre on Tuesday October 21, 2014 @04:16PM (#8489639)
I know some folks at Basho where they do just that with Riak, a high-availability distributed database. It's not an unworkable strategy, and clients know the product's not going to vanish out from under them.

https://github.com/basho

Re:Firebase is Joining Google by venomsnake on Wednesday October 22, 2014 @03:07AM (#8491712)
I prefer something enforceable in court.
Re:Firebase is Joining Google by otterley on Wednesday October 22, 2014 @11:45AM (#8493232)
Putting the source in escrow is a much better -- and more enforceable -- option than a mere pledge. This places the ability to release into the hands of a third party who is obligated to do so in the event that the conditions are met.
Re:Firebase is Joining Google by georgemcbay on Tuesday October 21, 2014 @02:36PM (#8488961)
Being acquired by Google almost solves the dilemma in that statistically you can be nearly certain that whatever product or service a newly acquired company provides will be a dead project within 2 years.

I know that the acquirees are saying otherwise in this case (and Google is surely saying the same to them), and they might be right this time, but "nothing will change" is virtually always the line, until it suddenly isn't.

FWIW, I'm not even knocking Google (or Firebase) for this state of affairs; just noting that anyone paying attention will have seen this play out dozens of times in a way that is unpleasant in the medium to long term for anyone relying on the acquired company's technology.

Re:Firebase is Joining Google by jgable on Tuesday October 21, 2014 @02:17PM (#8488847)
Solution: "They're a stable, growing business that is profitable and intends to be in business for themselves for a long time! Not as risky!"

Not under the control of the customer, obviously.

Re:Firebase is Joining Google by skrebbel on Tuesday October 21, 2014 @02:15PM (#8488834)
Good point. As a startup owner myself, I somehow feel more comfortable depending on startups than on BigCo's (hence the rant), but maybe you're right that that's more emotional than rational.
Re:Firebase is Joining Google by polarix on Tuesday October 21, 2014 @02:44PM (#8489007)