If you find an issue with the presentation output, click here. We'll get back to you within the next 48 hours. introduction to sql storage and azure storage Edit Update ClosePublic View Post to : URL :
Presentation Description Edit Less In this presentation we cover all the basic concepts about SQL Storage and Azure Storage. We present SQL Azure and ..
In this presentation we cover all the basic concepts about SQL Storage and Azure Storage. We present SQL Azure and Windows Azure Tables.
Regards,
Dr. Eduardo Castro Martinez
Microsoft SQL Server MVP
http://ecastrom.blogspot.com
http://comunidadwindows.org
18. 1) Receive Web Role Worker Role
work
main() 4) Do
ASP.NET, work
WCF, etc. { … }
2) Put 3) Get
message in message
queue from queue
5) Delete
message
from queue
Queue
27. [DataServiceKey("PartitionKey", "RowKey")]
public class Movie
{
/// <summary>
/// Category is the partition key
/// </summary>
public string PartitionKey { get; set; }
/// <summary>
/// Title is the row key
/// </summary>
public string RowKey { get; set; }
public DateTime Timestamp { get; set; }
public int ReleaseYear { get; set; }
public string Language { get; set; }
public string Cast { get; set; }
}
27
28. StorageCredentialsAccountAndKey credentials = new StorageCredentialsAccountAndKey(
“myaccount", “myKey");
string baseUri = "http://myaccount.table.core.windows.net";
CloudTableClient tableClient = new CloudTableClient(baseUri, credentials);
tableClient.CreateTable(“Movies");
TableServiceContext context = tableClient.GetDataServiceContext();
CloudTableQuery<Movie> q = (from movie in context.CreateQuery<Movie>(“Movies")
where movie.PartitionKey == “Action" && movie.RowKey == "The Bourne Ultimatum"
select movie).AsTableServiceQuery<Movie>();
Movie movieToUpdate = q.FirstOrDefault();
// Update movie
context.UpdateObject(movieToUpdate);
context.SaveChangesWithRetries();
// Add movie
context.AddObject(new Movie(“Action" , movieToAdd));
context.SaveChangesWithRetries();
28
31. >
>
>
>
PartitionKey RowKey Category …
(Account name) (Title)
> moviesonline 12 Rounds Action …
moviesonline A Bug’s Life Animation …
100,000,000 more rows … … …
moviesonline Office Space Comedy …
moviesonline Platoon War …
50,000,000 more rows … … …
moviesonline WALL-E Animation …
31
32. >
>
>
PartitionKey RowKey Category …
(Account name) (Title)
Client
Client moviesonline 12 Rounds Action …
moviesonline A Bug’s Life Animation …
100,000,000 more rows … … …
moviesonline Office Space Comedy …
moviesonline Platoon War …
50,000,000 more rows … … …
moviesonline WALL-E Animation …
32
33. >
>
> PartitionKey RowKey (Title)
(Category) (Title)
> Action Fast & Furious
… 10000 more Action movies
10000 more Action movies
Action The Bourne Ultimatum
… 100000 more Action & & Animation
100000 more Action Animation movies
movies
Animation Open Season 2
Animation
… Open Season 2
100000 more Animation movies
Client
Client
…
Animation
100000 more Animation movies
The Ant Bully
Animation The Ant Bully
Comedy Office Space
… 1000000more Comedy & & SciFi movies
1000000 more Comedy SciFi movies
SciFi Star Trek
… 100000 more SciFi & War movies
… 100000 more War movies
War
War Defiance
Defiance
33
38. >
>
> PartitionKey
(Category)
RowKey (Title)
Action Fast & Furious
… 10000 more Action movies
Action The Bourne Ultimatum
… 100000 more Action & Animation movies
Animation Open Season 2
… 100000 more Animation movies
Client Animation The Ant Bully
Comedy Office Space
… 1000000 more Comedy & SciFi movies
SciFi Star Trek
… 100000 more SciFi & War movies
… 100000 more War movies
War Defiance
38
39. >
> PartitionKey
(Category)
RowKey
(Title)
Rating
>
Action Fast & Furious 5
> …
Returns 1000 rated > 4
999 more movies
movies …
> … Action and Anim. movies here with
rating < 4
…
Animation A Bug’s life 2
Partition range boundary hit
… 100 more movies < 4 here …
Animation The Ant Bully 3
Comedy Are we there yet? 2
… Return continuation
More movies here …
Client Comedy Office Space 5
… 800000 more movies here …
Drama A Beautiful Mind 5
… 1200000 more movies here …
War Defiance 4
39
40. >
>
>
>
PartitionKey RowKey Rating
> (Category) (Title)
> Action Fast & Furious 5
… More movies here …
Comedy Office Space 5
… More movies here …
Documentary Planet Earth 4
… More movies here
Drama Seven Pounds 4
Horror Saw 5 3
Client … More movies here …
Music 8 Mile 2
… More movies here …
SciFi Star Trek 5
… More movies here …
40
42. Faster
>
>
> Create and maintain own views that help
queries
> “Or” Predicates
> Execute individual query in parallel instead of
using “OR”
> User Interactive
> Cache the result to reduce scan frequency
42
60. A relational DB in the cloud
SQL Azure Database
Data Hub
Others (Future)
.NET Services
Applications SQL Services
Relational database as a service
Highly available, automatically maintained
Live Services
Windows Azure
Extension of the SQL Server Data Platform
Applications
Windows Windows Windows Others
Server Vista/XP Mobile
62. Reference Data Sync
Data
Symmetric Programming Model Data Hub Aggregation
• Initial services – core RDBMS capabilities with SQL Azure Database,
Data Sync
• Future Offerings
• Additional data platform capabilities: Reporting, BI
• New services: Reference Data
63. Clear Feedback: “I want a database in the Cloud”
Focus on combining the best features of SQL Server
running at scale with low friction
64. Application Application Application
Browser Browser
ODBC, OLEDB,
Application Application
REST Client REST Client SQL Client* ADO.Net PHP,
Ruby, …
Cloud Cloud
Evolves
HTTP+REST
HTTP+REST
HTTP
HTTP
TDS
Windows Azure Windows Azure
Web App REST (Astoria) Web App
Data Center
Data Center
REST Client ADO.Net + EF SQL Client*
REST/SOAP + ACE Model TDS + TSQL Model
SDS Current SDS Next
* Client access enabled using TDS for ODBC,
ADO.Net, OLEDB, PHP-SQL, Ruby, …
65. SQL Azure Database
Others (Future)
SQL Azure
Applications
Windows Azure
AppFabric
Windows Azure
Applications
Windows Others
87. On Premises Windows Azure
Local Agent Data Sync Service
Sync Orchestrator Sync Orchestrator
HTTPS
SQL Server SQL Server SQL Server
Sync Provider Proxy Provider Provider
TDS
SQL
SQL
Server
Azure
88.
89. SQL Azure
Now
Database
Data Sync
Service For Remote Offices
CTP2 – End of CY10
Retail Stores
SQL Azure
Sync
On-Premises (Headquarters)
93. Service Bus
Access Control ?
SQL Azure
Applications
Windows Azure
AppFabric
Windows Azure
Applications
Windows Others
94. Service Bus
3) Discover Service
Bus endpoint 1) Register service
Registry endpoint
2) Expose Service
Bus endpoint 5) Invoke operation
4) Invoke operation on service endpoint
on Service Bus
endpoint
Client
WCF Service
(On-premises
(On-premises)
or cloud)
Service Bus
Access Control
95.
96.
97.
98.
99.
100.
101.
102. Blobs SQL Azure
On-Premises
or Hosted
Application