# Building Arc: An AI Messenger Powered by Firebase, Flutter, and Vertex AI

DevFeed: [Building Arc: An AI Messenger Powered by Firebase, Flutter, and Vertex AI](<https://devfeed.tech/articles/building-arc-an-ai-messenger-powered-by-firebase-flutter-and-vertex-ai-23884.md>)

Original publisher: [Read original article](<https://medium.com/firebase-developers/building-arc-an-ai-messenger-powered-by-firebase-flutter-and-vertex-ai-f8a3d947c247?source=rss----8e8b7dc6774d---4>)

Author: TAKAYUKI MIYANO

Published: 2025-10-27T07:49:55Z

Content type: article

Language: en

Sources: [Firebase Developers - Medium](<https://devfeed.tech/sources/firebase-developers-medium.md>)

Topics: [App](<https://devfeed.tech/topics/app.md>), [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>), [Firebase](<https://devfeed.tech/topics/firebase.md>), [Flutter](<https://devfeed.tech/topics/flutter.md>), [Cloud Run](<https://devfeed.tech/topics/cloud-run.md>), [Cloud Functions](<https://devfeed.tech/topics/cloud-functions.md>), [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>), [Messaging](<https://devfeed.tech/topics/messaging.md>), [Microservices](<https://devfeed.tech/topics/microservices.md>), [Security](<https://devfeed.tech/topics/security.md>), [Resilience](<https://devfeed.tech/topics/resilience.md>), [networking](<https://devfeed.tech/topics/networking.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [cloud-functions](<https://devfeed.tech/tags/cloud-functions.md>), [cloud-run](<https://devfeed.tech/tags/cloud-run.md>), [firebase](<https://devfeed.tech/tags/firebase.md>), [flutter](<https://devfeed.tech/tags/flutter.md>), [gemini](<https://devfeed.tech/tags/gemini.md>), [messenger](<https://devfeed.tech/tags/messenger.md>), [microservices](<https://devfeed.tech/tags/microservices.md>), [resilience](<https://devfeed.tech/tags/resilience.md>), [retrieval-augmented-generation](<https://devfeed.tech/tags/retrieval-augmented-generation.md>), [security](<https://devfeed.tech/tags/security.md>), [vertex-ai](<https://devfeed.tech/tags/vertex-ai.md>)

## AI overview

This article describes the architecture of Arc, a private messaging app built with Flutter and Firebase. It covers ephemeral messaging, mesh networking for resilience, Cloud Run microservices, Cloud Functions for event-driven processing, and a RAG architecture using Vertex AI Search and Gemini models. It also discusses security, privacy, and GenAI companions.

## Source excerpt

Introduction: The Vision of Arc Our journey at Arc began with a singular vision: to redefine private communication in the digital age. We envisioned a world of ephemeral, intimate conversations -- a space where privacy isn't an afterthought, but the very foundation. This philosophy gave birth to Arc, a next-generation messaging app where every message, even in group chats, is designed to disappear over time. Our vision goes beyond just ephemerality. We also saw a critical need to build resilience, especially in regions with unstable internet infrastructure and in a world where disasters are a constant threat. This led us to develop our mesh networking technology, a potential lifeline when traditional communication fails. Our mission is to transform our app into a vital piece of social infrastructure that protects people's safety and gives them peace of mind. However, a vision of this scale demands an architecture that can compete on a global level. For us, true "optimization" is a comprehensive concept built on four pillars: Stability, Speed, Lightweight Design, and High Security. In this article, we'll explore the architectural decisions that shaped Arc. We'll detail how we integrated Flutter as our client, used Firebase's managed services as our foundation, and combined them with Cloud Run for scalable microservices, Cloud Functions for event-driven processing, and an advanced RAG (Retrieval-Augmented Generation) architecture using Vertex AI Search for grounding and Gemini models. This is the story of how we built a platform that is not only secure and high-performance but also intelligent and ready for future evolution. The Challenge: Going Beyond a Standard Messenger To make Arc a reality, we faced numerous technical hurdles that went beyond conventional architectures. Our goal wasn't just to build another messaging app; it was to create a new conversational experience and a resilient communication platform. Our app also includes GenAI companions (AI Characters)