利用流式数据流增强用户体验.pdf

编号:981436 PDF 111页 5.09MB 下载积分:VIP专享
下载报告请您先登录!

利用流式数据流增强用户体验.pdf

1、1Powering User Experiences with Streaming DataflowAlana MarzoevOverview01Lets set the sceneYour web app starts to get traction DatabaseYour web app starts to get traction DatabaseTime to throw in a cache DatabaseCacheRead-through cache BeforeAfterAfterFor each query,what are the data freshness requi

2、rements?What eviction policy makes the most sense?Are TTLs sufficient?LRU?From there,need to modify code accordingly Cost/benefit analysis Pros:Low latencies Horizontal scaling Cons:App rewrite requiredError-prone Easy to interfere with app semantics Needs tuning to ensure high cache hit rateCould l

3、ead to spiky load on the DBCache Desiderata Same interface as a relational database No app rewritesAutomatic cache maintenance No staleness concerns Insulation from database Cache never makes things worse Demo 14Automatic Database Caching15Partially-Stateful Streaming Dataflow 16Building for Web Sca

4、le17Case Study:Readyset DBCacheCacheCacheReadySetApp ServersHow does this system work?Why does it matter?19Agenda InterfaceLife of a query Cache updates via streaming dataflow Impact/use cases Interface0121Set up as a read replicaSet up as a database read replicaTakes an initial snapshot of tables a

5、t startup Replicates changes to tables,stores in RocksDBPostgres:logical replication MySQL:row-based replication Option to do a partial snapshot based on what queries are cached22Wire-compatibility with existing databasesSupports both the Postgres&MySQL wire protocolsGoal is to interoperate with exi

6、sting database tools(client libs,ORMs,etc)Provide“normal”database connection string to use in applications 23Cache specification languageCaches need to be specified explicitly Can offer suggestions on what to cache(e.g.using slow query logs)SQL extension syntax for cachingConfig based cachingthink o

友情提示

1、下载报告失败解决办法
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站报告下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

本文(利用流式数据流增强用户体验.pdf)为本站 (竿头日上) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。
客服
商务合作
小程序
服务号
折叠