Store and Sync Data in Realtime


Ossama Alami

VP, Developer Happiness at Firebase
+OssamaAlami
@ossamaalami


Sara Robinson

Developer Advocate at Firebase
@SRobTweets

Today

  • The Future of Apps
  • Firebase Overview
  • Live Coding
  • Demos
  • Open Data Sets
  • Q&A

The Future of Apps

but first, a quick bit of history...

Some History

70s: Mainframes & Minicomputer (Thin Client)
Ibm px xt color, Ruben de Rijcke - http://dendmedia.com/vintage/80s: Personal Computer (Thick Client)
90s: Rise of the Web (Thin Client)

Now: Smartphones and The Web

  • Connected Thick Client
  • Processing is at the edge of the network
  • Works offline (if you build it right)
  • Still largely request-response
  • Push notifications

Now: Smartphones and The Web

  • Browsers are much more powerful
  • Still largely request-response
  • Processing primiarly on the server
  • Hard to scale


Soon: The Web

  • New JavaScript frameworks are enabling more complex apps
  • Computing is moving closer to the user


What matters to users?

What matters?

  • Apps are fast
  • Data is delivered in realtime
  • Apps works offline


This is possible now.


It's happening today:
  • Google Docs
  • Facebook Newsfeed
  • Collaboration Tools

Getting this right is hard and it takes a lot of time.


This is why we built Firebase.

Firebase is...

  • A scalable backend for your app.
  • An API that syncs and stores your data in realtime across all clients.
  • A set of services that make it possible for developers to build amazing experiences without writing any server code.

Predictions

  1. Apps are composed of two parts
  2. Servers are abstracted completely
  3. Realtime is the default

An Overview

Drawing Sample (goo.gl/jjgRFn)

View in Firebase Dashboard

What is Firebase?


Firebase is a platform for building realtime apps

Data: store and sync data across clients
Authentication: easily authenticate users
Hosting: production-grade static asset hosting

Store and Sync Data



Write Data to Firebase


var ref = new Firebase("https://sacramento.firebaseio-demo.com/");
ref.set("Hello Sacramento!");


Read Data from Firebase


ref.on("value", function (snapshot) {
    var data = snapshot.val();
    console.log(data);
});

More About Firebase


  • 75,000 registered developers
  • Founded in Spring of 2011 in SF
  • Customers include: Citrix, CBS,
    Twitch, Warby Parker, and
    Coffee Meets Bagel
  • 1M concurrent users on Firebase sites
    at any given time

Let's write some code!

Wrap Up

Firebase is...

  • A scalable backend for your app.
  • An API that syncs and stores your data in realtime across all clients.
  • A set of services that make it possible for developers to build amazing experiences without writing any server code.

Open Data Sets

  • Cryptocurrency Exchange Rates
  • Live Transit Data
  • Earthquakes
  • Airport Delays
  • Weather
  • More...

Works With


Resources



Code:


Thanks!