SlideShare a Scribd company logo
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Load Balancer

      Round Robin



 lighttpd             lighttpd       lighttpd



web server           web server     web server



 fastcgi               fastcgi       fastcgi
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
app_install
               friend db                               people db
                                    db


1. viewer
friend                     2. friend

            memcached
                                               3. 2.
                                               LIMIT, OFFSET
                                               (                   )
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Message feed




Activity feed

                DeNA

                (      )
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
replication
                               message db                         message db
                                (master)                           (slave)

1. enqueue
                             3. insert
                  message                                   6. select
                   (Q4M)
                                         message
                                          cache                         memcached
         2. queue_wait()                  (Q4M)
                                 4. enqueue
                                              5. queue_wait()
                                                                               7. set cache
                                                   message cache
                   message worker
                                                      worker
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture
Inside mbga Open Platform API architecture

More Related Content

Inside mbga Open Platform API architecture

  • 12. Load Balancer Round Robin lighttpd lighttpd lighttpd web server web server web server fastcgi fastcgi fastcgi
  • 26. app_install friend db people db db 1. viewer friend 2. friend memcached 3. 2. LIMIT, OFFSET ( )
  • 34. replication message db message db (master) (slave) 1. enqueue 3. insert message 6. select (Q4M) message cache memcached 2. queue_wait() (Q4M) 4. enqueue 5. queue_wait() 7. set cache message cache message worker worker