简体   繁体   English

在云上选择合适的数据库,Azure SQL

[英]Choosing the right database on cloud, Azure SQL

We are building an application, an ad serving platform, which will include many processes such as reporting, storing user data, requests, advertiser info, pubisher info etc. Moreover, we will be generating optimization files to serve better ads.我们正在构建一个应用程序,一个广告服务平台,其中将包括许多流程,例如报告、存储用户数据、请求、广告商信息、发布商信息等。此外,我们将生成优化文件以提供更好的广告。

We are using azure for cloud services.我们将 azure 用于云服务。 We are hoping to benefit from appfabric on azure and their architecture.我们希望从 azure 及其架构上的 appfabric 中受益。

My question is related to Azure SQL.我的问题与 Azure SQL 有关。 Does anyone have any experience with Azure DB, what are the advantages, disadvantages?有没有人对 Azure DB 有任何经验,有什么优点,缺点是什么? Performance, reliability, challenges?性能、可靠性、挑战?

While choosing Azure DB, what are things should we benchmark or prototype?在选择 Azure DB 时,我们应该对哪些东西进行基准测试或原型设计?

Any ideas or thought, you would like to share, especially related to database on cloud?有什么想法或想法,您想分享,尤其是与云数据库相关的? COnsistency, availability, Partial Tolerance, replication?一致性、可用性、部分容差、复制?

Thanks.谢谢。

Advantage of SQL Azure is that you can develop against a pretty standard SQL database that people have lots of experience with. SQL Azure 的优点是您可以针对人们有很多经验的非常标准的 SQL 数据库进行开发。 Make migration of an app to Azure pretty easy.将应用程序迁移到 Azure 非常容易。

The disadvantages i have seen are: 1. Limited backup.我看到的缺点是: 1. 有限的备份。 This is getting better soon, but it may never be the kind of backup many people want.这种情况很快就会好转,但它可能永远不会是许多人想要的那种备份。 2. Some SQL Server features not available, but 95% are. 2. 部分 SQL 服务器功能不可用,但 95% 可用。 3. No real control over database server hardware. 3. 无法真正控制数据库服务器硬件。 4. Price might be an issue, depending on your database size. 4. 价格可能是个问题,具体取决于您的数据库大小。

Other than that, SQL Azure works well for me.除此之外,SQL Azure 对我来说效果很好。

You really need to size your data.您确实需要调整数据大小。

SQL Azure is perfect for small (<1 GB or few GBs) with relational requirements. SQL Azure 非常适合具有相关要求的小型(<1 GB 或几 GB)。 It provides easy on-boarding for existing sql server developers and makes it really easy to develop complex reports.它为现有的 sql 服务器开发人员提供了轻松的入门,并使得开发复杂的报告变得非常容易。

However once the data size increases beyond a few GBs, it starts becoming more expensive.然而,一旦数据大小增加到超过几 GB,它就开始变得更加昂贵。 Also the patterns for scaling SQL Azure is not as simple as scaling Windows Azure Database - although the new feature of Federations is supposed to make it simpler, it is still not the same as scaling SQL Server (which people would normally scale-up - here in SQL Azure there is a limit of 50 GB and the recommended pattern is to scale-out to more databases). Also the patterns for scaling SQL Azure is not as simple as scaling Windows Azure Database - although the new feature of Federations is supposed to make it simpler, it is still not the same as scaling SQL Server (which people would normally scale-up - here在 SQL Azure 中有 50 GB 的限制,推荐的模式是横向扩展到更多数据库)。

So, going by what you have (requests, maybe user click data, etc) which can really increase a lot, it might be better to save all this in Windows Azure database instead of SQL Azure. So, going by what you have (requests, maybe user click data, etc) which can really increase a lot, it might be better to save all this in Windows Azure database instead of SQL Azure. You can also take a dual approach, by saving some data in SQL Azure so that it is easier to report against, and then have high quantity data saved in Windows Azure. You can also take a dual approach, by saving some data in SQL Azure so that it is easier to report against, and then have high quantity data saved in Windows Azure.

Architect well!建筑师好! It could save a lot!它可以节省很多!

You can find out more about SQL DB offerings and their corresponding throughput on the SQL DB pricing page .您可以在SQL DB 定价页面上找到有关 SQL DB 产品及其相应吞吐量的更多信息。 Also, do check out details on the new SQL DB V12 that provides nearly complete compatibility with SQL Server engine.此外,请查看新的SQL DB V12的详细信息,它提供与 SQL 服务器引擎几乎完全的兼容性。

Edit (4/29):编辑(4/29):

Check out the new Elastic DB offering (Preview) announced at Build today.查看今天在 Build 上宣布的新Elastic DB产品(预览版)。 The pricing page has been updated with Elastic DB price information.定价页面已更新为 Elastic DB 价格信息。

We used this for a web application.我们将此用于 web 应用程序。

