[zeromq-dev] "Drop ACID and Think About Data" - great article on where DBs should be going and what is there today

Steven McCoy steven.mccoy at miru.hk
Thu May 7 11:34:54 CEST 2009


2009/5/7 Apps, John <john.apps at hp.com>:
> When thinking about building systems with durable messaging and very high performance, the above article does provide some good insight into what is there today, what might be there tomorrow, and a bunch of reviews of current software in the (mainly) Open Source space.


The notable point seems to be that the web industry is seeing
different characteristics of traffic.  The size of the database, the
number of clients, and frequently the size of each object dwarf that
of the finance industry, but conversely the latency requirement is a
constant < 100ms, as in it never needs to improve.  One exception for
improving speeds conversely is to simplify and reduce the cost of
development of high speed sites by allowing synchronous styles of
development on complicated pages.

In the MDDS world, i.e. (R)TIC and Rendezvous when the capacity of one
TIC is exceeded you can partition the data and simply add on extra
fault tolerant TIC pairs.

When the number of clients exceeds what one TIC farm can handle you
partition clients across multiple TIC farms, all being fed by the same
feed farm.

When the incoming data rate increases you can add extra feeds until
the wire is saturated, then you are really in a problem as you can
only hope at further partitioning clients to ease the load.

In the web world when capacity is exceeded the master database can
simply have extra storage thrown at it or partitioned per user or
category, also known as "database shards".  Extra memcached are thrown
on to lighten the load of database queries.  The ideal solution would
be a gigantic DB cluster like IBM DB2, or the many bespoke clusters
that top the SPEC marks, but such systems a priced out of this market.

When the number of clients exceed one web server or memcached instance
extra ones are added, the distribution being handled by a load
balancer for the web servers, or hashing rules within memcached.  The
problems arise in scaling the distribution of new data to many
memcached as typically the network hardware may not be conducive to
high multicast rates.

When the incoming data rates start saturating wire speeds one
progresses to more expensive custom hardware for load balancing the
requests at more conducive rates to the web farm.

So the question is how does this affect AMQP and ZeroMQ?

Both are engineered for internal messaging and not the Internet, and
so scalability is more controlled.

The other points need translation into something more meaningful for
application to just the messaging system.  So talking about database
or storage size would equate to message routing, how does a message
queue scale from 1,000 subjects to a googol of subjects?

Client scaling would refer to how does a message queue scale the
server side to cope with both a googol of unique clients, and a googol
of requests, whether a distinction is made or not, together with how a
googol of responses is handled.

If the heaviest usage of a message system would be within a web
architecture then the number of requests per client would be limited
to the requests apportioned to each web server by the load balancers.
So this leaves how does a message system cope with a googol of
clients, each with a rate limited number of requests, be distributed
among the backend application servers?  For streaming sites, or simply
pre-loading caches with data how does an update get pushed back to the
googol of edge servers?  Noting that HTML 5 could see a marked demand
for handling live updates due to its built in event streaming support.

Realistically such high demands are going to be met by the core
developers of the largest infrastructure sites where bleeding edge
technologies can be tested and used for their competitive advantage.
So then is it possible for a messaging system like ZeroMQ to gain
footage with its lightweight core as this allows developers to
concentrate their efforts on individual components such as message
routing, or a new switching fabric, whilst leveraging the stability of
the rest of the system.

-- 
Steve-o



More information about the zeromq-dev mailing list