当前位置:首页 > 报告详情

一个常见问题和一个古老的理念:我们如何构建资产库.pdf

上传人: 竿*** 编号:981442 2025-11-29 35页 1.19MB

1、A Common Problem and an Ancient IdeaHow We Built Our Asset LibraryAgendaWhat is AlexandriaWhat is Asset LibraryHow we solved itWhat problems we hadThe resultWhat is Asset LibraryAlexandria is the asset library management service.What is AlexandriaAlexandria is the asset library management service.Wh

2、at is Alexandrialibrary_header id;owner;protection_level;folders;Data Modelsasset_record id;asset_type;file_name;file_size;color_infos;Alexandria is the asset library management service.What is AlexandriaData StorageWhy not a database?Because we need:Near infinite scalabilityCost effectivenessStrong

3、 global consistencyWhat we talk about when we talk about consistencyA Distributed System has:Multiple nodes/machines/processes that might lead to concurrency issuesMultiple copies of data that might be out of syncAt the highest level of consistency guarantee,a distributed system works as if:Single p

4、rocessSingle copy of dataButGCS is object storage.Its not designed to be fast.Read PerformanceIn memory cacheRead PerformanceIn memory cacheConsistent hashingConsistent HashingRead PerformanceIn memory cacheConsistent hashingRead PerformanceIn memory cacheConsistent hashingPostgres SidecarWrite Perf

5、ormanceProblem#1-We have some extremely large librariesSolution-Multi segments organized as a prefix treeasset_record id:“asset1”,Write PerformanceProblem#1-We have some extremely large librariesSolution-Multi segments organized as a prefix treeasset_record id:“asset1”,binary(“asset1”)-01001101-Segm

6、ent 01Write PerformanceProblem#2-Write rate limitSolution-Requests coalescingWrite PerformanceProblem#2-Write rate limitSolution-Requests coalescingWrite PerformanceProblem#3-long tail of write latencyOur ProblemsUser ExperienceLatency long tailComplicated request coalescing logi

word格式文档无特别注明外均可编辑修改,预览文件经过压缩,下载原文更清晰!
三个皮匠报告文库所有资源均是客户上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作商用。
根据报告的内容,全文主要内容概括如下: 1. **Alexandria服务**:Alexandria是一个资产库管理服务,用于存储和管理资产数据。 2. **数据模型**:使用`library_header`和`asset_record`数据模型来组织数据。 3. **数据存储**:选择对象存储GCS,因为它具有无限可扩展性、成本效益和强全局一致性。 4. **一致性挑战**:分布式系统中的数据一致性问题和解决方案,包括一致性哈希和缓存策略。 5. **性能问题及解决方案**: - **大库处理**:通过多段和前缀树组织数据。 - **写入速率限制**:通过请求合并来解决问题。 - **写入延迟长尾**:通过请求合并和写后缓存来优化。 6. **用户体验和开发者体验**:讨论了缓存策略和读写性能。 7. **解决方案**:引入写后缓存来提高延迟和吞吐量。 8. **结果**:不需要所有更新历史,只需最终状态,并使用队列来处理库更新。 9. **问题与反思**:引入写后缓存时遇到的问题和改进措施。
"资产库管理,Alexandria如何解决性能难题?" "分布式存储,一致性如何保证?" "写回缓存,用户体验大提升!"
客服
商务合作
小程序
服务号
折叠