Live data from Hacker News

Facebook and Heroku

blog.heroku.com

11–20 of 65 posts

Re: Facebook and Heroku

#11

At Dreamforce a couple weeks ago I was wondering how sfdc was going to position Heroku since sfdc has already put a lot of time/effort into selling force.com. Seemed like they were trying to make the argument: "You use heroku for facebook apps and force.com for everything else!" This makes even more sense in that context.

Actually, it's more like this:

Use Force.com for rapidly developing an app that integrates with Salesforce or fits within the limited scope of what that platform offers. For everything else, use Heroku.

Re: Facebook and Heroku

#12

Remind anyone of the Facebook/Joyent partnership 3-4 years ago?

That was just a marketing offer, where FB app developers got a month of Joyent for free. This is an integration that's much more impressive for getting developers past hosting, permissions, security, etc. to their first line of code much, much faster. It took me 10 minutes to get to "Hello, World."

Re: Facebook and Heroku

#13
Amazing. Way back in 2007 I taught myself how to code by making small Facebook apps. I started out by editing live PHP files on a shared server from A Small Orange ($3.33 a month!). After a few months I a few apps with traffic around 30k DAU. A Small Orange would automatically shutdown the apps every couple hours. I'd email them and complain about their shoddy hosting service. They'd always respond instantly apologizing and putting the apps back online. After a couple weeks I realized that I had a scaling problem and began learning how to setup a dedicated server. Over the next two years I spent about 80% of my time wrestling with hardware, setting up load balancers, configuring cache and db servers, and other operational nightmares. I had little time or energy to work on improving my apps or building new products.

Then I discovered Heroku. I would have done anything to have this when I started out. The platform teaches (forces) you how to build a scalable architecture. You can try out new ideas for apps for essentially nothing (1 dyno is zero dollars). Since moving to Heroku I spend about 5% of my time working ops. The craziest thing is I've actually saved money since switching from dedicated hardware to Heroku. I was really bad at configuring servers and the stuff I built was inefficient and expensive. Heroku's cloud stacks are optimized better than my old hardware environment.

Heroku's architecture is great for wild traffic swings common with Facebook apps. Well except for their database services. They don't seem reliable or scalable. I prefer RDS.

In sum, Facebook and Heroku is a great starting place for learning to build web apps. I would have done anything to have this tech four yeas ago.

Re: Facebook and Heroku

#14
post #13

Amazing. Way back in 2007 I taught myself how to code by making small Facebook apps. I started out by editing live PHP files on a shared server from A Small Orange ($3.33 a month!). After a few months I a few apps with traffic around 30k DAU. A Small Orange would automatically shutdown the apps every couple hours. I'd email them and complain about their shoddy hosting service. They'd always respond instantly apologiz…

Out of curiosity, what makes you think our data services aren't reliable or scalable?

Re: Facebook and Heroku

#15
Anyone see a list of what framework is being used for each language? I created a Ruby app, and it's using Sinatra.

Edit: here's links to all the app templates, for anyone interested:

Python: https://github.com/heroku/facebook-template-python

Ruby: https://github.com/heroku/facebook-template-ruby

Node.js: https://github.com/heroku/facebook-template-nodejs

PHP: https://github.com/heroku/facebook-template-php

Re: Facebook and Heroku

#18

This is pure win. The screencast on this post shows that with one click you get a deployed app (in the language you choose) that ships with an app template that uses the Facebook APIs to get you started. We're witnessing a Facebook app that creates real living Facebook apps. Heroku continues to impress with insanely easy onboarding of folks new to deploying web apps, and building features the way things should work.…

The fact that the boilerplate app includes working examples of using the various Facebook APIs is the icing on the cake, as far as I'm concerned. I wrote a couple of apps back in the relatively early days of the API, and I remember being very frustrated by the state of the documentation and the lack of useful examples[1], and something like this would have saved me an absurd amount of time.

1: It's been a few years since I last had to do this, so the situation might have improved since then.

Re: Facebook and Heroku

#19
post #8

As a Python developer I was delighted to see Python in the list of supported languages. After cloning the repo you can notice it's just a standard Flask site with Jijna2 templates and helpers for accessing Facebook's API. I can see this as a really easy way to start developing for Facebook and also Python.

And here's their template: https://github.com/heroku/facebook-template-python

Re: Facebook and Heroku

#20
post #11

At Dreamforce a couple weeks ago I was wondering how sfdc was going to position Heroku since sfdc has already put a lot of time/effort into selling force.com. Seemed like they were trying to make the argument: "You use heroku for facebook apps and force.com for everything else!" This makes even more sense in that context.

Actually, it's more like this: Use Force.com for rapidly developing an app that integrates with Salesforce or fits within the limited scope of what that platform offers. For everything else, use Heroku.

I agree in practice, although I don't think that's the way sfdc's marketing team has presented it at all. In fact, I don't think I've ever heard anyone connected w/ sfdc ever use the phrase "limited scope of what our platform offers" for force.com's offerings, but I'm glad not everyone over there is drinking the kool-aid :-)
Post reply on HN