ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
cache
 @TimYang
Agenda

?   Feed
?          Cache
?
?
?   ,   status feed

?


?
Feed

?                 feed

    ? Push(       )

    ? Pull(   )

    ?
Push
?     feed

    ? Inbox:
    ? Outbox:
?                    inbox(   )

?                Inbox( )

? Of?ine computation
Push

?
?


?
Pull


?                 outbox( )

?                       Inbox(   )

? Online computation
Pull


?
?
?
?


?
Cache
memory is the new disk,
and disk is the new tape.
for "real-time" web applications,
and systems that require massive scalability
     - Jim Gray
Cache
cache
          Weibo cache arch

  Inbox       hot cache




Outbox       Vector cache    Archive cache




 Social       Following        Followers     users
 Graph



Content       Hot cache          Total
Inbox

?       ¡°         ¡±

? cache      id list

?                    (hot cache)

?                    get set

? redis list/set
Outbox

?
?     id list(e.g. 100)

?   id LRU
Social Graph cache
? Following ids
? Followers
  ?
  ?
  ?           delete all

?           followers list
Content cache

?           cache

?
    ?
?
    ? Open API      xml, json...
Cache


?
?
Update Work?ow


                  Update status




Content cache    Hot Inbox Vector   Outbox vector



Content cache
 replication
?   outbox hot vector

?   followers list

?   inbox
feed
                Home timeline Work?ow


                     home_timeline


                      aggregator



                                         Content hot
Inbox cache         Outbox Vector
                                           cache


Inbox archive        Inbox archive      Content cache
feed

?   inbox cache

?
?         ,   following

?   id list         feed
cache

?
? hot keys
?
? mutex
?                     Content cache

? multi get n feed(n = items/ , e.g. 50)
? cache = n * (feed +                    ,
    e.g. 2k)
?                     1,000   /

?              = 50 * 2k * 1,000 / sec = 100MB
? 1,000    800Mbps

?1        8Gbps
?       1G       300~400Mbps

?
    ?        local cache

    ?
    ?
hot keys
? content cache of
? create local cache
  1. get user_yaochen_local
  2. get user_yaochen
       1. set user_yaochen_local:value
  3.               delete all
cache
?                      key
      memcache

    ?
    ? LRU cache,
    ? Memory storage
    ?
mutex
?       content item   cache

    ?           db

    ?                          db

? key_mutex                     key

? mutex
?                mutex
?
    ?
    ?   less is more

    ?
?
    ? code review
    ?
? Q&A
? weihua2@staff.sina.com.cn

More Related Content

What's hot (20)

