SlideShare a Scribd company logo
1 of 65
Download to read offline
Scalable
                 Internet
                 Architectures


                          / Operating at Scale



Sunday, June 21, 2009
Who am I?


                    •   Author of “Scalable Internet Architectures”
                        Pearson, ISBN: 067232699X

                    •   CEO of OmniTI
                        We build scalable and secure web applications

                    •   I am an Engineer
                        A practitioner of academic computing.
                        IEEE member and Senior ACM member.

                    •   I work on/with a lot of Open Source software:
                        Apache, perl, Linux, Solaris, PostgreSQL,
                        Varnish, Spread, Reconnoiter, etc.

                    •   I have experience.
                        I’ve had the unique opportunity to watch a great many catastrophes.
                        I enjoy immersing myself in the pathology of architecture failures.




Sunday, June 21, 2009
Topic Progression


                    •   What is an architecture?

                    •   What does it mean to run a (scalable) architecture?

                    •   Scaling Techniques for

                        •   Static Content

                        •   Dynamic Content

                        •   Databases

                        •   Networks

                    •   Techniques for decoupling services

                    •   Bad Ideas




Sunday, June 21, 2009
Architecture


                          / the whole enchilada



Sunday, June 21, 2009
Architecture / what it is




                    •   architecture (n.):
                        the complex or carefully designed structure of something.

                        specifically in computing:
                        the conceptual structure and logical organization of a computer or a
                        computer-based system.




                                                                - Oxford American Dictionary




Sunday, June 21, 2009
Architecture / more than meets the eye




                    •   An architecture is all encompassing.

                        •   space, power, cooling

                        •   servers, switches, routers

                        •   load balancers, firewalls

                        •   databases, non-database storage

                        •   dynamic applications

                        •   the architecture you export to the user (javascript, etc.)




Sunday, June 21, 2009
Architecture / awareness is key



                        •   Not all people do all things.

                        •   However...

                            •   lack of awareness of the other disciplines is bad

                            •   leads to isolated decisions

                            •   which leads to unreasonable requirements elsewhere

                            •   which lead to over engineered products

                            •   stupid decisions

                            •   catastrophic failures




Sunday, June 21, 2009
Architecture / running it all




                    •   Running Operations is serious stuff

                    •   It takes knowledge, tools...

                    •   but that is not enough.

                    •   It takes experience.

                    •   And perhaps even more importantly...

                    •   It takes discipline.




Sunday, June 21, 2009
Architecture / knowledge




                    •   Read.

                    •   Study.

                    •   Leverage User Groups (SAGE,LUGs,OSUGs,PUGs,etc.)

                    •   Participate in the community.




Sunday, June 21, 2009
Architecture / tools




                    •   Collaborate with colleagues.

                    •   Try new tools.

                    •   Write new tools.

                    •   Know and practice your tools during the “good times”
                        in order to make their use effortless during the “bad times”




Sunday, June 21, 2009
Architecture / tool theories


                        “One only needs two tools in life:
                         WD-40 to make things go,
                         and duct tape to make them stop.”
                                                                               - George Weilacher

                        “Man is a tool-making animal.”
                                                                              - Benjamin Franklin

                        “Man is a tool-using animal.”
                                                                                 - Thomas Carlyle

                        “Men have become the tools of their tools.”
                                                                           - Henry David Thoreau

                        “All the tools and engines on earth
                         are only extensions of man's limbs and senses.”
                                                                           - Ralph Waldo Emerson




Sunday, June 21, 2009
Architecture / my take on tools




                    •   Tools are just tools.

                    •   They are absolutely essential to doing your job.

                    •   They will never do your job for you.

                    •   Tools will never replace experience and discipline.

                    •   But tools can help you maintain discipline.




Sunday, June 21, 2009
Architecture / experience



                        “Experience is what enables you to recognize
                         a mistake when you make it again.”
                                                                            - Earl Wilson

                        “Is there anyone so wise
                         as to learn by the experience of others?”
                                                                       - Francois Voltaire

                        “Good judgment comes from experience.
                         Experience comes from bad judgment.”
                                                                                - Proverb

                        “Judge people on the poise and integrity
                         with which they remediate their failures.”
                                                                                     - me




Sunday, June 21, 2009
Architecture / discipline


                    •   Discipline is important in any job.

                    •   Discipline is

                        “controlled behavior resulting from training, study and practice.”

                    •   In my experience discipline is the most frequently missing ingredient
                        in the field of web operations.

                    •   I believe this to be caused by a lack of focus, laziness, and the view
                        that it is a job instead of an art.

                    •   As in any trade

                        •   To be truly excellent one must treat it as a craft.
                        •   One must become a craftsman.
                        •   Through experience learn discipline.
                        •   And through practice achieve excellence.




Sunday, June 21, 2009
Architecture / actually running it all




                    •   Okay, I get it.

                    •   From day to day, what do I need to know?




Sunday, June 21, 2009
Architecture / version control


                    •   Switch configurations should be in version control.

                    •   Router configurations should be in version control.

                    •   Firewall configurations should be in version control.

                    •   System configurations should be in version control.

                    •   Application configurations should be in version control.

                    •   Monitoring configurations should be in version control.

                    •   Documentation should be in version control.

                    •   Application code should be in version control.

                    •   Database schema should be in version control.

                    •   Everything you do should be in version control.




Sunday, June 21, 2009
Architecture / version control




                •       And no... it doesn’t matter which tool.

                •       It’s not about the tool, it’s about the discipline to always use it.




                                                 (today, we use subversion)




Sunday, June 21, 2009
Architecture / know your systems


                    •   To know when something looks unhealthy,
                        one must know what healthy looks like.

                    •   Monitor everything.

                    •   Collect as much system and process information as possible.

                    •   Look at your systems and use your diagnostic tools
                        when things are healthy.




Sunday, June 21, 2009
Architecture / management


                        •   Package roll out?

                        •   Machine management?

                        •   Provisioning?



                    •   They tell me I should use Puppet.

                    •   They tell me I should use Chef.

                    •   well... I stick to my theory on tools:

                        •   A master craftsman chooses or builds the tools he likes.

                        •   A tool does not the master craftsman make.




Sunday, June 21, 2009
Static Content


                          / bits by the truckload



Sunday, June 21, 2009
Techniques / Static Content




                    •   Old tricks. Good games.

                    •   Use Akamai... or a competitor... or build it yourself.




Sunday, June 21, 2009
Content Distribution / availability


                                Users                              Users




                        HA/LB           HA/LB
                                                           Web
                                                      HA            Web
                                                              HA
                                                                           Web
                 Web            Web         Web
                                                                      HA


                        “White Paper” Approach               Peer-based HA

               expensive, dedicated, single-purpose         cheap and reusable
                          HA/LB devices                    commodity machines




Sunday, June 21, 2009
Content Distribution / the stack




                    •   Setup a web server to host all your static content.

                    •   Setup a handful of servers running a reverse proxy-cache:
                        Squid or Varnish or Apache/mod_proxy

                    •   Make them redundant without a load balancer by using IP
                        redundancy protocols:
                        VRRP, UCARP or Wackamole

                    •   simple, easy, scalable.




Sunday, June 21, 2009
Content Distribution / the network




                    •   Setup the same thing in multiple datacenters

                    •   Each has its own set of IP address:

                        •   d.c.a.{11,12,13}

                        •   d.c.b.{11,12,13}

                        •   d.c.c.{11,12,13}

                        •   etc.




Sunday, June 21, 2009
Content Distribution / location




Sunday, June 21, 2009
Content Distribution / location seamlessly




                    •   Put a DNS server at each location behind the same uplink

                        •   each with the same IP address

                        •   announce that network from all data centers (using BGP)




Sunday, June 21, 2009
Content Distribution / global access




Sunday, June 21, 2009
Dynamic Content


                         / keeping users interested



Sunday, June 21, 2009
Techniques / Dynamic Content




                        “We should forget about small efficiencies,
                         say about 97% of the time:
                         premature optimization is the root of all evil.”
                                                                              - Donald Knuth



                        “Knowing when optimization is premature defines the difference
                         between the master engineer and the apprentice.”
                                                                                         - me




Sunday, June 21, 2009
Techniques / optimization



                    •   Optimization comes down to a simple concept:
                        “don’t do work you don’t have to.”

                    •   It can take the form of:

                        •   computational reuse

                        •   caching in a more general sense



                        •   and my personal favorite:

                            •   ... avoid the problem, and do no work at all.




Sunday, June 21, 2009
Techniques / optimization applied




                    •   Optimization in dynamic content simply means:

                        •   Don’t pay to generate the same content twice

                        •   Only generate content when things change

                        •   Break the system into components so that you can isolate the costs
                            of things that change rapidly from those that change infrequently.




Sunday, June 21, 2009
Caching / real world example


                    •   News site

                        •   News items are stored in Oracle

                        •   User Preferences are stored in Oracle

                        •   Hundreds of different sections

                        •   Each with thousands of different articles



                    •   Pages:

                        •   1000+ hits/second

                        •   shows personalized user info on EVERY page

                        •   front page shows top NF articles for forum F (limit 10)




Sunday, June 21, 2009
Caching / the approach



                    •   Oracle is fast enough

                        •   why abuse Oracle for this purposes?

                        •   surely there are better things for Oracle to be doing



                    •   Updates are controlled

                        •   updates to news items only happen from a publisher

                        •   news update:read ratio is miniscule

                        •   user preferences are only ever updated by the user




Sunday, June 21, 2009
Caching / articles

                    •   Article publishing

                        •   sticks news items in Oracle



                    •   The straight forward way

                        •   http://news.example.com/news/article.php?id=12345

                        •   page pulls user prefs from cookie

                        •   (or bounces off a cookie populator)

                        •   page pulls news item from database



                    •   I hate query strings

                        •   I like: http://news.example.com/news/items/12345.html

         RewriteRule ^/news/items/([^/]*).html$ /www/docs/news/article.php?id=$1 [L]


Sunday, June 21, 2009
Caching / articles cached


                    •   We pull the item that is likely to never change

                        •   cheaper if the page just hard coded the news item

                        •   writing the news article out into a PHP page is a hassle

                        •    ... or is it?



                    •   Have the straight forward page cache it

                        •   /news/article.php writes /news/items/12345.html

                        •   as a PHP page that still expands personal info from cookie, but has
                            the news item content statically included as HTML.



        RewriteCond %{REQUEST_FILENAME} ^/news/items/([^/]*).html
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^/news/items/([^/]*).html$ /www/docs/news/article.php?id=$1 [L]


Sunday, June 21, 2009
Caching / articles cached
                    •   Run a cache invalidator on each web server

                        •   connects to Spread as a subscriber

                        •   accepts /www/docs/news/items/####.html deletion requests

                        •   accepts full purge requests

                    •   Article publishing

                        •   stash item #### in Oracle (insert or update)

                        •   publish through Spread an invalidation of ####

                    •   Changing the look of the article pages

                        •   change article.php to have the desired effect

                        •   (and write the appropriate php cache pages)

                        •   publish through Spread a full purge

                    •   If I had to do it again, I’d use a message queue instead of Spread.


Sunday, June 21, 2009
Caching / the result



                    •   All news item pages require zero DB requests

                        •   the business can now make your life difficult by requesting new
                            crap on these pages that can’t be so easily cached

                    •   Far fewer database connections required

                        •   all databases appreciate that (Oracle, MySQL, Postgres)

                    •   Bottleneck is now Apache+mod_php

                        •   crazy fast with tools like APC

                        •   inherently scalable... just add more web servers

                        •   room for more application features




Sunday, June 21, 2009
Data Management


                        / remembering something useful



Sunday, June 21, 2009
Techniques / Databases




                    •   Rule 1: shard your database

                    •   Rule 2: shoot yourself




Sunday, June 21, 2009
Databases / second try


                    •   Horizontally scaling your databases via sharding/federating requires
                        that you make concessions that should make you cry.

                    •   shard (n.)
                        a piece of broken ceramic, metal, glass, or rock typically having
                        sharp edges.

                    •   sharding (v.)
                        dunno... but you will likely wound yourself and you get to keep all
                        the pieces.

                    •   But seriously...

                        •   databases (other than MySQL) scale vertically to a greater degree
                            than many people admit.

                        •   if you must fragment your data, you will throw away relational
                            constraints. this should make you cry. cry. cry hard. cry some
                            more. then move on and shard your database.




Sunday, June 21, 2009
Databases / vertical scaling


                    •   Many times relational constraints are not needed on data.

                    •   If this is the case, a traditional relational database is unnecessary.

                    •   There are cool technologies out there to do this:

                        •   “files”

                        •   CouchDB

                        •   cookies

                    •   Non-ACID databases can be easier to scale

                    •   Vertical scaling is achieved via two mechanisms:

                        •   doing only what is absolutely necessary in the database

                        •   running a good database that can scale well vertically




Sunday, June 21, 2009
Databases / horizontal scaling




                    •   Okay... so you really need to scale horizontally.

                    •   understand the questions you intend to ask.

                    •   make sure that you partition in a fashion that doesn’t require more
                        than a single shard to answer OLTP-style questions.

                    •   If that is not possible, consider data duplication.




Sunday, June 21, 2009
Databases / an example



                    •   private messages all stored on the server side

                        •   individuals sends messages to their friends

                        •   an individual should see all messages sent to them



                    •   Easy! partition by recipient.

                        •   either by hash

                        •   range partitions

                        •   whatever




Sunday, June 21, 2009
Databases / an example complicated



                    •   now users must be able to review all sent messages.



                    •   Crap!

                        •   our recipient-based partitioning causes us to map the request
                            across all shards to answer messages by sender.

                    •   In this case:

                        •   store messages twice... once by recipient and once by sender

                        •   twice the storage, but queries only hit a single node now




Sunday, June 21, 2009
Databases / an example unwound




                    •   Partitioning data allows one to reduce the dataset size on each node.

                    •   You might just cause more problems than you’ve solved.

                    •   Complicated (or even simple) queries become a pain
                        if they don’t align with your partitioning strategy.

                    •   Partitioning like this is really a commitment. You lose much of the
                        power of your relational database and complicate what were once easy
                        problems.

                    •   Sometimes you have to do what you have to do.
                        Don’t make the concession until you have to.




Sunday, June 21, 2009
Databases / take care




                    •   Multi-master replication is simply not ready these days.

                        •   getting closer every year.

                    •   When partitioning/federating/sharding data, take the step to model
                        what you are doing.

                    •   Prototype several different schemes and make sure you truly
                        understand your intended use patterns before deciding.




Sunday, June 21, 2009
Networking


                         / actually delivering



Sunday, June 21, 2009
Techniques / Networking




                    •   The network is part of the architecture.

                    •   So often forgotten by the database engineers and the application
                        coders and the front-end developers and the designers.

                    •   Packets per second, firewall states, load balancing algorithms, etc.

                    •   Many apps today are so poorly designed that network issues never
                        become scalability concerns... others can really toss the bits.

                    •   This is for the application architectures that have high traffic rates.




Sunday, June 21, 2009
Networking / basics




                    •   Scalability on the network side is all about:

                        •   understanding the bottleneck

                        •   avoiding the single point of failure

                        •   spreading out the load.




Sunday, June 21, 2009
Networking / going past gigE




                    •   A single machine can push 1 GigE.

                    •   Actually more than a GigE isn’t too hard.

                    •   But how to push 10 or 20?

                    •   Buy a really expensive load balancer?

                    •   ... there are other ways to manage this a bit cheaper.




