Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
kan.pdf
Search
vi
June 08, 2012
200
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
kan.pdf
vi
June 08, 2012
Featured
See All Featured
GitHub's CSS Performance
jonrohan
1033
470k
Accessibility Awareness
sabderemane
1
250
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
550
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
260
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
2.9k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Designing for humans not robots
tammielis
254
26k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
300
It's Worth the Effort
3n
188
29k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
440
Raft: Consensus for Rubyists
vanstee
142
7.8k
Transcript
搜狐随身看 搜狐武汉 2012年6月9日
各部分划分 • 服务器端 ◦ 随身看服务及API ◦ S3兼容存储服务 ◦ 数据净化和转换 •
客户端 ◦ iOS 客户端 ◦ Android 客户端 ◦ Chrome 浏览器插件 • 产品网站
服务功能 • 网页的收藏和抓取及存储 • 网页图片的抓取及存储 • (网页视频的抓取和存储) • 用户书签的管理 ◦
CRUD增删改查 ◦ 已读/未读/历史记录的管理 ◦ 分类的管理 • 用户书签的同步 • 内容的净化和转换
服务设计实现 • 基于RESTful的轻量级Web Service • 异步的URI调用 • Web服务框架 Django •
分布任务分发框架 PyCelery • 消息队列 RabbitMQ • 独立woker process用于处理专项事务 • 支持xml和json两种格式 • Redis实现客户端同步
存储服务功能 • Key-Value 存储 • 数据的存储(更新)、访问和删除 • 基于权限的访问 • 可失效的访问地址
• 数据的目录(bucket)访问、增加和删除
净化转换 • 文本净化 ◦ 通用算法,开源库Readability 研究和改进 ◦ 特定规则,针对各大网站维护相应规则 ◦ 针对不同类型网站的模式学习与匹配
◦ 人工干预 • 资源转换 ◦ 自写或者开源图片格式转换库 ◦ 开源的音频/视频格式转换库 ◦ 提高转换效率
随身看服务的结构
Django • 工程师熟悉
PyCelery & RabbitMQ • 实时要求不高 • 操作分拆 • 易于分布 •
Python兼容高 • 线程要注意安全问题
Redis • 操作频繁 • 持久化要求
Sentry • 集中的日志服务 • 仅接收异常 • UDP • 优秀的控制台 •
报警 • Python
Sohu Cloud Engine • My SQL Proxy • Memcached Cluster
• LVS • S3 Storage
谢谢!