求教一个F家的 design题目# JobHunting - 待字闺中w*92016-04-06 07:041 楼Design post search , 从朋友圈和 global分别设计~ 最近面经里面看到不止一次,有没有哪位大牛能分享一下思路? 多谢!
S*t2016-04-06 07:043 楼带restrict的index/search,general的说其实是一个push和pull的优化问题(indexing = push, query = pull),两个极端就是celebrity(too many followers),以及疯狂follow别人的人。可以用bipartite图来model,最优解是push+pull的hybrid,push端的cost跟pull端的cost可以根据fan-in/fan-out degree, read/write frequency,甚至user activity等等信息来score,然后贪心的选哪些edge用来push,哪些edge用来pull。【在 w*****9 的大作中提到】: 自己顶一下
w*92016-04-06 07:044 楼多谢指教! 我的理解pull/push model主要是用来做news feed, 对于 post search也是一样的么? 能不能详细说说【在 S********t 的大作中提到】: 带restrict的index/search,general的说其实是一个push和pull的优化问题(: indexing = push, query = pull),两个极端就是celebrity(too many followers),: 以及疯狂follow别人的人。: 可以用bipartite图来model,最优解是push+pull的hybrid,push端的cost跟pull端的: cost可以根据fan-in/fan-out degree, read/write frequency,甚至user activity等: 等信息来score,然后贪心的选哪些edge用来: push,哪些edge用来: pull。
S*t2016-04-06 07:046 楼ha, ha, hainverted index! so advanced! black technology of search!【在 s******7 的大作中提到】: 啥push pull 跟本不沾边: search只有一种, inverted index, 估算大小,如何scale, 如何更新,如何维护
w*92016-04-06 07:047 楼inverted index 赞一个! 更新和 维护应该怎么答比较好 ?【在 s******7 的大作中提到】: 啥push pull 跟本不沾边: search只有一种, inverted index, 估算大小,如何scale, 如何更新,如何维护
H*S2016-04-06 07:049 楼需要了解一点lucene,这个东西不是看几天书就能得到的,很多时候靠的是经验。朋友圈的search涉及到entitlement control,对应的filter应该如何实现。【在 w*****9 的大作中提到】: 自己顶一下