Experience:经验:

We faced hardly any challenges as it was easy to use because it provides the same TDS interface as the more familiar SQL server so developers can easily adapt if need be.我们几乎没有遇到任何挑战,因为它易于使用,因为它提供与更熟悉的 SQL 服务器相同的 TDS 接口,因此开发人员可以在需要时轻松适应。 This saved us a lot of time that is usually taken up with Developers having to learn new tools.这为我们节省了很多时间,这些时间通常用于开发人员必须学习新工具。

Overall I found it to be consistent with good performance and quite reliable.总的来说,我发现它具有良好的性能并且非常可靠。

Other thoughts:其他想法:

-Manageability -可管理性

  • offers easy manageability, thus saving on a lot of IT related costs易于管理,从而节省大量 IT 相关成本

-Scalability -可扩展性

  • runs in worldwide data centers so can reach new markets easily在全球数据中心运行,因此可以轻松进入新市场
  • Can choose a pay as you go pricing model可以选择付费为你 go 定价 model

Hope this helps!希望这可以帮助!

Although this has been answered already, I'd figure I add some more info to it anyway.尽管这已经得到了回答,但我还是想我会添加更多信息。

In the cloud, you have three storage options, each for its own set of data:在云中,您有三个存储选项,每个选项都有自己的数据集:

  1. SQL Azure - this is your standard MS SQL database, with some features currently disabled ( note: the team has said, several times, all of the features will be turned on eventually ). SQL Azure - 这是您的标准 MS SQL 数据库,目前已禁用某些功能(注意:团队已多次表示,所有功能最终都会启用)。 It guarantees reliability (AFAIK) by keeping three copies of your data available at any given time.它通过在任何给定时间保留三份数据副本来保证可靠性(AFAIK)。 You also get some issues, like connection drops here and there, and you need to plan for that (in the repository logic, you need to have retry logic ).您还会遇到一些问题,例如连接中断,您需要对此进行计划(在存储库逻辑中,您需要有重试逻辑)。 Obviously, as with other relational databases, this is mostly useful for storing relational data.显然,与其他关系数据库一样,这对于存储关系数据非常有用。 Pricing is OK up to 1 GB (~ 10 USD) and goes up dramatically with up to 10 GB (~ 100 USD) so make sure you need it.最高 1 GB(~ 10 美元)的价格还可以,最高 10 GB(~ 100 美元)的价格会大幅上涨,因此请确保您需要它。
  2. Azure Table Storage - this is a simple table storage. Azure 表存储- 这是一个简单的表存储。 You primary key is defined based on two IDs (Column & Row keys) and you can store in it, more or less, whatever you like.您的主键是基于两个 ID(列和行键)定义的,您可以或多或少地在其中存储任何您喜欢的内容。 You cannot index the data (but the key columns are indexed, so your queries can be pretty optimized if you know what you are doing).您无法索引数据(但键列已被索引,因此如果您知道自己在做什么,您的查询可以得到很好的优化)。 This is cheap (you pay by transaction), I think the price is around $0,01 per 10.000 transactions.这很便宜(您按交易付款),我认为每 10.000 笔交易的价格约为 0.01 美元。 You can use this storage for a lot of things, and you can also implement relations to some extent if you do it right.你可以用这个存储做很多事情,如果你做对了,你也可以在一定程度上实现关系。
  3. Blob Storage - you can use this to store your optimization files . Blob 存储- 您可以使用它来存储您的优化文件 It costs around $0.15 per GB/month if I remember correctly.如果我没记错的话,它的成本约为每 GB/月 0.15 美元。

As for performance considerations, the blob storage is really fast.至于性能方面的考虑,blob 存储确实很快。 I didn't expect it to be this fast.我没想到会这么快。 SQL does good as well, it is after all your normal MS SQL database. SQL 也很好,毕竟它是您的普通 MS SQL 数据库。 Since it's located "close" to your instance, the network latency is not that much bigger than it would be were it located in a separate machine in your data center.由于它位于“靠近”您的实例的位置,因此网络延迟不会比它位于数据中心的单独机器中大得多。

For up to date info on pricing, look at this Windows Azure Platform Offers.有关定价的最新信息,请查看此Windows Azure 平台优惠。 I'm not an expert in pricing, so my figures are rough estimates.我不是定价专家,所以我的数字是粗略的估计。

The first thing to do is look at SQL Azure's feature list to ensure this meets your needs (it probably will), and then the get started page.首先要做的是查看SQL Azure 的功能列表,以确保这满足您的需求(可能会),然后是入门页面。

Then there are free Labs: SQL Azure Labs .然后是免费的 Labs: SQL Azure Labs

You can get a live, free 1GB database for 30 days.您可以获得 30 天的实时、免费 1GB 数据库。

The SQL Azure Team blog may be of interest. SQL Azure 团队博客可能会感兴趣。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM