Optimizing Data Access and Messaging-Managing Connections – Throttling, latency and transactions
来源:互联网 发布:淘宝领优酷会员在哪里 编辑:程序博客网 时间:2024/04/28 21:09
http://channel9.msdn.com/learn/courses/Azure/SQLAzure/SQLAzureTipsAndTricks/Exercise-3-Managing-Connections--Throttling-latency-and-transactions
When working against a SQL Azure database you should be aware of the effects ofThrottling, Latency and Transactions.
Throttling, where SQL Azure automatically restricts new (or drops existing) connections, can occur when your database (or server hosting your database) is under heavy load. This ensures you server and database are protected from large numbers of connections and undo load.
However, it does mean you need to write your applications to handle a connection to dropping or transactions failing.
There are not any SQL Azure specific techniques for addressing these issues. In fact, addressing these issues is no different from handling them in the applications you build against on-premise databases.
Some common techniques include,
- Hold a connection open for as short a time as possible.
- Before issuing a command against a connection check it is still open, re-open it if SQL Azure has closed it. You may decide to implement a queue or other retry mechanism.
- Ensure you wrap all database calls in transactions – all exceptions (including ones thrown due to Throttling) should result in the transaction being rolled back.
- Optimizing Data Access and Messaging-Managing Connections – Throttling, latency and transactions
- Optimizing Data Access and Messaging-Performing Entity Group Transactions
- Optimizing Data Access and Messaging - SQL Azure Connection Management
- Optimizing Data Access and Messaging - Queue Service Concepts
- Optimizing Data Access and Messaging - Poison Message Handling
- Optimizing Data Access and Messaging - Best Practices for Maximizing Scalability and Cost Effectiven
- Optimizing Data Access and Messaging - Idempotency for Windows Azure Message Queues
- Managing Tablesspace and data file
- Analyzing billions of credit card transactions and serving low-latency insights in the cloud
- GEM5: Different cache latency for read and write access 设置不同的读写latency
- Optimizing and Testing WLANs
- Optimizing and Refactoring POMs
- DEBUGGING AND OPTIMIZING MEMORY
- DEBUGGING AND OPTIMIZING MEMORY
- DEBUGGING AND OPTIMIZING MEMORY
- Storm and Hadoop: Convergence of Big-Data and Low-Latency Processing
- CS 20SI|Lecture 5 Managing experiments and process data
- Data Access Tecnique and Data-Sensitive Control
- oracle 11g迁移数据库到oracle 10g
- while((ch=getchar())!=EOF && ch != '\n')
- VB6.0FTP操作
- %和&运算的共同点。
- java 线程详解
- Optimizing Data Access and Messaging-Managing Connections – Throttling, latency and transactions
- 使用intent调用Android系统自带应用
- 动态子类化CComboBox以得到子控件EDIT及LISTBOX
- ESAPI简介
- 孙鑫VC视频教程笔记之第十课“绘图” (转载)
- 触摸屏移植调试总结
- 来自于一杯具程序员的签名档
- mysql常用命令
- ASP.NET Cache