• >
  • >
  • >
  • >
  • >
Google > 实例探究 > Scaling Character.AI: How AlloyDB for PostgreSQL and Spanner met their growing needs

Scaling Character.AI: How AlloyDB for PostgreSQL and Spanner met their growing needs

Google Logo
公司规模
Mid-size Company
地区
  • America
国家
  • United States
产品
  • AlloyDB for PostgreSQL
  • Google Cloud Spanner
  • Google Cloud TPUs
  • Google Cloud GPUs
  • Google Cloud Datastream
技术栈
  • PostgreSQL
  • Golang
  • Django
实施规模
  • Enterprise-wide Deployment
影响指标
  • Productivity Improvements
  • Cost Savings
  • Customer Satisfaction
技术
  • 平台即服务 (PaaS) - 数据管理平台
  • 分析与建模 - 预测分析
  • 基础设施即服务 (IaaS) - 云数据库
适用行业
  • Software
  • 电信
适用功能
  • 产品研发
  • 商业运营
用例
  • 边缘计算与边缘智能
  • 预测性维护
  • 远程资产管理
服务
  • 云规划/设计/实施服务
  • 系统集成
关于客户
Character.AI is a company focused on delivering lifelike interactions using artificial intelligence. Their platform allows users to engage in conversations with Characters inspired by historical figures, fictional personas, and more. The service offers dynamic Group Chats where multiple Characters interact with users, creating an interactive dialogue. Character.AI harnesses the power of neural language models to analyze extensive text data and generate intelligent responses. The company is highly technical, from training models on supercomputers to delivering services as a web-based chatbot. Character.AI aims to provide an exceptional user experience by efficiently processing large amounts of data, which is crucial for their time-to-market and ability to build differentiated algorithms.
挑战
Character.AI experienced exponential growth in user demand, which put significant stress on their existing database infrastructure. The initial database setup was limited by the maximum scaling capacity of each instance and the number of smaller instances that could be patched together to distribute the workload effectively. The company lacked the resources to transform or refactor the database to a more scalable engine within the given timeframe. They needed a solution that could offer immediate scale and performance benefits without requiring extensive code changes. The challenge was to find a scalable solution that could be deployed quickly to handle the increased demand and ensure the platform's functionality.
解决方案
Character.AI turned to Google Cloud's managed database solutions to address their scaling challenges. They initially used Google Cloud's tensor processor units (TPUs) and graphic processor units (GPUs) for prototyping and building their consumer application. As the demand for their service grew, they adopted AlloyDB for PostgreSQL to handle the increased database load. AlloyDB offered better performance and higher scalability with a fully PostgreSQL compatible interface, allowing Character.AI to scale their operations without extensive code changes. The migration process involved a replication strategy, running two replication sets from the source database to the destination AlloyDB database in change data capture (CDC) mode for 10 days. This approach allowed them to prepare for the cutover smoothly. Additionally, they refactored a part of their Django monolith into a standalone microservice backed by Spanner, improving scalability and performance. Spanner's industry-leading high availability and virtually unlimited scale enabled Character.AI to ingest terabytes of data per day without concern.
运营影响
  • Character.AI successfully migrated to AlloyDB, allowing them to segment read traffic into read pools and handle a surge in demand.
  • The migration process was smooth, requiring no changes to the application code due to AlloyDB's full compatibility with PostgreSQL.
  • The company improved the scalability and performance of their product by refactoring a part of their monolith into a microservice backed by Spanner.
  • Character.AI reduced operational costs by moving to a managed database service, future-proofing their chat application to handle spikes in user activity.
  • The adoption of AlloyDB and Spanner provided a robust foundation for continued scaling, ensuring exceptional user experience with outstanding uptime.
数量效益
  • 150% increase in queries processed per second.
  • Replication lag consistently under 100 milliseconds.
  • Ability to scale reads to 20 times the previous capacity.

Case Study missing?

Start adding your own!

Register with your work email and create a new case study profile for your business.

Add New Record

相关案例.

联系我们

欢迎与我们交流!
* Required
* Required
* Required
* Invalid email address
提交此表单,即表示您同意 Asia Growth Partners 可以与您联系并分享洞察和营销信息。
不,谢谢,我不想收到来自 Asia Growth Partners 的任何营销电子邮件。
提交

感谢您的信息!
我们会很快与你取得联系。