Get Enterprise AppFog on Private Clouds and On Premises Today

PostgreSQL support is now live on AppFog!

As many of you already know, PostgreSQL is a phenomenal database technology. It’s an established and battle-tested ACID-compliant object-relational database with thousands of contributors in its open source community. For any PaaS seeking to offer a fully-rounded palette of database options to developers, Postgres is an absolute must-have. That’s why we’re thrilled to announce today that AppFog now supports Postgres in beta.

Offering PostgreSQL support is a special treat for us at AppFog because we use it fairly extensively under the hood. Amongst the many great database technologies currently available, it’s a personal favorite for several members of our dev team. We use it in particular for managing significant portions of our user system, and we rely on it extensively as a queryable read-through/write-through cache.

For AppFog users, linking up with a Postgres database is extremely easy. If you’re coding a Ruby Sinatra application, for example, you need only one Ruby gem (the “pg” gem), and establishing a connection can be done in just a few lines of code:

require "pg"

services = JSON.parse(ENV['VCAP_SERVICES'])
postgresql_key = services.keys.select { |svc| svc =~ /postgresql/i }.first
postgresql = services[postgresql_key].first['credentials']
postgresql_conn = {:host => postgresql['hostname'], :port => postgresql['port'], :username => postgresql['user'], :password => postgresql['password'], :dbname => postgresql['name']}
connection = PG.connect(postgresql_conn)

Clearly, this is just one example in one programming language, and even if you’re working in Ruby, your Postgres connection might look very different. But it needn’t be more complex than this. A few lines of code and the vast power of Postgres is at your fingertips.

From the very beginning, AppFog has supported MySQL and MongoDB, and PostgreSQL brings AppFog’s database offerings up to three. For us, this is just the beginning. In the coming months, we are planning on adding support to a number of other data storage technologies, including Redis (which is now one of our very highest priorities), neo4j, Memcached, and CouchDB. We will also very soon be updating our MongoDB offering to MongoDB 2.0.

We’ve been seeing staggering amounts of innovation in the database space in the last few years. New so-called NoSQL databases are emerging practically by the day, alongside hybrid columnar/non-relational options, graph databases, and many others. Enabling you to tap into that innovation by offering an expanding palette of database tools is one of the things that we’re most excited about here at AppFog.

For now, give Postgres a shot on AppFog. You will not be disappointed.

Share this post
Facebook Twitter Google
Try AppFog: The new PaaS Hackers love
  • http://www.bonjourtristesse.net/ Bonjour Tristesse

    Ah, great news!

  • Oleg Kamikaze

    is there PostGIS 2.0 support?

  • Luc Perkins

    Unfortunately, there is not at the moment. If this changes, we’ll make an announcement!

  • http://twitter.com/AlexeyShurygin Alexey Shurygin

    Luc, thank you so much for your posts.
    It’d be great to have a post date print somewhere on the top of the page. Otherwise it is hard to know the date the info was written on.
    Thanks again!

  • Tommy Wassgren

    This is great news! Neo4j-hosting on other cloud services than Heroku is more than welcome. Have you got any more detailed info on when Neo4j-support is planned?

  • http://phil.ashlock.us Philip Ashlock

    PostGIS would be a big selling point for me. I really hope this is supported in the future.

  • Pavla Novakova

    +1 for PostGIS support!

  • http://twitter.com/stehaa stehaa

    +1 for PostGIS support

  • http://www.cubrid.org/ Esen Sagynov

    I have reported this very issue couple months ago. The Appfog team is probably busy implementing new platform features, and have forgotten to improve its own site.

    +1 for this request.

Powered by Olark