The evolution of Cloud Firebase
|Richard Harris in Enterprise Thursday, October 5, 2017|
App Developer Magazine chatted with Dan McGrath, Product Manager at Google, about his work on the recent launch of Cloud Firestore.
But syncing data between all those devices and the cloud isn't quite as easy as it first looks. You have to set up your own servers to host the data and make sure they're up and running 24 hours a day. You'll need to make sure your clients can deal with network issues and handle offline support. And if your app ends up being an overnight success, you'll want to make sure you can handle that traffic without falling apart. And then you should probably spend some time figuring out if you've gotten your security right.
We chatted with Dan McGrath, Product Manager at Google, about his work on the recent launch of Cloud Firestore.
ADM: Google acquired Firebase almost 3 years ago? How was the platform changed since then?
McGrath: When Firebase was acquired by Google 3 years ago, it was a rapidly growing mobile backend-as-a-service platform. It featured three products, including the flagship Firebase Realtime Database. Since then Firebase has become Google's app development platform, with 16 products to help develop build and grow their apps. The platform has grown to over a million developers
ADM: I heard you’re launching a new database, what is it?
McGrath: Cloud Firestore is a fully-managed NoSQL document database for mobile and web app development. It's designed to easily store, query, and sync app data at global scale.
Some of Cloud Firestore key features include:
- Serverless development with iOS, Android and Web SDKs
- Real-time data synchronization
- Offline data access
- Documents and collections with powerful querying
- Multi-region data replication with strong consistency
- Node.js, Python, Go, and Java server SDKs
ADM: Why did you decide to build Cloud Firestore?
McGrath: Managing app data is still hard; you have to scale servers, handle intermittent connectivity, and deliver data with low latency. We built Cloud Firestore to help developers build better apps faster.
Cloud Firestore is inspired by what developers love most about the Firebase Realtime Database. Since its launch, the Firebase Database has been adopted by hundred of thousands of developers, and as its adoption grew, so did usage patterns. Developers began using the Realtime Database for more complex data and to build bigger apps, pushing the limits of the JSON data model and the performance of the database at scale.
Cloud Firestore builds on what developers like most about the Firebase Realtime Database, like its user-friendly client SDKs with real-time updates and offline capabilities, and it addresses its key limitations, in particular around data structuring, querying, and scaling.
ADM: What makes Cloud Firestore a unique real-time database service compared to other offerings at Google or outside of Google?
McGrath: Cloud Firestore is Google's database solution for mobile and web app development. It has much in common with the Firebase Realtime Database, but is not a drop-in replacement. In fact, for some use cases, it may make sense to use the Realtime Database to optimize for cost and latency, and it's also easy to use both databases together. We actually wrote a full length blogpost comparing both databases.
A few things make Cloud Firestore a truly unique database. Its client SDKs and backend security rules allows developers to build serverless applications without having to compromise on security. It integrates into the Firebase platform, from hosting the webpage with Firebase Hosting, to handling user sign-in with Firebase Auth and kicking off server side computation with Cloud Functions for Firebase. It's also fully managed by Google from encryption at rest to multi-region replication, so developers can hand off worrying about operating a database and concentrate solely on building great products.
ADM: What Google technologies was Cloud Firestore built on?
McGrath: Cloud Firestore is built leveraging a lot of the technology Google has developed for running large scale distributed systems, along with several completely new pieces to provide real-time updates as data changes to large numbers of concurrent queries.
With Multi-Region replication under the covers, Cloud Firestore replicates across multiple data centers in different geographical regions to ensure durability even in the face of disasters. It's also strongly consistent, so you don't need to think through the implications of queries being eventually consistent.
Another important aspect is networking, and with Cloud Firestore you're on Google’s high quality private network with 100 global network points of presence. This uses state-of-the-art software-defined networking to connect Cloud Firestore to your users in a fast and reliable manner.
ADM: What are some specific examples of how Cloud Firestore will benefit mobile app developers?
McGrath: Spend more time developing features rather than rebuilding and managing common infrastructure. Whether it's adding an offline mode that allows you to update data, or synchronizing changes between multiple devices and users - these are all engineering and administration time sinks that take away from what you're really trying to build.
One prime example of how this makes building apps easier is HomeAway using the built-in offline support to make an app for travellers who might have spotty network connections. Another is Hawkin Dynamics who utilize the real-time sync functionality to display IoT data received by their mobile app in a full size web browser screen while it happens.
Are you paying more taxes than you have to as a developer or freelancer? The IRS is certainly not going to tell you about a deduction you failed to take, and your accountant is not likely to take the time to ask you about every deduction you’re entitled to. As former IRS Commissioner Mark Everson admitted, “If you don’t claim it, you don’t get it.
Get hands-on experience in performing simple to complex mobile forensics techniques Retrieve and analyze data stored not only on mobile devices but also through the cloud and other connected mediums A practical guide to leveraging the power of mobile forensics on popular mobile platforms with lots of tips, tricks, and caveats.
The Chirp GPS app is a top-ranked location sharing app available for Apple and Android that is super easy to use, and most of all, it's reliable.
Write and run code every step of the way, using Android Studio to create apps that integrate with other apps, download and display pictures from the web, play sounds, and more. Each chapter and app has been designed and tested to provide the knowledge and experience you need to get started in Android development.