"Azure Services Platform Step by step-2nd" Forget SQL Server 200x--introducing SQL Data Services (SDS)

Source: Internet
Author: User
Keywords HTTP can we forget
Tags .mall .net application applications basic cloud data data services
As I mentioned in the previous article, with SQL Services as a general development of small and medium sized applications, you can forget about the existence of SQL Server 200X. Is it that amazing? Now it's time to learn more about the sanctity of SQL services.

In most cases, Web applications need to rely on another database server. This database service requires professional IT people to maintain. Before you deploy your application, you need to think too much: Does the data server have enough capacity? What about the performance, stability and security? There are too many unknown factors ...

According to the basic concept of cloud computing, to solve the above problems, we need to cloud-based data platform, that is, to put the services in the cloud, relying on a strong cloud operating system and platform hardware to deal with. That's right. SQL data Services (SDS) is such a "cloud" based on the platform.

What is SDS?

SDS is a powerful, Internet-facing database that provides robust, secure, and flexible data base services. SDS provides two standard interfaces for soap and rest, and is detached from traditional programming languages so that coder with any language can easily manipulate it.

Why use SDS?

Flexibility and scale,business-ready reliability and Security,developer agility

SDS status in Azure Services platform:

SDS is one of the four main modules of Azure, providing data services for applications in the sky and other azure services modules in the cloud.

The picture is not clear? Please click here to view the original image (larger).

Data types supported by SDS

SDS supports string (string), Decimal (decimal), Boolean, DateTime, and Binary several basic data types, and also supports a BLOB (Binary SCM object) data type. Allows you to store content in any format.

Application Address:

http://go.microsoft.com/?linkid=9373222

Dev Portal

Http://portal.ex.azure.microsoft.com

Ace Model

Finally came to the point. Before using SDS, you must understand the SDS ACE (authority,container,entity) model. Authority is the highest level of the object. A authority contains multiple container, and a container contains multiple entity. The following figure

We can think of Authoriy as a database instance (SQL Server instance) in SQL Server. Container, then, is like multiple independent databases in an instance. And entity is the equivalent of a record. This analogy is only an intuitive concept, in fact, there is a difference between the ACE model and the relational database.

If you want to make an exact analogy, container can be equated to a separate database in the relational databases, or to a table. Entity is a data record yes, but entity is arbitrary and does not require a specific structure definition in a table, as in a relational database. As you can see, a container can contain a variety of entity with different structures.

For example, as shown in the previous illustration, we can create a authority called "food" that includes two container named "Fruit" and "vegetable". container["Fruit" includes 3 entities, namely "Apple1", "Apple2", "pear1". Note, here we assume that the pentagram represents pear and the triangle represents Apple. In this way, the container["fruit" includes two types of three entity. Similarly, in the container["vegetable"], we assume that the circle is cabbage cabbage, square is the tomato tomato, we have "tomato1", "Tomato2", "Cabbage1" three entity, They are also of two different types.

Oh, the traditional Instance-database-tabale-row model is very different? It doesn't matter, just remember the basic structure now, in the next section, you will have a chance to play with them.

Programming model

Each authority corresponds to a specific URI. For example, a authority called food, its HTTP address is HTTPS://FOOD.DATA.DATABASE.WINDOWS.NET/V1, can be opened directly in the browser (in the browser zhogn1 directly open, Equivalent to executing HTTP GET method)

With the authority URI, you will find that the URI of container and entity is easily found. The format is as follows:

Https://food.data.database.windows.net/v1/<container-id>

such as https://food.data.database.windows.net/v1/fruit/

Https://food.data.database.windows.net/v1/<container-id>/<entity-id>

such as Https://food.data.database.windows.net/v1/fruit/apple1

The SDS programming model, CRUD, plainly is HTTP operations on these URIs. The following table is a map of HTTP verb to SDS twist

HTTP Verbsds Operationget fetch,query, (that is, select) PostCreate, (that is, insert) Putupdatedeletedelete

Well, that's the end of the section. : In the next section, I'll use a gadget to play through all the features of the SDS.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.