Sunday, June 21, 2009
Networking / going past gigE



                    •   use routing.

                    •   routing supports extremely naive load balancing.

                    •   run a routing protocol on the front-end ‘uber-caches’

                    •   have the upstream use hashed routes

                    •   the user-caches announce the same IP.

                    •   this adds fault-tolerance and distributes network load.

                    •   and it is pretty much free (no new equipment in the path).

                    •   note: your ‘uber-caches’ may be load balancers themselves.




Sunday, June 21, 2009
Networking / isolation

                    •   for those that run multiple services on the same network.

                    •   one service bursting on a.b.c.67 might saturate firewall and/or load-
                        balancer capacity and degrade services other services behind the same
                        infrastructure.

                    •   again... routing to the rescue.



                    •   set up a separate set of firewalls/load-balancers that reside in a
                        “surge” net. Those firewalls only need to announce the /32 of the
                        surging service to assume control of the traffic.

                        note: you need some trickery to make sure return traffic is
                        symmetric



                    •   This is the same technique used to protect against DDoS attacks.




Sunday, June 21, 2009
Service Decoupling


                         / controlling experience by removing ‘the suck’



Sunday, June 21, 2009
Techniques / Service Decoupling




                    •   One of the most overlooked techniques for building scalable systems

                    •   Why do now what you can postpone until later?

                        •   This mantra often doesn’t break a user’s experience.

                    •   Break down the user transaction into parts.

                    •   Isolate those that could occur asynchronously.

                    •   Queue the information needed to complete the task.

                    •   Process the queues “behind the scenes.”




Sunday, June 21, 2009
Decoupling / concept


                    •   If I don’t want to do something now...

                    •   I must tell someone to do it later.



                    •   This is “messaging”



                    •   There are a lot of solutions:

                        •   JMS (Java message service)

                        •   Spread (extended virtual synchrony messaging bus)

                        •   AMQP (advanced message queueing protocol)




Sunday, June 21, 2009
Decoupling / tools



                    •   Message Queueing is the main tool used for this...
                        durable message queueing:

                        •   ActiveMQ (Java)

                        •   OpenAMQ (C)

                        •   RabbitMQ (erlang)



                    •   Most common protocol is STOMP

                        •   STOMP kinda sucks... but it is universal

                        •   Clients exist for every language




Sunday, June 21, 2009
Decoupling / tools



                    •   The typical use-case requires combining

                        •   a message queue, and

                        •   a job dispatcher

                    •   People think Gearman does this.

                        •   it does allow dispatching work across a cluster of machines

                        •   but, it doesn’t inherently decouple the action from the outcome

                        •   yet, it is pretty straight forward to realize this

                        •   should be used to scale out work that can’t be decoupled.




Sunday, June 21, 2009
WTF


                        / most scalability problems are due to idiocy



Sunday, June 21, 2009
WTF / don’t be an idiot



                    •   most acute scalability disasters are due to idiots

                    •   don’t be an idiot

                    •   scaling is hard

                    •   performance is easier

                    •   extremely high-performance systems tend to be easier to scale

                        •   because they don’t have to

                                                         SCALE
                                                                             as much.




Sunday, June 21, 2009
WTF / sample 1




                    •   Hey! let’s send a marketing campaign to:

                                    http://example.com/landing/page



                    •   GET /landing/page HTTP/1.0
                        Host: example.com

                        HTTP/1.0 302 FOUND
                        Location: /landing/page/




