https://azurestocktrader.cloudapp.net
User Interface
Web Application Layer (UI)
ASP.NET Web Forms
Core StockTrader
Services Classes
Orders Tier
Middle Tier
Business Services
Business
Service
Layer
Middle-Tier Business
Services
Layer (BSL)
Business Transactions
Service
Client Class
Service
Client Class
Order Processor Service (OPS)
Business Transactions
Order Processing Service Class
Data Access
Data Access Layer (DAL)
Market Summary
Class
Customer Class
Account
Table
SQL Server/
SQL Azure
Account
Profile
Table
Orders Class
Quote Table
Orders
Table
Holdings
Table
StockTrader On Premise Architecture
Internet
Firewall
ForeFront TMG
System Center/VMM Managed
Private Cloud
StockTrader
Business
Services
StockTrader
Web Application
VM
VM
VM
VM
VM
VM
VM
VM
DMZ
SQL Server
VM
VM
VM
VM
StockTrader
Order Processor
Service
StockTrader
DB
StockTrader Azure Migration: Azure Lift and Shift
Windows Azure
Web Role
Azure
StockTrader Web
Application
Windows Azure Web Role
Https and
Client
Certificate
Azure StockTrader
Business
Services
SQL Azure
Scale-out
Instances
SQL Encrypted
StockTrader
DB
Net.tcp encrypted and
Client Certificate
Scale-out
Instances
Azure StockTrader
Order Processor
Service
SQL Encrypted
Scale-out
Instances
Windows Azure Platform
Windows Azure Worker Role
Internet
Existing On Premise Application
VM
VM
VM
VM
Firewall
StockTrader
Order Processor
Service
System Center/VMM Managed
Private Cloud
ForeFront TMG
VM
VM
StockTrader
VM
Web Application
VM
SQL Server
DMZ
VM
VM
VM
VM
StockTrader
StockTrader
Business
Business Service
Services
StockTrader
DB
StockTrader Azure Migration: Azure Optimized
Windows Azure
Web Role
SQL Azure
Windows Azure Web Role
Azure
StockTrader Web
Application
Azure StockTrader
Business
Services
Account
DB
Scale-out
Instances
Scale-out
Instances
Publishing
RESTful Endpoint
+ Token Service
SQL Azure
Azure StockTrader
Order Processor
Service
Polling
Windows Azure Worker Role
Scale-out
Instances
Quote
DB
Account
AccountProfile
Orders
Holding
Quote
NewsTopics
AccountProfile
AccountDevice
Quote
QuoteSymbol
Account
Holding
Orders
using (var scope = new TransactionScope())
{
using (var connection = new SqlConnection(…))
{
// enlists in current transaction
connection.Open();
// Run SQL statements
// doesn’t actually commit txn
scope.Complete();
}
}
using (var connection = new SqlConnection(…))
{
connection.Open();
using (var scope = new TransactionScope())
{
// Run statement to connect to right
// federation (txn scope is ignored as
// connection not enlisted)
connection.EnlistTransaction(scope);
// Run SQL statements
scope.Complete();
}
}
using (new TransactionScope(TransactionScopeOption.Suppress)) {}
Async Request
2 .. 1999
100% Shared Code
0% Shared Code
www.syringe.net.nz
Descargar

Building Cross Platform Mobile Apps Powered by Azure