- UDP broadcasts - ineffecient since the whole network hears all messages
- TCP multi-casting - more efficient because only interested parties get messages
- publish/subscribe messaging - more infrastructure needed
- message queues - more infrastructure needed
Shared resources are another area where Scaling Effects come into play. If the service is redundant and non-exclusive then you are okay -- just add more servers if needed. Exclusive access is problematic. Request queues back up waiting for their turn and the situation gets worse as more transactions are attempted. Eventually the backlog fills up and the requests are dropped at the TCP/IP layer and then things get really ugly. Share-Nothing architectures make it more difficult to fail over -- somebody has to migrate the user's session to another server, which is likely a shared resource. One compromise it to reduce the fan-in (number of servers calling into a shared resource), perhaps only having servers pair-up for fault tolerance instead of everybody knowing about everyone else.
- pay attention to the differences in QA and Production environments - things work fine on a small scale but melt in a large one
- watch out for point-to-point communications - scales badly but might work if you know the number of servers will remain small.
- watch out for shared resources - they bottleneck, restrain capacity and are a stability threat. Stress test shared resources heavily and make sure clients will keep working if the resource slows or fails altogether.
No comments:
Post a Comment