How to migrate your existing MongoDB and Cassandra Apps to Azure Cosmos DB
How to migrate your existing MongoDB and Cassandra Apps to Azure Cosmos DBHow to migrate your existing MongoDB and Cassandra Apps to Azure Cosmos DB
How to migrate your existing MongoDB and Cassandra Apps to Azure Cosmos DB
Microsoft Tech Community
?
Scalable XQuery Processing with Zorba on top of MongoDB
Scalable XQuery Processing with Zorba on top of MongoDBScalable XQuery Processing with Zorba on top of MongoDB
Scalable XQuery Processing with Zorba on top of MongoDB
William Candillon
?
Redis and it's data types
Redis and it's data typesRedis and it's data types
Redis and it's data types
Aniruddha Chakrabarti
?
Redis Functions, Data Structures for Web Scale Apps
Redis Functions, Data Structures for Web Scale AppsRedis Functions, Data Structures for Web Scale Apps
Redis Functions, Data Structures for Web Scale Apps
Dave Nielsen
?
Elasticsearch ?? ? ?? ??
Elasticsearch ?? ? ?? ??Elasticsearch ?? ? ?? ??
Elasticsearch ?? ? ?? ??
?? ?
?
PostgreSQL Moscow Meetup - September 2014 - Oleg Bartunov and Alexander Korotkov
PostgreSQL Moscow Meetup - September 2014 - Oleg Bartunov and Alexander KorotkovPostgreSQL Moscow Meetup - September 2014 - Oleg Bartunov and Alexander Korotkov
PostgreSQL Moscow Meetup - September 2014 - Oleg Bartunov and Alexander Korotkov
Nikolay Samokhvalov
?
PostgreSQL 9.4: NoSQL on ACID
PostgreSQL 9.4: NoSQL on ACIDPostgreSQL 9.4: NoSQL on ACID
PostgreSQL 9.4: NoSQL on ACID
Oleg Bartunov
?
Using MongoDB and Python
Using MongoDB and PythonUsing MongoDB and Python
Using MongoDB and Python
Mike Bright
?
CQL performance with Apache Cassandra 3.0 (Aaron Morton, The Last Pickle) | C...
CQL performance with Apache Cassandra 3.0 (Aaron Morton, The Last Pickle) | C...CQL performance with Apache Cassandra 3.0 (Aaron Morton, The Last Pickle) | C...
CQL performance with Apache Cassandra 3.0 (Aaron Morton, The Last Pickle) | C...
DataStax
?
Redis Use Patterns (DevconTLV June 2014)
Redis Use Patterns (DevconTLV June 2014)Redis Use Patterns (DevconTLV June 2014)
Redis Use Patterns (DevconTLV June 2014)
Itamar Haber
?
MongoDB and Python
MongoDB and PythonMongoDB and Python
MongoDB and Python
Norberto Leite
?
ETL With Cassandra Streaming Bulk Loading
ETL With Cassandra Streaming Bulk LoadingETL With Cassandra Streaming Bulk Loading
ETL With Cassandra Streaming Bulk Loading
alex_araujo
?
MongoDB's New Aggregation framework
MongoDB's New Aggregation frameworkMongoDB's New Aggregation framework
MongoDB's New Aggregation framework
Chris Westin
?
8b. Column Oriented Databases Lab
8b. Column Oriented Databases Lab8b. Column Oriented Databases Lab
8b. Column Oriented Databases Lab
Fabio Fumarola
?
Kicking ass with redis
Kicking ass with redisKicking ass with redis
Kicking ass with redis
Dvir Volk
?
Cassandra Summit 2014: Reading Cassandra SSTables Directly for Offline Data A...
Cassandra Summit 2014: Reading Cassandra SSTables Directly for Offline Data A...Cassandra Summit 2014: Reading Cassandra SSTables Directly for Offline Data A...
Cassandra Summit 2014: Reading Cassandra SSTables Directly for Offline Data A...
DataStax Academy
?
Introduction to Redis
Introduction to RedisIntroduction to Redis
Introduction to Redis
Maarten Smeets
?
Guava Overview Part 2 Bucharest JUG #2
Guava Overview Part 2 Bucharest JUG #2 Guava Overview Part 2 Bucharest JUG #2
Guava Overview Part 2 Bucharest JUG #2
Andrei Savu
?
2015-12-05 §¡§Ý§Ö§Ü§ã§Ñ§ß§Õ§â §¬§à§â§à§ä§Ü§à§Ó, §ª§Ó§Ñ§ß §±§Ñ§ß§é§Ö§ß§Ü§à - §³§Ý§Ñ§Ò§à-§ã§ä§â§å§Ü§ä§å§â§Ú§â§à§Ó§Ñ§ß§ß§í§Ö §Õ§Ñ§ß§ß§í§Ö...
2015-12-05 §¡§Ý§Ö§Ü§ã§Ñ§ß§Õ§â §¬§à§â§à§ä§Ü§à§Ó, §ª§Ó§Ñ§ß §±§Ñ§ß§é§Ö§ß§Ü§à - §³§Ý§Ñ§Ò§à-§ã§ä§â§å§Ü§ä§å§â§Ú§â§à§Ó§Ñ§ß§ß§í§Ö §Õ§Ñ§ß§ß§í§Ö...2015-12-05 §¡§Ý§Ö§Ü§ã§Ñ§ß§Õ§â §¬§à§â§à§ä§Ü§à§Ó, §ª§Ó§Ñ§ß §±§Ñ§ß§é§Ö§ß§Ü§à - §³§Ý§Ñ§Ò§à-§ã§ä§â§å§Ü§ä§å§â§Ú§â§à§Ó§Ñ§ß§ß§í§Ö §Õ§Ñ§ß§ß§í§Ö...
2015-12-05 §¡§Ý§Ö§Ü§ã§Ñ§ß§Õ§â §¬§à§â§à§ä§Ü§à§Ó, §ª§Ó§Ñ§ß §±§Ñ§ß§é§Ö§ß§Ü§à - §³§Ý§Ñ§Ò§à-§ã§ä§â§å§Ü§ä§å§â§Ú§â§à§Ó§Ñ§ß§ß§í§Ö §Õ§Ñ§ß§ß§í§Ö...
HappyDev
?
An Introduction to REDIS NoSQL database
An Introduction to REDIS NoSQL databaseAn Introduction to REDIS NoSQL database
An Introduction to REDIS NoSQL database
Ali MasudianPour
?
How to migrate your existing MongoDB and Cassandra Apps to Azure Cosmos DB
How to migrate your existing MongoDB and Cassandra Apps to Azure Cosmos DBHow to migrate your existing MongoDB and Cassandra Apps to Azure Cosmos DB
How to migrate your existing MongoDB and Cassandra Apps to Azure Cosmos DB
Microsoft Tech Community
?
Scalable XQuery Processing with Zorba on top of MongoDB
Scalable XQuery Processing with Zorba on top of MongoDBScalable XQuery Processing with Zorba on top of MongoDB
Scalable XQuery Processing with Zorba on top of MongoDB
William Candillon
?
Redis Functions, Data Structures for Web Scale Apps
Redis Functions, Data Structures for Web Scale AppsRedis Functions, Data Structures for Web Scale Apps
Redis Functions, Data Structures for Web Scale Apps
Dave Nielsen
?
Elasticsearch ?? ? ?? ??
Elasticsearch ?? ? ?? ??Elasticsearch ?? ? ?? ??
Elasticsearch ?? ? ?? ??
?? ?
?
PostgreSQL Moscow Meetup - September 2014 - Oleg Bartunov and Alexander Korotkov
PostgreSQL Moscow Meetup - September 2014 - Oleg Bartunov and Alexander KorotkovPostgreSQL Moscow Meetup - September 2014 - Oleg Bartunov and Alexander Korotkov
PostgreSQL Moscow Meetup - September 2014 - Oleg Bartunov and Alexander Korotkov
Nikolay Samokhvalov
?
PostgreSQL 9.4: NoSQL on ACID
PostgreSQL 9.4: NoSQL on ACIDPostgreSQL 9.4: NoSQL on ACID
PostgreSQL 9.4: NoSQL on ACID
Oleg Bartunov
?
Using MongoDB and Python
Using MongoDB and PythonUsing MongoDB and Python
Using MongoDB and Python
Mike Bright
?
CQL performance with Apache Cassandra 3.0 (Aaron Morton, The Last Pickle) | C...
CQL performance with Apache Cassandra 3.0 (Aaron Morton, The Last Pickle) | C...CQL performance with Apache Cassandra 3.0 (Aaron Morton, The Last Pickle) | C...
CQL performance with Apache Cassandra 3.0 (Aaron Morton, The Last Pickle) | C...
DataStax
?
Redis Use Patterns (DevconTLV June 2014)
Redis Use Patterns (DevconTLV June 2014)Redis Use Patterns (DevconTLV June 2014)
Redis Use Patterns (DevconTLV June 2014)
Itamar Haber
?
ETL With Cassandra Streaming Bulk Loading
ETL With Cassandra Streaming Bulk LoadingETL With Cassandra Streaming Bulk Loading
ETL With Cassandra Streaming Bulk Loading
alex_araujo
?
MongoDB's New Aggregation framework
MongoDB's New Aggregation frameworkMongoDB's New Aggregation framework
MongoDB's New Aggregation framework
Chris Westin
?
8b. Column Oriented Databases Lab
8b. Column Oriented Databases Lab8b. Column Oriented Databases Lab
8b. Column Oriented Databases Lab
Fabio Fumarola
?
Kicking ass with redis
Kicking ass with redisKicking ass with redis
Kicking ass with redis
Dvir Volk
?
Cassandra Summit 2014: Reading Cassandra SSTables Directly for Offline Data A...
Cassandra Summit 2014: Reading Cassandra SSTables Directly for Offline Data A...Cassandra Summit 2014: Reading Cassandra SSTables Directly for Offline Data A...
Cassandra Summit 2014: Reading Cassandra SSTables Directly for Offline Data A...
DataStax Academy
?
Guava Overview Part 2 Bucharest JUG #2
Guava Overview Part 2 Bucharest JUG #2 Guava Overview Part 2 Bucharest JUG #2
Guava Overview Part 2 Bucharest JUG #2
Andrei Savu
?
2015-12-05 §¡§Ý§Ö§Ü§ã§Ñ§ß§Õ§â §¬§à§â§à§ä§Ü§à§Ó, §ª§Ó§Ñ§ß §±§Ñ§ß§é§Ö§ß§Ü§à - §³§Ý§Ñ§Ò§à-§ã§ä§â§å§Ü§ä§å§â§Ú§â§à§Ó§Ñ§ß§ß§í§Ö §Õ§Ñ§ß§ß§í§Ö...
2015-12-05 §¡§Ý§Ö§Ü§ã§Ñ§ß§Õ§â §¬§à§â§à§ä§Ü§à§Ó, §ª§Ó§Ñ§ß §±§Ñ§ß§é§Ö§ß§Ü§à - §³§Ý§Ñ§Ò§à-§ã§ä§â§å§Ü§ä§å§â§Ú§â§à§Ó§Ñ§ß§ß§í§Ö §Õ§Ñ§ß§ß§í§Ö...2015-12-05 §¡§Ý§Ö§Ü§ã§Ñ§ß§Õ§â §¬§à§â§à§ä§Ü§à§Ó, §ª§Ó§Ñ§ß §±§Ñ§ß§é§Ö§ß§Ü§à - §³§Ý§Ñ§Ò§à-§ã§ä§â§å§Ü§ä§å§â§Ú§â§à§Ó§Ñ§ß§ß§í§Ö §Õ§Ñ§ß§ß§í§Ö...
2015-12-05 §¡§Ý§Ö§Ü§ã§Ñ§ß§Õ§â §¬§à§â§à§ä§Ü§à§Ó, §ª§Ó§Ñ§ß §±§Ñ§ß§é§Ö§ß§Ü§à - §³§Ý§Ñ§Ò§à-§ã§ä§â§å§Ü§ä§å§â§Ú§â§à§Ó§Ñ§ß§ß§í§Ö §Õ§Ñ§ß§ß§í§Ö...
HappyDev
?
An Introduction to REDIS NoSQL database
An Introduction to REDIS NoSQL databaseAn Introduction to REDIS NoSQL database
An Introduction to REDIS NoSQL database
Ali MasudianPour
?

