`
oojdon
  • 浏览: 40591 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

Scalability Best Practices

阅读更多

 

  1. Asynchronous - Use asynchronous communication when possible. Synchronous callstie the availability of the two services together. If one has a failure or is slow the other one is affected.
  2. Swim Lanes – Create fault isolated “swim lanes” of hardware by customer segmentation. This prevents problems with one customer from causing issues across all customers. This also helps with diagnosis of issues and code roll outs.
  3. Cache - Make use of cache at multiple layers including object caches in front of databases (such as memcached), page or item caches for content (such as squid) and edge caches (such as Akamai).
  4. Monitoring - Understand your application’s performance from a customer’s perspective. Monitor outside of your network and have tests that simulate a real user’s experience. Also monitor the internal working of the application in terms of query and transaction execution count and timing.
  5. Replication - Replicate databases for recovery as well as to off load reads to multiple instances.
  6. Sharding Split the application and databases by service and / or by customer using a modulus. While this requires slightly more complicated logic in the application it allows for massive scaling.
  7. Use Few RDBMS Features – Use the OLTP database as a persistent storage device as much as possible. The more you rely on the features offered in most RDBMS for your transactions, the greater load you are putting on the hardest item in your system to scale. Remove all business logic from the database such as stored procedures and move it into the application. When significant scaling is required join in the application and not through the SQL.
  8. Slow Roll – Roll out new code versions slowly, to a small subset of your servers without bringing the entire site down. This requires that all code be backwards compatible because you will have two versions of code running in production during the roll out. This method allows you to find problems that your quality and L&P testing missed while having minimal impact on customers.
  9. Load & Performance Testing – Test the performance of the application version before it goes into production. This will not catch all the issues, which is why you need the ability to rollback, but it is very worthwhile.
  10. Capacity Planning / Scalability Summits – Know how much capacity you have on all tiers and services in your system. Use Scalability Summits to plan for the increased capacity demands.
  11. Rollback – Always have the ability to rollback a code release.
  12. Root Cause Analysis - Ensure you have a learning culture that is evident by utilizing Root Cause Analysis to find and fix the real cause of issues.
  13. Quality From The Beginning – Quality can’t be tested into a product, it must be designed in from the beginning.

1, 尽可能地使用异步 通信.
2, 为提供不同服务的硬件引入故障隔离 .
3, 在多层系统中, 使用Cache .
4, 从用户角度监控 你的系统性能.
5, 使用数据库复制 , 降低单点读压力.
6, 根据用户和业务的不同, 将应用或数据库分片 .
7, 减少使用关系型数据库 的复杂特性. 尽可能把它当做是一个持久存储设备.关系数据库没有伸缩性,所以请把逻辑全部移动到应用层,伸缩性是靠应用层来解决的而不是sql, 个人认为,sql这种dsl可以用来描述性解决问题,但是伸缩性和性能太过技术性。

8, 以循序渐进的方式升级系统 , 先升级小部分servers, 然后逐步升级所有servers.
9, 在一个应用进入生产环境前, 一定要做性能和负载测试 .
10, 设计系统时, 应该要做容量规划与扩容方案 .
11, 使系统具备回滚 能力.
12, 确保团队具备根本问题分析能力 .这样, 当出现问题时, 可以方便快速的定位.
13, 质量是设计出来的 , 不是靠测出来的.

 

分享到:
评论

相关推荐

    PHP Microservices

    You will also understand how to migrate a monolithic application to the microservice architecture while keeping scalability and best practices in mind. Furthermore you will get into a few important ...

    Best Practices for SAP BW on DB2 UDB for z/OS V8

    ### SAP BW on DB2 UDB for z/OS V8: Best Practices Overview #### Introduction The IBM Redbook titled "Best Practices for SAP Business Information Warehouse (BW) on DB2 UDB for z/OS V8" provides ...

    RESTful.Java.Patterns.and.Best.Practices.1783287969

    Title: RESTful Java Patterns and Best Practices Author: Bhakti Mehta Length: 131 pages Edition: 1 Language: English Publisher: Packt Publishing Publication Date: 2014-09-17 ISBN-10: 1783287969 ISBN-13...

    RESTful Java Patterns and Best Practices(PACKT,2015)

    easing scalability, visibility, and reliability; and being platform and language agnostic. This book is a practical, hands-on guide that provides you with clear and pragmatic information to take ...

    Addison.Wesley.C.Plus.Plus.Coding.Standards.101.Rules.Guidelines.and.Best.Practices.Oct.2004.eBoo.chm

    What are the best ways to code for scalability? What are the elements of a rational error handling policy? How (and why) do you avoid unnecessary initialization, cyclic, and definitional dependencies?...

    Pro SQL Server 2012 Practices

    Goes beyond the manual to cover good techniques and best practices Delivers knowledge usually gained only by hard experience Focuses upon performance, scalability, reliability Helps achieve the ...

    Pro-Java-Clustering-and-Scalability.pdf

    enough for me professionally (although doing this while following best practices is not an easy task). I wanted to understand the entire process of creating software and delivering it to a production ...

    Aspect.Oriented.Software.Development part 2 of 2 [CHM]

    State-of-the-art best practices for the AOSD development process Languages and foundations: separating concerns, filter technologies, improving modularity, integrating new features, and more Using ...

    Aspect.Oriented.Software.Development part 1 of 2 [CHM]

    State-of-the-art best practices for the AOSD development process Languages and foundations: separating concerns, filter technologies, improving modularity, integrating new features, and more Using ...

    React Cookbook

    Over 66 hands-on recipes that cover UI development, animations, component architecture, routing, databases, testing... Get to know the best practices when organizing and testing a large React application

    MySQL 8 Administrator's Guide

    MySQL 8 Administrator's Guide pdf Step by step guide to monitor, manage, and secure your database engine Key Features ...MySQL 8 Best Practices & Benchmarking Troubleshooting MySQL 8

    Packt.QlikView Server and Publisher

    ### QlikView Server and Publisher: Key Concepts and Best Practices #### Introduction The book "QlikView Server and Publisher" by Stephen Redmond provides comprehensive guidance on deploying and ...

    Software Architecture with Python-Packt Publishing(2017).epub

    You will also learn about theoretical aspects of scalability and the best practices in the industry. Chapter 6, Security Writing Secure Code, discusses the security aspect of architecture and ...

    Virtualizing SQL Server with VMware_English

    The book "Virtualizing SQL Server with VMware" provides an in-depth exploration of best practices and techniques for virtualizing SQL Server using VMware solutions. Here, we delve into key knowledge ...

    Expert Angular

    Apply best practices and design patterns to achieve higher scalability in your Angular applications Understand the latest features of Angular and create your own components Get acquainted with ...

    Packt.MVVM.Survival.Guide.for.Enterprise.Architectures.in.Silverlight.And.WPF

    MVVM (Model View View Model) is a Microsoft best practices pattern for working in WPF and Silverlight that is highly recommended by both Microsoft and industry experts alike. This book will look at ...

    Amazon Web Services in Action

    Amazon Web Services in Action, Second ... You’ll find clear, relevant coverage of all the essential AWS services you to know, emphasizing best practices for security, high availability and scalability

Global site tag (gtag.js) - Google Analytics