Sunday, June 21, 2009
WTF / sample 2



                •       commit message: “prevent caching here.”



                            swfobject.embedSWF(

                        -      "/XXXXX/swf/gallery.swf",

                        +      "/XXXXX/swf/gallery.swf?t=" + new Date().getTime(),

                              "flashcontainer",




                •       caching should be controlled not prevented.




Sunday, June 21, 2009
WTF / sample 3

                •       I have 100k rows in my users table...

                •       I’m going to have 10MM...

                •       I should split it into 100 buckets,
                        with 1MM per bucket so I can scale to 100MM.

                •       The fundamental problem is that I don’t understand my problem.



                •       I know what my problems are with 100k users... or do I?

                •       There is some margin for error...
                        you design for 10x...
                        as you actualize 10x growth you will (painfully) understand that margin.

                •       Designing for 100x let alone 1000x
                        requires a profound understanding of their problem.

                •       Very few have that.



Sunday, June 21, 2009
WTF / sample 4

                •       I plan to have a traffic spike from (link on MSN.com)

                •       I expect 3000 new visitors per second.

                •       My page http://example.com/coolstuff is 14k
                        2 css files each at 4k
                        1 js file at 23k
                        17 images each at ~16k
                        (everything’s compressed)

                •       /coolstuff is CPU bound (for the sake of this argument)
                        I’ve tuned to 8ms services times...
                        8 core machines at 90% means 7200ms of CPU time/second...
                        900 req/second per machine...
                        3000 v/s / 900 r/s/machine / 70% goal at peak rounded up is...
                        5 machines (6 allowing a failure)

                •       the other files I can serve faster... say 30k requests/second from my
                        Varnish instances... 3000 v/s * 20 assets / 30k r/s/varnish / 70% is...
                        3 machines (4 allowing a failure).




Sunday, June 21, 2009
WTF / sample 4, the forgotten part

                •       14k + 2 * 4k + 1 * 23k + 17 * 16k = 21 requests with 317k response

                •       (317k is 2596864 bits/visit) * 3000 visits/second = 7790592000 b/s

                •       just under 8 gigabits per second.

                •       even naively, this is 500 packets per visitor * 3000 visitors/second

                •       1.5MM packets/second.



                •       This is no paltry task...

                •       20 assets/visit are static content, we know how to solve that.

                •       the rest? ~350 megabits per second and ~75k packets/second

                •       perfectly manageable, right?

                •       a bad landing link that 302’s adds ~30k packets/second... Crap.



Sunday, June 21, 2009
Thank You

                    •   Thank you O’Reilly

                        •   Velocity was much needed and overdue

                    •   Thank you OmniTI

                        •   We’re hiring!

                    •
                                               S32699X_Scalable_Internet.qxd      6/23/06   3:31 PM    Page 1




                        Thank you!




                                                                                                                                                                       Scalable Internet Architectures
                                                                                                                                                                                                         Theo Schlossnagle

                                                  Scalable Internet Architectures
                                                    With an estimated one billion users worldwide, the Internet today is nothing less than a
                                                    global subculture with immense diversity, incredible size, and wide geographic reach. With a
                                                    relatively low barrier to entry, almost anyone can register a domain name today and potentially
                                                    provide services to people around the entire world tomorrow. But easy entry to web-based
                                                    commerce and services can be a double-edged sword. In such a market, it is typically much
                                                    harder to gauge interest in advance, and the negative impact of unexpected customer traffic
                                                    can turn out to be devastating for the unprepared.
                                                    In Scalable Internet Architectures, renowned software engineer and architect Theo
                                                    Schlossnagle outlines the steps and processes organizations can follow to build online
                                                    services that can scale well with demand—both quickly and economically. By making
                                                    intelligent decisions throughout the evolution of an architecture, scalability can be a matter




                                                                                                                                                                                                         Scalable Internet
                                                    of engineering rather than redesign, costly purchasing, or black magic.
                                                    Filled with numerous examples, anecdotes, and lessons gleaned from the author’s years
                                                    of experience building large-scale Internet services, Scalable Internet Architectures is both
                                                    thought-provoking and instructional. Readers are challenged to understand first, before they




                                                                                                                                                                                                         Architectures
                                                    start a large project, how what they are building will be used, so that from the beginning
                                                    they can design for scalability those parts which need to scale. With the right approach, it
                                                    should take no more effort to design and implement a solution that scales than it takes
                                                    to build something that will not—and if this is the case, Schlossnagle writes, respect
                                                    yourself and build it right.


                                                    Theo Schlossnagle is a principal at OmniTI Computer Consulting, where he provides
                                                    expert consulting services related to scalable Internet architectures, database replication,
                                                    and email infrastructure. He is the creator of the Backhand Project and the Ecelerity MTA,
                                                    and spends most of his time solving the scalability problems that arise in high performance
                                                    and highly distributed systems.




                                                  Internet/Programming                                                     Cover image © Digital Vision/Getty Images


                                                                 Scalability                                                                                            Schlossnagle
                                                                Performance                                        $49.99 USA / $61.99 CAN / £35.99 Net UK
                                                                  Security
                                                                www.omniti.com

                                                  DEVELOPER’S
                                                  LIBRARY
                                                                                                                                                                        DEVELOPER’S
                                                  www.developers-library.com                                                                                            LIBRARY




Sunday, June 21, 2009

More Related Content

What's hot

Dempster Shafer Theory AI CSE 8th Sem
Dempster Shafer Theory AI CSE 8th SemDempster Shafer Theory AI CSE 8th Sem
Dempster Shafer Theory AI CSE 8th SemDigiGurukul
 
Implementation levels of virtualization
Implementation levels of virtualizationImplementation levels of virtualization
Implementation levels of virtualizationGokulnath S
 
Lexical Analysis
Lexical AnalysisLexical Analysis
Lexical AnalysisMunni28
 
Vc dimension in Machine Learning
Vc dimension in Machine LearningVc dimension in Machine Learning
Vc dimension in Machine LearningVARUN KUMAR
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithmBushra M
 
Cloud federation.pptx
Cloud federation.pptxCloud federation.pptx
Cloud federation.pptxYbhh
 
Packet switching
Packet switchingPacket switching
Packet switchingasimnawaz54
 
Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmDistance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmMOHIT AGARWAL
 
IEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and ServicesIEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and ServicesSayed Chhattan Shah
 
Software architecture Unit 1 notes
Software architecture Unit 1 notesSoftware architecture Unit 1 notes
Software architecture Unit 1 notesSudarshan Dhondaley
 
Coupling and cohesion
Coupling and cohesionCoupling and cohesion
Coupling and cohesionSutha31
 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And CorrectionRenu Kewalramani
 
Finite automata-for-lexical-analysis
Finite automata-for-lexical-analysisFinite automata-for-lexical-analysis
Finite automata-for-lexical-analysisDattatray Gandhmal
 

What's hot (20)

Dempster Shafer Theory AI CSE 8th Sem
Dempster Shafer Theory AI CSE 8th SemDempster Shafer Theory AI CSE 8th Sem
Dempster Shafer Theory AI CSE 8th Sem
 
Implementation levels of virtualization
Implementation levels of virtualizationImplementation levels of virtualization
Implementation levels of virtualization
 
4+1 view model
4+1 view model4+1 view model
4+1 view model
 
Data Communication & Networking
Data Communication & Networking Data Communication & Networking
Data Communication & Networking
 
Lexical Analysis
Lexical AnalysisLexical Analysis
Lexical Analysis
 
Vc dimension in Machine Learning
Vc dimension in Machine LearningVc dimension in Machine Learning
Vc dimension in Machine Learning
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
unit 3 Design 1
unit 3 Design 1unit 3 Design 1
unit 3 Design 1
 
Cloud federation.pptx
Cloud federation.pptxCloud federation.pptx
Cloud federation.pptx
 
Packet switching
Packet switchingPacket switching
Packet switching
 
Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmDistance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing Algorithm
 
Reusability
ReusabilityReusability
Reusability
 
Bandwidth utilization
Bandwidth utilizationBandwidth utilization
Bandwidth utilization
 
Chapter 1 (final)
Chapter 1 (final)Chapter 1 (final)
Chapter 1 (final)
 
IEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and ServicesIEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and Services
 
Software architecture Unit 1 notes
Software architecture Unit 1 notesSoftware architecture Unit 1 notes
Software architecture Unit 1 notes
 
1.Role lexical Analyzer
1.Role lexical Analyzer1.Role lexical Analyzer
1.Role lexical Analyzer
 
Coupling and cohesion
Coupling and cohesionCoupling and cohesion
Coupling and cohesion
 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And Correction
 
Finite automata-for-lexical-analysis
Finite automata-for-lexical-analysisFinite automata-for-lexical-analysis
Finite automata-for-lexical-analysis
 

Viewers also liked

Vertical vs Horizontal Scaling
Vertical vs Horizontal Scaling Vertical vs Horizontal Scaling
Vertical vs Horizontal Scaling Mark Myers
 
Infinite Scalable Systems with Docker
Infinite Scalable Systems with DockerInfinite Scalable Systems with Docker
Infinite Scalable Systems with DockerHüseyin BABAL
 
Emerging technologies /frameworks in Big Data
Emerging technologies /frameworks in Big DataEmerging technologies /frameworks in Big Data
Emerging technologies /frameworks in Big DataRahul Jain
 
7 Stages of Scaling Web Applications
7 Stages of Scaling Web Applications7 Stages of Scaling Web Applications
7 Stages of Scaling Web ApplicationsDavid Mitzenmacher
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine LearningRahul Jain
 
Building a Large Scale SEO/SEM Application with Apache Solr
Building a Large Scale SEO/SEM Application with Apache SolrBuilding a Large Scale SEO/SEM Application with Apache Solr
Building a Large Scale SEO/SEM Application with Apache SolrRahul Jain
 
Applying operations culture to everything
Applying operations culture to everythingApplying operations culture to everything
Applying operations culture to everythingTheo Schlossnagle
 
Case study of Rujhaan.com (A social news app )
Case study of Rujhaan.com (A social news app )Case study of Rujhaan.com (A social news app )
Case study of Rujhaan.com (A social news app )Rahul Jain
 
Velocity 2010: Scalable Internet Architectures
Velocity 2010: Scalable Internet ArchitecturesVelocity 2010: Scalable Internet Architectures
Velocity 2010: Scalable Internet ArchitecturesTheo Schlossnagle
 
Big Bad PostgreSQL @ Percona
Big Bad PostgreSQL @ PerconaBig Bad PostgreSQL @ Percona
Big Bad PostgreSQL @ PerconaTheo Schlossnagle
 
OmniOS Motivation and Design ~ LISA 2012
OmniOS Motivation and Design ~ LISA 2012OmniOS Motivation and Design ~ LISA 2012
OmniOS Motivation and Design ~ LISA 2012Theo Schlossnagle
 
Monitoring is easy, why are we so bad at it presentation
Monitoring is easy, why are we so bad at it  presentationMonitoring is easy, why are we so bad at it  presentation
Monitoring is easy, why are we so bad at it presentationTheo Schlossnagle
 
Designing scalable Docker networks
Designing scalable Docker networksDesigning scalable Docker networks
Designing scalable Docker networksMurat Mukhtarov
 
Monitoring and observability
Monitoring and observabilityMonitoring and observability
Monitoring and observabilityTheo Schlossnagle
 
Introduction to Lucene & Solr and Usecases
Introduction to Lucene & Solr and UsecasesIntroduction to Lucene & Solr and Usecases
Introduction to Lucene & Solr and UsecasesRahul Jain
 

Viewers also liked (20)

Vertical vs Horizontal Scaling
Vertical vs Horizontal Scaling Vertical vs Horizontal Scaling
Vertical vs Horizontal Scaling
 
Infinite Scalable Systems with Docker
Infinite Scalable Systems with DockerInfinite Scalable Systems with Docker
Infinite Scalable Systems with Docker
 
Craftsmanship
CraftsmanshipCraftsmanship
Craftsmanship
 
Emerging technologies /frameworks in Big Data
Emerging technologies /frameworks in Big DataEmerging technologies /frameworks in Big Data
Emerging technologies /frameworks in Big Data
 
7 Stages of Scaling Web Applications
7 Stages of Scaling Web Applications7 Stages of Scaling Web Applications
7 Stages of Scaling Web Applications
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
 
Building a Large Scale SEO/SEM Application with Apache Solr
Building a Large Scale SEO/SEM Application with Apache SolrBuilding a Large Scale SEO/SEM Application with Apache Solr
Building a Large Scale SEO/SEM Application with Apache Solr
 
Web Operations Career
Web Operations CareerWeb Operations Career
Web Operations Career
 
PostgreSQL on Solaris
PostgreSQL on SolarisPostgreSQL on Solaris
PostgreSQL on Solaris
 
Applying operations culture to everything
Applying operations culture to everythingApplying operations culture to everything
Applying operations culture to everything
 
Case study of Rujhaan.com (A social news app )
Case study of Rujhaan.com (A social news app )Case study of Rujhaan.com (A social news app )
Case study of Rujhaan.com (A social news app )
 
Velocity 2010: Scalable Internet Architectures
Velocity 2010: Scalable Internet ArchitecturesVelocity 2010: Scalable Internet Architectures
Velocity 2010: Scalable Internet Architectures
 
Big Bad PostgreSQL @ Percona
Big Bad PostgreSQL @ PerconaBig Bad PostgreSQL @ Percona
Big Bad PostgreSQL @ Percona
 
Omnios and unix
Omnios and unixOmnios and unix
Omnios and unix
 
OmniOS Motivation and Design ~ LISA 2012
OmniOS Motivation and Design ~ LISA 2012OmniOS Motivation and Design ~ LISA 2012
OmniOS Motivation and Design ~ LISA 2012
 
Project reality
Project realityProject reality
Project reality
 
Monitoring is easy, why are we so bad at it presentation
Monitoring is easy, why are we so bad at it  presentationMonitoring is easy, why are we so bad at it  presentation
Monitoring is easy, why are we so bad at it presentation
 
Designing scalable Docker networks
Designing scalable Docker networksDesigning scalable Docker networks
Designing scalable Docker networks
 
Monitoring and observability
Monitoring and observabilityMonitoring and observability
Monitoring and observability
 
Introduction to Lucene & Solr and Usecases
Introduction to Lucene & Solr and UsecasesIntroduction to Lucene & Solr and Usecases
Introduction to Lucene & Solr and Usecases
 

Similar to Scalable Internet Architecture

Hartford.wayne wh1
Hartford.wayne wh1Hartford.wayne wh1
Hartford.wayne wh1NASAPMC
 
Hartford.wayne wh1
Hartford.wayne wh1Hartford.wayne wh1
Hartford.wayne wh1NASAPMC
 
An agile approach to iPhone design: Paper prototyping + user testing
An agile approach to iPhone design:  Paper prototyping + user testingAn agile approach to iPhone design:  Paper prototyping + user testing
An agile approach to iPhone design: Paper prototyping + user testingGinsburg Design
 
GHAMAS Design Principles
GHAMAS Design PrinciplesGHAMAS Design Principles
GHAMAS Design PrinciplesMichael Rawlins
 
Design Thinking for Developers
Design Thinking for DevelopersDesign Thinking for Developers
Design Thinking for DevelopersMatthew Banz
 
Avatars' in teaching the early experiences of [autosaved]new
Avatars' in teaching  the early experiences of [autosaved]newAvatars' in teaching  the early experiences of [autosaved]new
Avatars' in teaching the early experiences of [autosaved]newMartin Rieser
 
Escaping the Knowledge Management Black Hole: New Approaches to Leveraging Or...
Escaping the Knowledge Management Black Hole: New Approaches to Leveraging Or...Escaping the Knowledge Management Black Hole: New Approaches to Leveraging Or...
Escaping the Knowledge Management Black Hole: New Approaches to Leveraging Or...Paul Culmsee
 
Design Patterns Summer Course 2009-2010 - Session#1
Design Patterns Summer Course 2009-2010 - Session#1Design Patterns Summer Course 2009-2010 - Session#1
Design Patterns Summer Course 2009-2010 - Session#1Muhamad Hesham
 
OSCON 2007: Open Design, Not By Committee
OSCON 2007: Open Design, Not By CommitteeOSCON 2007: Open Design, Not By Committee
OSCON 2007: Open Design, Not By CommitteeTed Leung
 
Del prototipo a la realidad
Del prototipo a la realidadDel prototipo a la realidad
Del prototipo a la realidadDani Armengol
 
Risk Centric Architecture George Fairbanks
Risk Centric Architecture George FairbanksRisk Centric Architecture George Fairbanks
Risk Centric Architecture George FairbanksIASA
 
Universal Design for Learning Intro
Universal Design for Learning IntroUniversal Design for Learning Intro
Universal Design for Learning IntroBeth Sockman
 
Software Architectures, Week 1 - Monolithic Architectures
Software Architectures, Week 1 - Monolithic ArchitecturesSoftware Architectures, Week 1 - Monolithic Architectures
Software Architectures, Week 1 - Monolithic ArchitecturesAngelos Kapsimanis
 
Software Architecture Clues
Software Architecture CluesSoftware Architecture Clues
Software Architecture CluesRuth Malan
 

Similar to Scalable Internet Architecture (20)

Hartford.wayne wh1
Hartford.wayne wh1Hartford.wayne wh1
Hartford.wayne wh1
 
Hartford.wayne wh1
Hartford.wayne wh1Hartford.wayne wh1
Hartford.wayne wh1
 
An agile approach to iPhone design: Paper prototyping + user testing
An agile approach to iPhone design:  Paper prototyping + user testingAn agile approach to iPhone design:  Paper prototyping + user testing
An agile approach to iPhone design: Paper prototyping + user testing
 
Team work
Team workTeam work
Team work
 
Looking at the wetware
Looking at the wetwareLooking at the wetware
Looking at the wetware
 
GHAMAS Design Principles
GHAMAS Design PrinciplesGHAMAS Design Principles
GHAMAS Design Principles
 
Design Thinking for Developers
Design Thinking for DevelopersDesign Thinking for Developers
Design Thinking for Developers
 
Avatars' in teaching the early experiences of [autosaved]new
Avatars' in teaching  the early experiences of [autosaved]newAvatars' in teaching  the early experiences of [autosaved]new
Avatars' in teaching the early experiences of [autosaved]new
 
Forward
ForwardForward
Forward
 
Simple is hard
Simple is hardSimple is hard
Simple is hard
 
Looking at the wetware stakeholders in communities - fossa2011
Looking at the wetware   stakeholders in communities - fossa2011Looking at the wetware   stakeholders in communities - fossa2011
Looking at the wetware stakeholders in communities - fossa2011
 
Escaping the Knowledge Management Black Hole: New Approaches to Leveraging Or...
Escaping the Knowledge Management Black Hole: New Approaches to Leveraging Or...Escaping the Knowledge Management Black Hole: New Approaches to Leveraging Or...
Escaping the Knowledge Management Black Hole: New Approaches to Leveraging Or...
 
Design Patterns Summer Course 2009-2010 - Session#1
Design Patterns Summer Course 2009-2010 - Session#1Design Patterns Summer Course 2009-2010 - Session#1
Design Patterns Summer Course 2009-2010 - Session#1
 
OSCON 2007: Open Design, Not By Committee
OSCON 2007: Open Design, Not By CommitteeOSCON 2007: Open Design, Not By Committee
OSCON 2007: Open Design, Not By Committee
 
Del prototipo a la realidad
Del prototipo a la realidadDel prototipo a la realidad
Del prototipo a la realidad
 
Risk Centric Architecture George Fairbanks
Risk Centric Architecture George FairbanksRisk Centric Architecture George Fairbanks
Risk Centric Architecture George Fairbanks
 
CHI overzicht
CHI overzichtCHI overzicht
CHI overzicht
 
Universal Design for Learning Intro
Universal Design for Learning IntroUniversal Design for Learning Intro
Universal Design for Learning Intro
 
Software Architectures, Week 1 - Monolithic Architectures
Software Architectures, Week 1 - Monolithic ArchitecturesSoftware Architectures, Week 1 - Monolithic Architectures
Software Architectures, Week 1 - Monolithic Architectures
 
Software Architecture Clues
Software Architecture CluesSoftware Architecture Clues
Software Architecture Clues
 

More from Theo Schlossnagle

More from Theo Schlossnagle (20)

Adding Simplicity to Complexity
Adding Simplicity to ComplexityAdding Simplicity to Complexity
Adding Simplicity to Complexity
 
Put Some SRE in Your Shipped Software
Put Some SRE in Your Shipped SoftwarePut Some SRE in Your Shipped Software
Put Some SRE in Your Shipped Software
 
Monitoring 101
Monitoring 101Monitoring 101
Monitoring 101
 
Distributed Systems - Like It Or Not
Distributed Systems - Like It Or NotDistributed Systems - Like It Or Not
Distributed Systems - Like It Or Not
 
Applying SRE techniques to micro service design
Applying SRE techniques to micro service designApplying SRE techniques to micro service design
Applying SRE techniques to micro service design
 
SRECon Coherent Performance
SRECon Coherent PerformanceSRECon Coherent Performance
SRECon Coherent Performance
 
Commandments of scale
Commandments of scaleCommandments of scale
Commandments of scale
 
Adaptive availability
Adaptive availabilityAdaptive availability
Adaptive availability
 
Monitoring the #DevOps way
Monitoring the #DevOps wayMonitoring the #DevOps way
Monitoring the #DevOps way
 
Operational Software Design
Operational Software DesignOperational Software Design
Operational Software Design
 
A Coherent Discussion About Performance
A Coherent Discussion About PerformanceA Coherent Discussion About Performance
A Coherent Discussion About Performance
 
The math behind big systems analysis.
The math behind big systems analysis.The math behind big systems analysis.
The math behind big systems analysis.
 
Understanding Slowness
Understanding SlownessUnderstanding Slowness
Understanding Slowness
 
Monitoring and observability
Monitoring and observabilityMonitoring and observability
Monitoring and observability
 
Xtreme Deployment
Xtreme DeploymentXtreme Deployment
Xtreme Deployment
 
Atldevops
AtldevopsAtldevops
Atldevops
 
It's all about telemetry
It's all about telemetryIt's all about telemetry
It's all about telemetry
 
Is this normal?
Is this normal?Is this normal?
Is this normal?
 
Social improvements in monitoring
Social improvements in monitoringSocial improvements in monitoring
Social improvements in monitoring
 
What's in a number?
What's in a number?What's in a number?
What's in a number?
 

Recently uploaded

SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????blackmambaettijean
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 

Recently uploaded (20)

SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 

Scalable Internet Architecture

  • 1. Scalable Internet Architectures / Operating at Scale Sunday, June 21, 2009
  • 2. Who am I? • Author of “Scalable Internet Architectures” Pearson, ISBN: 067232699X • CEO of OmniTI We build scalable and secure web applications • I am an Engineer A practitioner of academic computing. IEEE member and Senior ACM member. • I work on/with a lot of Open Source software: Apache, perl, Linux, Solaris, PostgreSQL, Varnish, Spread, Reconnoiter, etc. • I have experience. I’ve had the unique opportunity to watch a great many catastrophes. I enjoy immersing myself in the pathology of architecture failures. Sunday, June 21, 2009
  • 3. Topic Progression • What is an architecture? • What does it mean to run a (scalable) architecture? • Scaling Techniques for • Static Content • Dynamic Content • Databases • Networks • Techniques for decoupling services • Bad Ideas Sunday, June 21, 2009
  • 4. Architecture / the whole enchilada Sunday, June 21, 2009
  • 5. Architecture / what it is • architecture (n.): the complex or carefully designed structure of something. specifically in computing: the conceptual structure and logical organization of a computer or a computer-based system. - Oxford American Dictionary Sunday, June 21, 2009
  • 6. Architecture / more than meets the eye • An architecture is all encompassing. • space, power, cooling • servers, switches, routers • load balancers, firewalls • databases, non-database storage • dynamic applications • the architecture you export to the user (javascript, etc.) Sunday, June 21, 2009
  • 7. Architecture / awareness is key • Not all people do all things. • However... • lack of awareness of the other disciplines is bad • leads to isolated decisions • which leads to unreasonable requirements elsewhere • which lead to over engineered products • stupid decisions • catastrophic failures Sunday, June 21, 2009
  • 8. Architecture / running it all • Running Operations is serious stuff • It takes knowledge, tools... • but that is not enough. • It takes experience. • And perhaps even more importantly... • It takes discipline. Sunday, June 21, 2009
  • 9. Architecture / knowledge • Read. • Study. • Leverage User Groups (SAGE,LUGs,OSUGs,PUGs,etc.) • Participate in the community. Sunday, June 21, 2009
  • 10. Architecture / tools • Collaborate with colleagues. • Try new tools. • Write new tools. • Know and practice your tools during the “good times” in order to make their use effortless during the “bad times” Sunday, June 21, 2009
  • 11. Architecture / tool theories “One only needs two tools in life: WD-40 to make things go, and duct tape to make them stop.” - George Weilacher “Man is a tool-making animal.” - Benjamin Franklin “Man is a tool-using animal.” - Thomas Carlyle “Men have become the tools of their tools.” - Henry David Thoreau “All the tools and engines on earth are only extensions of man's limbs and senses.” - Ralph Waldo Emerson Sunday, June 21, 2009
  • 12. Architecture / my take on tools • Tools are just tools. • They are absolutely essential to doing your job. • They will never do your job for you. • Tools will never replace experience and discipline. • But tools can help you maintain discipline. Sunday, June 21, 2009
  • 13. Architecture / experience “Experience is what enables you to recognize a mistake when you make it again.” - Earl Wilson “Is there anyone so wise as to learn by the experience of others?” - Francois Voltaire “Good judgment comes from experience. Experience comes from bad judgment.” - Proverb “Judge people on the poise and integrity with which they remediate their failures.” - me Sunday, June 21, 2009
  • 14. Architecture / discipline • Discipline is important in any job. • Discipline is “controlled behavior resulting from training, study and practice.” • In my experience discipline is the most frequently missing ingredient in the field of web operations. • I believe this to be caused by a lack of focus, laziness, and the view that it is a job instead of an art. • As in any trade • To be truly excellent one must treat it as a craft. • One must become a craftsman. • Through experience learn discipline. • And through practice achieve excellence. Sunday, June 21, 2009
  • 15. Architecture / actually running it all • Okay, I get it. • From day to day, what do I need to know? Sunday, June 21, 2009
  • 16. Architecture / version control • Switch configurations should be in version control. • Router configurations should be in version control. • Firewall configurations should be in version control. • System configurations should be in version control. • Application configurations should be in version control. • Monitoring configurations should be in version control. • Documentation should be in version control. • Application code should be in version control. • Database schema should be in version control. • Everything you do should be in version control. Sunday, June 21, 2009
  • 17. Architecture / version control • And no... it doesn’t matter which tool. • It’s not about the tool, it’s about the discipline to always use it. (today, we use subversion) Sunday, June 21, 2009
  • 18. Architecture / know your systems • To know when something looks unhealthy, one must know what healthy looks like. • Monitor everything. • Collect as much system and process information as possible. • Look at your systems and use your diagnostic tools when things are healthy. Sunday, June 21, 2009
  • 19. Architecture / management • Package roll out? • Machine management? • Provisioning? • They tell me I should use Puppet. • They tell me I should use Chef. • well... I stick to my theory on tools: • A master craftsman chooses or builds the tools he likes. • A tool does not the master craftsman make. Sunday, June 21, 2009
  • 20. Static Content / bits by the truckload Sunday, June 21, 2009
  • 21. Techniques / Static Content • Old tricks. Good games. • Use Akamai... or a competitor... or build it yourself. Sunday, June 21, 2009
  • 22. Content Distribution / availability Users Users HA/LB HA/LB Web HA Web HA Web Web Web Web HA “White Paper” Approach Peer-based HA expensive, dedicated, single-purpose cheap and reusable HA/LB devices commodity machines Sunday, June 21, 2009
  • 23. Content Distribution / the stack • Setup a web server to host all your static content. • Setup a handful of servers running a reverse proxy-cache: Squid or Varnish or Apache/mod_proxy • Make them redundant without a load balancer by using IP redundancy protocols: VRRP, UCARP or Wackamole • simple, easy, scalable. Sunday, June 21, 2009
  • 24. Content Distribution / the network • Setup the same thing in multiple datacenters • Each has its own set of IP address: • d.c.a.{11,12,13} • d.c.b.{11,12,13} • d.c.c.{11,12,13} • etc. Sunday, June 21, 2009
  • 25. Content Distribution / location Sunday, June 21, 2009
  • 26. Content Distribution / location seamlessly • Put a DNS server at each location behind the same uplink • each with the same IP address • announce that network from all data centers (using BGP) Sunday, June 21, 2009
  • 27. Content Distribution / global access Sunday, June 21, 2009
  • 28. Dynamic Content / keeping users interested Sunday, June 21, 2009
  • 29. Techniques / Dynamic Content “We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.” - Donald Knuth “Knowing when optimization is premature defines the difference between the master engineer and the apprentice.” - me Sunday, June 21, 2009
  • 30. Techniques / optimization • Optimization comes down to a simple concept: “don’t do work you don’t have to.” • It can take the form of: • computational reuse • caching in a more general sense • and my personal favorite: • ... avoid the problem, and do no work at all. Sunday, June 21, 2009
  • 31. Techniques / optimization applied • Optimization in dynamic content simply means: • Don’t pay to generate the same content twice • Only generate content when things change • Break the system into components so that you can isolate the costs of things that change rapidly from those that change infrequently. Sunday, June 21, 2009
  • 32. Caching / real world example • News site • News items are stored in Oracle • User Preferences are stored in Oracle • Hundreds of different sections • Each with thousands of different articles • Pages: • 1000+ hits/second • shows personalized user info on EVERY page • front page shows top NF articles for forum F (limit 10) Sunday, June 21, 2009
  • 33. Caching / the approach • Oracle is fast enough • why abuse Oracle for this purposes? • surely there are better things for Oracle to be doing • Updates are controlled • updates to news items only happen from a publisher • news update:read ratio is miniscule • user preferences are only ever updated by the user Sunday, June 21, 2009
  • 34. Caching / articles • Article publishing • sticks news items in Oracle • The straight forward way • http://news.example.com/news/article.php?id=12345 • page pulls user prefs from cookie • (or bounces off a cookie populator) • page pulls news item from database • I hate query strings • I like: http://news.example.com/news/items/12345.html RewriteRule ^/news/items/([^/]*).html$ /www/docs/news/article.php?id=$1 [L] Sunday, June 21, 2009
  • 35. Caching / articles cached • We pull the item that is likely to never change • cheaper if the page just hard coded the news item • writing the news article out into a PHP page is a hassle • ... or is it? • Have the straight forward page cache it • /news/article.php writes /news/items/12345.html • as a PHP page that still expands personal info from cookie, but has the news item content statically included as HTML. RewriteCond %{REQUEST_FILENAME} ^/news/items/([^/]*).html RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/news/items/([^/]*).html$ /www/docs/news/article.php?id=$1 [L] Sunday, June 21, 2009
  • 36. Caching / articles cached • Run a cache invalidator on each web server • connects to Spread as a subscriber • accepts /www/docs/news/items/####.html deletion requests • accepts full purge requests • Article publishing • stash item #### in Oracle (insert or update) • publish through Spread an invalidation of #### • Changing the look of the article pages • change article.php to have the desired effect • (and write the appropriate php cache pages) • publish through Spread a full purge • If I had to do it again, I’d use a message queue instead of Spread. Sunday, June 21, 2009
  • 37. Caching / the result • All news item pages require zero DB requests • the business can now make your life difficult by requesting new crap on these pages that can’t be so easily cached • Far fewer database connections required • all databases appreciate that (Oracle, MySQL, Postgres) • Bottleneck is now Apache+mod_php • crazy fast with tools like APC • inherently scalable... just add more web servers • room for more application features Sunday, June 21, 2009
  • 38. Data Management / remembering something useful Sunday, June 21, 2009
  • 39. Techniques / Databases • Rule 1: shard your database • Rule 2: shoot yourself Sunday, June 21, 2009
  • 40. Databases / second try • Horizontally scaling your databases via sharding/federating requires that you make concessions that should make you cry. • shard (n.) a piece of broken ceramic, metal, glass, or rock typically having sharp edges. • sharding (v.) dunno... but you will likely wound yourself and you get to keep all the pieces. • But seriously... • databases (other than MySQL) scale vertically to a greater degree than many people admit. • if you must fragment your data, you will throw away relational constraints. this should make you cry. cry. cry hard. cry some more. then move on and shard your database. Sunday, June 21, 2009
  • 41. Databases / vertical scaling • Many times relational constraints are not needed on data. • If this is the case, a traditional relational database is unnecessary. • There are cool technologies out there to do this: • “files” • CouchDB • cookies • Non-ACID databases can be easier to scale • Vertical scaling is achieved via two mechanisms: • doing only what is absolutely necessary in the database • running a good database that can scale well vertically Sunday, June 21, 2009
  • 42. Databases / horizontal scaling • Okay... so you really need to scale horizontally. • understand the questions you intend to ask. • make sure that you partition in a fashion that doesn’t require more than a single shard to answer OLTP-style questions. • If that is not possible, consider data duplication. Sunday, June 21, 2009
  • 43. Databases / an example • private messages all stored on the server side • individuals sends messages to their friends • an individual should see all messages sent to them • Easy! partition by recipient. • either by hash • range partitions • whatever Sunday, June 21, 2009
  • 44. Databases / an example complicated • now users must be able to review all sent messages. • Crap! • our recipient-based partitioning causes us to map the request across all shards to answer messages by sender. • In this case: • store messages twice... once by recipient and once by sender • twice the storage, but queries only hit a single node now Sunday, June 21, 2009
  • 45. Databases / an example unwound • Partitioning data allows one to reduce the dataset size on each node. • You might just cause more problems than you’ve solved. • Complicated (or even simple) queries become a pain if they don’t align with your partitioning strategy. • Partitioning like this is really a commitment. You lose much of the power of your relational database and complicate what were once easy problems. • Sometimes you have to do what you have to do. Don’t make the concession until you have to. Sunday, June 21, 2009
  • 46. Databases / take care • Multi-master replication is simply not ready these days. • getting closer every year. • When partitioning/federating/sharding data, take the step to model what you are doing. • Prototype several different schemes and make sure you truly understand your intended use patterns before deciding. Sunday, June 21, 2009
  • 47. Networking / actually delivering Sunday, June 21, 2009
  • 48. Techniques / Networking • The network is part of the architecture. • So often forgotten by the database engineers and the application coders and the front-end developers and the designers. • Packets per second, firewall states, load balancing algorithms, etc. • Many apps today are so poorly designed that network issues never become scalability concerns... others can really toss the bits. • This is for the application architectures that have high traffic rates. Sunday, June 21, 2009
  • 49. Networking / basics • Scalability on the network side is all about: • understanding the bottleneck • avoiding the single point of failure • spreading out the load. Sunday, June 21, 2009
  • 50. Networking / going past gigE • A single machine can push 1 GigE. • Actually more than a GigE isn’t too hard. • But how to push 10 or 20? • Buy a really expensive load balancer? • ... there are other ways to manage this a bit cheaper. Sunday, June 21, 2009
  • 51. Networking / going past gigE • use routing. • routing supports extremely naive load balancing. • run a routing protocol on the front-end ‘uber-caches’ • have the upstream use hashed routes • the user-caches announce the same IP. • this adds fault-tolerance and distributes network load. • and it is pretty much free (no new equipment in the path). • note: your ‘uber-caches’ may be load balancers themselves. Sunday, June 21, 2009
  • 52. Networking / isolation • for those that run multiple services on the same network. • one service bursting on a.b.c.67 might saturate firewall and/or load- balancer capacity and degrade services other services behind the same infrastructure. • again... routing to the rescue. • set up a separate set of firewalls/load-balancers that reside in a “surge” net. Those firewalls only need to announce the /32 of the surging service to assume control of the traffic. note: you need some trickery to make sure return traffic is symmetric • This is the same technique used to protect against DDoS attacks. Sunday, June 21, 2009
  • 53. Service Decoupling / controlling experience by removing ‘the suck’ Sunday, June 21, 2009
  • 54. Techniques / Service Decoupling • One of the most overlooked techniques for building scalable systems • Why do now what you can postpone until later? • This mantra often doesn’t break a user’s experience. • Break down the user transaction into parts. • Isolate those that could occur asynchronously. • Queue the information needed to complete the task. • Process the queues “behind the scenes.” Sunday, June 21, 2009
  • 55. Decoupling / concept • If I don’t want to do something now... • I must tell someone to do it later. • This is “messaging” • There are a lot of solutions: • JMS (Java message service) • Spread (extended virtual synchrony messaging bus) • AMQP (advanced message queueing protocol) Sunday, June 21, 2009
  • 56. Decoupling / tools • Message Queueing is the main tool used for this... durable message queueing: • ActiveMQ (Java) • OpenAMQ (C) • RabbitMQ (erlang) • Most common protocol is STOMP • STOMP kinda sucks... but it is universal • Clients exist for every language Sunday, June 21, 2009
  • 57. Decoupling / tools • The typical use-case requires combining • a message queue, and • a job dispatcher • People think Gearman does this. • it does allow dispatching work across a cluster of machines • but, it doesn’t inherently decouple the action from the outcome • yet, it is pretty straight forward to realize this • should be used to scale out work that can’t be decoupled. Sunday, June 21, 2009
  • 58. WTF / most scalability problems are due to idiocy Sunday, June 21, 2009
  • 59. WTF / don’t be an idiot • most acute scalability disasters are due to idiots • don’t be an idiot • scaling is hard • performance is easier • extremely high-performance systems tend to be easier to scale • because they don’t have to SCALE as much. Sunday, June 21, 2009
  • 60. WTF / sample 1 • Hey! let’s send a marketing campaign to: http://example.com/landing/page • GET /landing/page HTTP/1.0 Host: example.com HTTP/1.0 302 FOUND Location: /landing/page/ Sunday, June 21, 2009
  • 61. WTF / sample 2 • commit message: “prevent caching here.”     swfobject.embedSWF( -      "/XXXXX/swf/gallery.swf", +      "/XXXXX/swf/gallery.swf?t=" + new Date().getTime(),       "flashcontainer", • caching should be controlled not prevented. Sunday, June 21, 2009
  • 62. WTF / sample 3 • I have 100k rows in my users table... • I’m going to have 10MM... • I should split it into 100 buckets, with 1MM per bucket so I can scale to 100MM. • The fundamental problem is that I don’t understand my problem. • I know what my problems are with 100k users... or do I? • There is some margin for error... you design for 10x... as you actualize 10x growth you will (painfully) understand that margin. • Designing for 100x let alone 1000x requires a profound understanding of their problem. • Very few have that. Sunday, June 21, 2009
  • 63. WTF / sample 4 • I plan to have a traffic spike from (link on MSN.com) • I expect 3000 new visitors per second. • My page http://example.com/coolstuff is 14k 2 css files each at 4k 1 js file at 23k 17 images each at ~16k (everything’s compressed) • /coolstuff is CPU bound (for the sake of this argument) I’ve tuned to 8ms services times... 8 core machines at 90% means 7200ms of CPU time/second... 900 req/second per machine... 3000 v/s / 900 r/s/machine / 70% goal at peak rounded up is... 5 machines (6 allowing a failure) • the other files I can serve faster... say 30k requests/second from my Varnish instances... 3000 v/s * 20 assets / 30k r/s/varnish / 70% is... 3 machines (4 allowing a failure). Sunday, June 21, 2009
  • 64. WTF / sample 4, the forgotten part • 14k + 2 * 4k + 1 * 23k + 17 * 16k = 21 requests with 317k response • (317k is 2596864 bits/visit) * 3000 visits/second = 7790592000 b/s • just under 8 gigabits per second. • even naively, this is 500 packets per visitor * 3000 visitors/second • 1.5MM packets/second. • This is no paltry task... • 20 assets/visit are static content, we know how to solve that. • the rest? ~350 megabits per second and ~75k packets/second • perfectly manageable, right? • a bad landing link that 302’s adds ~30k packets/second... Crap. Sunday, June 21, 2009
  • 65. Thank You • Thank you O’Reilly • Velocity was much needed and overdue • Thank you OmniTI • We’re hiring! • S32699X_Scalable_Internet.qxd 6/23/06 3:31 PM Page 1 Thank you! Scalable Internet Architectures Theo Schlossnagle Scalable Internet Architectures With an estimated one billion users worldwide, the Internet today is nothing less than a global subculture with immense diversity, incredible size, and wide geographic reach. With a relatively low barrier to entry, almost anyone can register a domain name today and potentially provide services to people around the entire world tomorrow. But easy entry to web-based commerce and services can be a double-edged sword. In such a market, it is typically much harder to gauge interest in advance, and the negative impact of unexpected customer traffic can turn out to be devastating for the unprepared. In Scalable Internet Architectures, renowned software engineer and architect Theo Schlossnagle outlines the steps and processes organizations can follow to build online services that can scale well with demand—both quickly and economically. By making intelligent decisions throughout the evolution of an architecture, scalability can be a matter Scalable Internet of engineering rather than redesign, costly purchasing, or black magic. Filled with numerous examples, anecdotes, and lessons gleaned from the author’s years of experience building large-scale Internet services, Scalable Internet Architectures is both thought-provoking and instructional. Readers are challenged to understand first, before they Architectures start a large project, how what they are building will be used, so that from the beginning they can design for scalability those parts which need to scale. With the right approach, it should take no more effort to design and implement a solution that scales than it takes to build something that will not—and if this is the case, Schlossnagle writes, respect yourself and build it right. Theo Schlossnagle is a principal at OmniTI Computer Consulting, where he provides expert consulting services related to scalable Internet architectures, database replication, and email infrastructure. He is the creator of the Backhand Project and the Ecelerity MTA, and spends most of his time solving the scalability problems that arise in high performance and highly distributed systems. Internet/Programming Cover image © Digital Vision/Getty Images Scalability Schlossnagle Performance $49.99 USA / $61.99 CAN / £35.99 Net UK Security www.omniti.com DEVELOPER’S LIBRARY DEVELOPER’S www.developers-library.com LIBRARY Sunday, June 21, 2009