Similar to °Õ¾±³¾²â²¹²Ô²µÐÂÀË΢²©Éè¼Æ̸ (20)

S2weibocachearch 100726101949-phpapp02
S2weibocachearch 100726101949-phpapp02S2weibocachearch 100726101949-phpapp02
S2weibocachearch 100726101949-phpapp02
batistuta97
?
Tup2 ÐÂÀËÑîÎÀ»ª
Tup2 ÐÂÀËÑîÎÀ»ªTup2 ÐÂÀËÑîÎÀ»ª
Tup2 ÐÂÀËÑîÎÀ»ª
yongboy
?
ÑîÎÀ»ª£ºÎ¢²©³¦²¹³¦³ó±ðÉè¼Ædz̸
ÑîÎÀ»ª£ºÎ¢²©³¦²¹³¦³ó±ðÉè¼Ædz̸ÑîÎÀ»ª£ºÎ¢²©³¦²¹³¦³ó±ðÉè¼Ædz̸
ÑîÎÀ»ª£ºÎ¢²©³¦²¹³¦³ó±ðÉè¼Ædz̸
Leechael
?
High Performance Weibo QCon Beijing 2011
High Performance Weibo QCon Beijing 2011High Performance Weibo QCon Beijing 2011
High Performance Weibo QCon Beijing 2011
Tim Y
?
Kiosk / PHP
Kiosk / PHP Kiosk / PHP
Kiosk / PHP
Basuke Suzuki
?
Cache on Delivery
Cache on DeliveryCache on Delivery
Cache on Delivery
SensePost
?
04 standard class library c#
04 standard class library c#04 standard class library c#
04 standard class library c#
Victor Matyushevskyy
?
BuilHigh Performance Weibo Platform-Qcon2011
BuilHigh Performance Weibo Platform-Qcon2011BuilHigh Performance Weibo Platform-Qcon2011
BuilHigh Performance Weibo Platform-Qcon2011
Yiwei Ma
?
ÐÂÀË΢²©¿ª·Åƽ̨ÖÐµÄ Redis ʵ¼ù
ÐÂÀË΢²©¿ª·Åƽ̨ÖÐµÄ Redis ʵ¼ùÐÂÀË΢²©¿ª·Åƽ̨ÖÐµÄ Redis ʵ¼ù
ÐÂÀË΢²©¿ª·Åƽ̨ÖÐµÄ Redis ʵ¼ù
fulin tang
?
iPhone dev intro
iPhone dev introiPhone dev intro
iPhone dev intro
Vonbo
?
Beginning to iPhone development
Beginning to iPhone developmentBeginning to iPhone development
Beginning to iPhone development
Vonbo
?
Amazon Aurora? ???? migration ??
Amazon Aurora? ???? migration ??Amazon Aurora? ???? migration ??
Amazon Aurora? ???? migration ??
Jesang Yoon
?
Ï°ɿª·¢×ܽá
Ï°ɿª·¢×ܽáÏ°ɿª·¢×ܽá
Ï°ɿª·¢×ܽá
Night Sailer
?
SDEC2011 NoSQL concepts and models
SDEC2011 NoSQL concepts and modelsSDEC2011 NoSQL concepts and models
SDEC2011 NoSQL concepts and models
Korea Sdec
?
Final presentation at pfintern
Final presentation at pfinternFinal presentation at pfintern
Final presentation at pfintern
N Masahiro
?
A Case Study of NoSQL Adoption: What Drove Wordnik Non-Relational?
A Case Study of NoSQL Adoption: What Drove Wordnik Non-Relational?A Case Study of NoSQL Adoption: What Drove Wordnik Non-Relational?
A Case Study of NoSQL Adoption: What Drove Wordnik Non-Relational?
DATAVERSITY
?
10 Data caching
10 Data caching10 Data caching
10 Data caching
Federico Russo
?
CMIS and Apache Chemistry (ApacheCon 2010)
CMIS and Apache Chemistry (ApacheCon 2010) CMIS and Apache Chemistry (ApacheCon 2010)
CMIS and Apache Chemistry (ApacheCon 2010)
Florent Guillaume
?
Nuxeo World Session: CMIS - What's Next?
Nuxeo World Session: CMIS - What's Next?Nuxeo World Session: CMIS - What's Next?
Nuxeo World Session: CMIS - What's Next?
Nuxeo
?
Introducing Amplify
Introducing AmplifyIntroducing Amplify
Introducing Amplify
appendTo
?
S2weibocachearch 100726101949-phpapp02
S2weibocachearch 100726101949-phpapp02S2weibocachearch 100726101949-phpapp02
S2weibocachearch 100726101949-phpapp02
batistuta97
?
Tup2 ÐÂÀËÑîÎÀ»ª
Tup2 ÐÂÀËÑîÎÀ»ªTup2 ÐÂÀËÑîÎÀ»ª
Tup2 ÐÂÀËÑîÎÀ»ª
yongboy
?
ÑîÎÀ»ª£ºÎ¢²©³¦²¹³¦³ó±ðÉè¼Ædz̸
ÑîÎÀ»ª£ºÎ¢²©³¦²¹³¦³ó±ðÉè¼Ædz̸ÑîÎÀ»ª£ºÎ¢²©³¦²¹³¦³ó±ðÉè¼Ædz̸
ÑîÎÀ»ª£ºÎ¢²©³¦²¹³¦³ó±ðÉè¼Ædz̸
Leechael
?
High Performance Weibo QCon Beijing 2011
High Performance Weibo QCon Beijing 2011High Performance Weibo QCon Beijing 2011
High Performance Weibo QCon Beijing 2011
Tim Y
?
Cache on Delivery
Cache on DeliveryCache on Delivery
Cache on Delivery
SensePost
?
BuilHigh Performance Weibo Platform-Qcon2011
BuilHigh Performance Weibo Platform-Qcon2011BuilHigh Performance Weibo Platform-Qcon2011
BuilHigh Performance Weibo Platform-Qcon2011
Yiwei Ma
?
ÐÂÀË΢²©¿ª·Åƽ̨ÖÐµÄ Redis ʵ¼ù
ÐÂÀË΢²©¿ª·Åƽ̨ÖÐµÄ Redis ʵ¼ùÐÂÀË΢²©¿ª·Åƽ̨ÖÐµÄ Redis ʵ¼ù
ÐÂÀË΢²©¿ª·Åƽ̨ÖÐµÄ Redis ʵ¼ù
fulin tang
?
iPhone dev intro
iPhone dev introiPhone dev intro
iPhone dev intro
Vonbo
?
Beginning to iPhone development
Beginning to iPhone developmentBeginning to iPhone development
Beginning to iPhone development
Vonbo
?
Amazon Aurora? ???? migration ??
Amazon Aurora? ???? migration ??Amazon Aurora? ???? migration ??
Amazon Aurora? ???? migration ??
Jesang Yoon
?
Ï°ɿª·¢×ܽá
Ï°ɿª·¢×ܽáÏ°ɿª·¢×ܽá
Ï°ɿª·¢×ܽá
Night Sailer
?
SDEC2011 NoSQL concepts and models
SDEC2011 NoSQL concepts and modelsSDEC2011 NoSQL concepts and models
SDEC2011 NoSQL concepts and models
Korea Sdec
?
Final presentation at pfintern
Final presentation at pfinternFinal presentation at pfintern
Final presentation at pfintern
N Masahiro
?
A Case Study of NoSQL Adoption: What Drove Wordnik Non-Relational?
A Case Study of NoSQL Adoption: What Drove Wordnik Non-Relational?A Case Study of NoSQL Adoption: What Drove Wordnik Non-Relational?
A Case Study of NoSQL Adoption: What Drove Wordnik Non-Relational?
DATAVERSITY
?
CMIS and Apache Chemistry (ApacheCon 2010)
CMIS and Apache Chemistry (ApacheCon 2010) CMIS and Apache Chemistry (ApacheCon 2010)
CMIS and Apache Chemistry (ApacheCon 2010)
Florent Guillaume
?
Nuxeo World Session: CMIS - What's Next?
Nuxeo World Session: CMIS - What's Next?Nuxeo World Session: CMIS - What's Next?
Nuxeo World Session: CMIS - What's Next?
Nuxeo
?
Introducing Amplify
Introducing AmplifyIntroducing Amplify
Introducing Amplify
appendTo
?

More from Cevin Cheung (7)

Mvc¼Ü¹¹ÔÚdiscuz!²å¼þ¿ª·¢µÄÓ¦Óà wps create_msoffice_check
Mvc¼Ü¹¹ÔÚdiscuz!²å¼þ¿ª·¢µÄÓ¦Óà wps create_msoffice_checkMvc¼Ü¹¹ÔÚdiscuz!²å¼þ¿ª·¢µÄÓ¦Óà wps create_msoffice_check
Mvc¼Ü¹¹ÔÚdiscuz!²å¼þ¿ª·¢µÄÓ¦Óà wps create_msoffice_check
Cevin Cheung
?
ÌÔ±¦Í¼Æ¬´æ´¢Óë°ä»å²Ôϵͳ
ÌÔ±¦Í¼Æ¬´æ´¢Óë°ä»å²ÔϵͳÌÔ±¦Í¼Æ¬´æ´¢Óë°ä»å²Ôϵͳ
ÌÔ±¦Í¼Æ¬´æ´¢Óë°ä»å²Ôϵͳ
Cevin Cheung
?
ÌÔ±¦Íø¼Ü¹¹£º½âÃÜÌÔ±¦ÍøµÄ¿ªÔ´¼Ü¹¹
ÌÔ±¦Íø¼Ü¹¹£º½âÃÜÌÔ±¦ÍøµÄ¿ªÔ´¼Ü¹¹ÌÔ±¦Íø¼Ü¹¹£º½âÃÜÌÔ±¦ÍøµÄ¿ªÔ´¼Ü¹¹
ÌÔ±¦Íø¼Ü¹¹£º½âÃÜÌÔ±¦ÍøµÄ¿ªÔ´¼Ü¹¹
Cevin Cheung
?
°Â±ð²ú»º´æ¼ÓËÙ
°Â±ð²ú»º´æ¼ÓËٰ±ð²ú»º´æ¼ÓËÙ
°Â±ð²ú»º´æ¼ÓËÙ
Cevin Cheung
?
º£Á¿ÈÕÖ¾·ÖÎöϵͳʵ¼ù,¶Ù²ú²¹
º£Á¿ÈÕÖ¾·ÖÎöϵͳʵ¼ù,¶Ù²ú²¹º£Á¿ÈÕÖ¾·ÖÎöϵͳʵ¼ù,¶Ù²ú²¹
º£Á¿ÈÕÖ¾·ÖÎöϵͳʵ¼ù,¶Ù²ú²¹
Cevin Cheung
?
Mongodbinaction 100122230824-phpapp01
Mongodbinaction 100122230824-phpapp01Mongodbinaction 100122230824-phpapp01
Mongodbinaction 100122230824-phpapp01
Cevin Cheung
?
My SqlÓÅ»¯(2009 08 28 ϵͳ¼Ü¹¹Ê¦´ó»á)
My SqlÓÅ»¯(2009 08 28 ϵͳ¼Ü¹¹Ê¦´ó»á)My SqlÓÅ»¯(2009 08 28 ϵͳ¼Ü¹¹Ê¦´ó»á)
My SqlÓÅ»¯(2009 08 28 ϵͳ¼Ü¹¹Ê¦´ó»á)
Cevin Cheung
?
Mvc¼Ü¹¹ÔÚdiscuz!²å¼þ¿ª·¢µÄÓ¦Óà wps create_msoffice_check
Mvc¼Ü¹¹ÔÚdiscuz!²å¼þ¿ª·¢µÄÓ¦Óà wps create_msoffice_checkMvc¼Ü¹¹ÔÚdiscuz!²å¼þ¿ª·¢µÄÓ¦Óà wps create_msoffice_check
Mvc¼Ü¹¹ÔÚdiscuz!²å¼þ¿ª·¢µÄÓ¦Óà wps create_msoffice_check
Cevin Cheung
?
ÌÔ±¦Í¼Æ¬´æ´¢Óë°ä»å²Ôϵͳ
ÌÔ±¦Í¼Æ¬´æ´¢Óë°ä»å²ÔϵͳÌÔ±¦Í¼Æ¬´æ´¢Óë°ä»å²Ôϵͳ
ÌÔ±¦Í¼Æ¬´æ´¢Óë°ä»å²Ôϵͳ
Cevin Cheung
?
ÌÔ±¦Íø¼Ü¹¹£º½âÃÜÌÔ±¦ÍøµÄ¿ªÔ´¼Ü¹¹
ÌÔ±¦Íø¼Ü¹¹£º½âÃÜÌÔ±¦ÍøµÄ¿ªÔ´¼Ü¹¹ÌÔ±¦Íø¼Ü¹¹£º½âÃÜÌÔ±¦ÍøµÄ¿ªÔ´¼Ü¹¹
ÌÔ±¦Íø¼Ü¹¹£º½âÃÜÌÔ±¦ÍøµÄ¿ªÔ´¼Ü¹¹
Cevin Cheung
?
°Â±ð²ú»º´æ¼ÓËÙ
°Â±ð²ú»º´æ¼ÓËٰ±ð²ú»º´æ¼ÓËÙ
°Â±ð²ú»º´æ¼ÓËÙ
Cevin Cheung
?
º£Á¿ÈÕÖ¾·ÖÎöϵͳʵ¼ù,¶Ù²ú²¹
º£Á¿ÈÕÖ¾·ÖÎöϵͳʵ¼ù,¶Ù²ú²¹º£Á¿ÈÕÖ¾·ÖÎöϵͳʵ¼ù,¶Ù²ú²¹
º£Á¿ÈÕÖ¾·ÖÎöϵͳʵ¼ù,¶Ù²ú²¹
Cevin Cheung
?
Mongodbinaction 100122230824-phpapp01
Mongodbinaction 100122230824-phpapp01Mongodbinaction 100122230824-phpapp01
Mongodbinaction 100122230824-phpapp01
Cevin Cheung
?
My SqlÓÅ»¯(2009 08 28 ϵͳ¼Ü¹¹Ê¦´ó»á)
My SqlÓÅ»¯(2009 08 28 ϵͳ¼Ü¹¹Ê¦´ó»á)My SqlÓÅ»¯(2009 08 28 ϵͳ¼Ü¹¹Ê¦´ó»á)
My SqlÓÅ»¯(2009 08 28 ϵͳ¼Ü¹¹Ê¦´ó»á)
Cevin Cheung
?

