Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The Architecture of Stack Overflow - Merge Lisb...

Marco Cecconi
September 26, 2014

The Architecture of Stack Overflow - Merge Lisbon 2014

The Architecture of Stack Overflow slides from Merge Lisbon 2014

Marco Cecconi

September 26, 2014
Tweet

More Decks by Marco Cecconi

Other Decks in Programming

Transcript

  1. #50-­‐ish  network  for  traffic*   …and  #17  in  Portugal!?  

      *source: Quantcast, Alexa   much successful very traffic obrigado, yo!
  2. web servers load balancers redis search database http(s) http rest

    http protobuf sql sql protobuf tag engine
  3. Network Level Caches (CDN, etc.) Server Level Cache (HttpRuntime.Cache) Site

    Level Cache (Redis) SQL Server Database Cache (384 gigs of RAM!) Solid State Disk
  4. IRepository<Order>  orderRepository  =            container.Resolve<IRepository<Order>>();  

      Order  order  =  orderRepository.Get(35); This is what you think you are doing…
  5. ...this is what you are actually doing! IRepository<Order>  repository  =

         new  ValidatingOrderRepository  (          new  SecurityRepository<Order>  (              new  LoggingRepository<Order>  (                  new  CachingRepository<Order>  (                      new  NHibernateRepository<Order>  ()                  )              )          )      );         Order  order  =  repository.Get(35);
  6. Few projects :-) Few lines of code :-) Awesome community

    to help :-D Eeek! very few tests :-S
  7. •     Performance  is  a  feature   •     Always.

     Be.  Shipping.   •     Use  your  circumstances.   •     Open  source  your  libraries   •     3  obscenely  big  monitors.     KEY TAKEAWAYS