Recently uploaded (20)

What Makes "Deep Research"? A Dive into AI Agents
What Makes "Deep Research"? A Dive into AI AgentsWhat Makes "Deep Research"? A Dive into AI Agents
What Makes "Deep Research"? A Dive into AI Agents
Zilliz
?
Brave Browser Crack 1.45.133 Activated 2025
Brave Browser Crack 1.45.133 Activated 2025Brave Browser Crack 1.45.133 Activated 2025
Brave Browser Crack 1.45.133 Activated 2025
kherorpacca00126
?
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
Safe Software
?
UiPath Document Understanding - Generative AI and Active learning capabilities
UiPath Document Understanding - Generative AI and Active learning capabilitiesUiPath Document Understanding - Generative AI and Active learning capabilities
UiPath Document Understanding - Generative AI and Active learning capabilities
DianaGray10
?
Build with AI on Google Cloud Session #4
Build with AI on Google Cloud Session #4Build with AI on Google Cloud Session #4
Build with AI on Google Cloud Session #4
Margaret Maynard-Reid
?
A Framework for Model-Driven Digital Twin Engineering
A Framework for Model-Driven Digital Twin EngineeringA Framework for Model-Driven Digital Twin Engineering
A Framework for Model-Driven Digital Twin Engineering
Daniel Lehner
?
DealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures CapitalDealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures Capital
Yevgen Sysoyev
?
1.1. Evolution-and-Scope-of-Business-Analytics.pptx
1.1. Evolution-and-Scope-of-Business-Analytics.pptx1.1. Evolution-and-Scope-of-Business-Analytics.pptx
1.1. Evolution-and-Scope-of-Business-Analytics.pptx
Jitendra Tomar
?
Unlocking DevOps Secuirty :Vault & Keylock
Unlocking DevOps Secuirty :Vault & KeylockUnlocking DevOps Secuirty :Vault & Keylock
Unlocking DevOps Secuirty :Vault & Keylock
HusseinMalikMammadli
?
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
ScyllaDB
?
Computational Photography: How Technology is Changing Way We Capture the World
Computational Photography: How Technology is Changing Way We Capture the WorldComputational Photography: How Technology is Changing Way We Capture the World
Computational Photography: How Technology is Changing Way We Capture the World
HusseinMalikMammadli
?
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIATHE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
Srivaanchi Nathan
?
UiPath Agentic Automation Capabilities and Opportunities
UiPath Agentic Automation Capabilities and OpportunitiesUiPath Agentic Automation Capabilities and Opportunities
UiPath Agentic Automation Capabilities and Opportunities
DianaGray10
?
Unlock AI Creativity: Image Generation with DALL¡¤E
Unlock AI Creativity: Image Generation with DALL¡¤EUnlock AI Creativity: Image Generation with DALL¡¤E
Unlock AI Creativity: Image Generation with DALL¡¤E
Expeed Software
?
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOTSMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
TanmaiArni
?
Q4 2024 Earnings and Investor Presentation
Q4 2024 Earnings and Investor PresentationQ4 2024 Earnings and Investor Presentation
Q4 2024 Earnings and Investor Presentation
Dropbox
?
L01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardnessL01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardness
RostislavDaniel
?
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
Tsuyoshi Hirayama
?
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Jonathan Bowen
?
Backstage Software Templates for Java Developers
Backstage Software Templates for Java DevelopersBackstage Software Templates for Java Developers
Backstage Software Templates for Java Developers
Markus Eisele
?
What Makes "Deep Research"? A Dive into AI Agents
What Makes "Deep Research"? A Dive into AI AgentsWhat Makes "Deep Research"? A Dive into AI Agents
What Makes "Deep Research"? A Dive into AI Agents
Zilliz
?
Brave Browser Crack 1.45.133 Activated 2025
Brave Browser Crack 1.45.133 Activated 2025Brave Browser Crack 1.45.133 Activated 2025
Brave Browser Crack 1.45.133 Activated 2025
kherorpacca00126
?
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
Safe Software
?
UiPath Document Understanding - Generative AI and Active learning capabilities
UiPath Document Understanding - Generative AI and Active learning capabilitiesUiPath Document Understanding - Generative AI and Active learning capabilities
UiPath Document Understanding - Generative AI and Active learning capabilities
DianaGray10
?
Build with AI on Google Cloud Session #4
Build with AI on Google Cloud Session #4Build with AI on Google Cloud Session #4
Build with AI on Google Cloud Session #4
Margaret Maynard-Reid
?
A Framework for Model-Driven Digital Twin Engineering
A Framework for Model-Driven Digital Twin EngineeringA Framework for Model-Driven Digital Twin Engineering
A Framework for Model-Driven Digital Twin Engineering
Daniel Lehner
?
DealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures CapitalDealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures Capital
Yevgen Sysoyev
?
1.1. Evolution-and-Scope-of-Business-Analytics.pptx
1.1. Evolution-and-Scope-of-Business-Analytics.pptx1.1. Evolution-and-Scope-of-Business-Analytics.pptx
1.1. Evolution-and-Scope-of-Business-Analytics.pptx
Jitendra Tomar
?
Unlocking DevOps Secuirty :Vault & Keylock
Unlocking DevOps Secuirty :Vault & KeylockUnlocking DevOps Secuirty :Vault & Keylock
Unlocking DevOps Secuirty :Vault & Keylock
HusseinMalikMammadli
?
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
ScyllaDB
?
Computational Photography: How Technology is Changing Way We Capture the World
Computational Photography: How Technology is Changing Way We Capture the WorldComputational Photography: How Technology is Changing Way We Capture the World
Computational Photography: How Technology is Changing Way We Capture the World
HusseinMalikMammadli
?
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIATHE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
Srivaanchi Nathan
?
UiPath Agentic Automation Capabilities and Opportunities
UiPath Agentic Automation Capabilities and OpportunitiesUiPath Agentic Automation Capabilities and Opportunities
UiPath Agentic Automation Capabilities and Opportunities
DianaGray10
?
Unlock AI Creativity: Image Generation with DALL¡¤E
Unlock AI Creativity: Image Generation with DALL¡¤EUnlock AI Creativity: Image Generation with DALL¡¤E
Unlock AI Creativity: Image Generation with DALL¡¤E
Expeed Software
?
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOTSMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
TanmaiArni
?
Q4 2024 Earnings and Investor Presentation
Q4 2024 Earnings and Investor PresentationQ4 2024 Earnings and Investor Presentation
Q4 2024 Earnings and Investor Presentation
Dropbox
?
L01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardnessL01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardness
RostislavDaniel
?
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
Tsuyoshi Hirayama
?
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Jonathan Bowen
?
Backstage Software Templates for Java Developers
Backstage Software Templates for Java DevelopersBackstage Software Templates for Java Developers
Backstage Software Templates for Java Developers
Markus Eisele
?

°Õ¾±³¾²â²¹²Ô²µÐÂÀË΢²©Éè¼Æ̸

  • 2. Agenda ? Feed ? Cache ?
  • 3. ? ? , status feed ? ?
  • 4. Feed ? feed ? Push( ) ? Pull( ) ?
  • 5. Push ? feed ? Inbox: ? Outbox: ? inbox( ) ? Inbox( ) ? Of?ine computation
  • 7. Pull ? outbox( ) ? Inbox( ) ? Online computation
  • 10. Cache memory is the new disk, and disk is the new tape. for "real-time" web applications, and systems that require massive scalability - Jim Gray
  • 11. Cache
  • 12. cache Weibo cache arch Inbox hot cache Outbox Vector cache Archive cache Social Following Followers users Graph Content Hot cache Total
  • 13. Inbox ? ¡° ¡± ? cache id list ? (hot cache) ? get set ? redis list/set
  • 14. Outbox ? ? id list(e.g. 100) ? id LRU
  • 15. Social Graph cache ? Following ids ? Followers ? ? ? delete all ? followers list
  • 16. Content cache ? cache ? ? ? ? Open API xml, json...
  • 18. Update Work?ow Update status Content cache Hot Inbox Vector Outbox vector Content cache replication
  • 19. ? outbox hot vector ? followers list ? inbox
  • 20. feed Home timeline Work?ow home_timeline aggregator Content hot Inbox cache Outbox Vector cache Inbox archive Inbox archive Content cache
  • 21. feed ? inbox cache ? ? , following ? id list feed
  • 23. ? Content cache ? multi get n feed(n = items/ , e.g. 50) ? cache = n * (feed + , e.g. 2k) ? 1,000 / ? = 50 * 2k * 1,000 / sec = 100MB
  • 24. ? 1,000 800Mbps ?1 8Gbps
  • 25. ? 1G 300~400Mbps ? ? local cache ? ?
  • 26. hot keys ? content cache of ? create local cache 1. get user_yaochen_local 2. get user_yaochen 1. set user_yaochen_local:value 3. delete all
  • 27. cache ? key memcache ? ? LRU cache, ? Memory storage ?
  • 28. mutex ? content item cache ? db ? db ? key_mutex key ? mutex ? mutex
  • 29. ? ? ? less is more ?
  • 30. ? ? code review ?