SlideShare uma empresa Scribd logo
1 de 189
Baixar para ler offline
Patterns for Cloud Computing
Patterns for Cloud Computing




                   This is Jim
Patterns for Cloud Computing




 Jim has many questions about cloud computing
Patterns for Cloud Computing




 The more he reads, the more confused he gets
Patterns for Cloud Computing




          “What is Cloud Computing?”
Patterns for Cloud Computing




         “What can I use the Cloud for?”
Patterns for Cloud Computing




   “What is Microsoft’s roadmap in this space?”
Answering these Questions can be Difficult
Answering these Questions can be Difficult

             So many alternative definitions from
                     different vendors


              It can be difficult to describe what
                   the cloud can be used for


                Keeping up with our beta and
               released products is challenging
Session Objectives
Session Objectives

                      Explore a Clear Definition
                        of Cloud Computing


                     Arm you with 5 Patterns for
                      Cloud-based Applications


              Show you how to Implement these
                 Patterns using our Platform
Defining Cloud Computing
Defining Cloud Computing




        Jim has heard all the buzzwords
Defining Cloud Computing




         Service Oriented Architecture
Defining Cloud Computing




           Rich Internet Applications
Defining Cloud Computing




             Software as a Service
Defining Cloud Computing




              Software + Services
Defining Cloud Computing




       Are any of these cloud computing?
Defining Cloud Computing




  Styles of application architecture
Defining Cloud Computing




These styles can work in the cloud,
 but they are not cloud computing
Defining Cloud Computing




 Where do your applications “live”?
Defining Cloud Computing




               On Premises
                 Hosted
                  Cloud
Defining Cloud Computing

       Application runs
       on-premises




    • Bring my own
      machines,
        Buy my own
      connectivity,
      software, etc.and
       hardware,
    • manage my own
      Complete control
         data center
      and responsibility
    • Upfront capital
      costs for the
      infrastructure
Defining Cloud Computing

       Application runs     Application runs at a
       on-premises                 hoster




    • Bring my own         • Rent machines,
      machines,              connectivity,
        Buy my own           Pay someone to
                             software
      connectivity,
      software, etc.and
       hardware,            host my application
                           • Less control, but
    • manage my own
      Complete control     using hardware that
                             fewer
         data center
      and responsibility         I specify
                             responsibilities
    • Upfront capital      • Lower capital costs,
      costs for the          but pay for fixed
      infrastructure         capacity, even if idle
Defining Cloud Computing

       Application runs     Application runs at a     Application runs using
       on-premises                 hoster               cloud platform




    • Bring my own         • Rent machines,           • Shared,
      machines,              connectivity,              multi-tenant
                                                       Pay someone for a
        Buy my own           Pay someone to
                             software                   environment
      connectivity,                                    pool of computing
      software, etc.and
       hardware,            host my application
                           • Less control, but        • Offers pool of
                                                       resources that can
    • manage my own
      Complete control     using hardware that
                             fewer                      computing
                                                       be applied to a set
         data center
      and responsibility         I specify
                             responsibilities           resources,
                                                         of applications
                                                        abstracted from
    • Upfront capital      • Lower capital costs,
      costs for the          but pay for fixed          infrastructure
      infrastructure         capacity, even if idle   • Pay as you go
Defining Cloud Computing




            Cloud “Variants”
Defining Cloud Computing




              Public Cloud
Defining Cloud Computing




Pool of computing resources offered by
       a vendor, typically using a
         “pay as you go” model
Defining Cloud Computing




              Private Cloud
Defining Cloud Computing




 Pool of computing resources that lives
  within a self managed datacenter
Defining Cloud Computing




 Pool of computing resources that lives
 within a datacenter with no sharing
Defining Cloud Computing




 “What is Microsoft doing in Cloud Computing?”
Defining Cloud Computing




 Refer to the introductory Azure
materials – not going to go through
             them here
Defining Cloud Computing




          3 x Critical Concepts
Defining Cloud Computing



                   Roles

                Web Role
               Worker Role
Defining Cloud Computing




                  Storage

         Table, Blob, Relational
Defining Cloud Computing




                Messaging

                  Queues
Patterns for Cloud Computing




       Using the Cloud for Scale
Patterns for Cloud Computing




“Isn’t the cloud good for applications that need to
                 scale dynamically?”
Patterns for Cloud Computing




          For example, tax applications
Patterns for Cloud Computing




             “How does this work?”
Patterns for Cloud Computing




     Let’s do some white boarding for Jim…
…and when I say white boarding, I really mean it
#1 - Using the Cloud for Scale


“Wow! What a great site!”


                  Request
     Browser                 Web Tier   B/L Tier   Database
                  Response
#1 - Using the Cloud for Scale


Browser

Browser

Browser          Web Tier      B/L Tier    Database
               “Server Busy”
Browser

Browser
#1 - Using the Cloud for Scale


Browser

Browser

Browser         Web Tier      B/L Tier     Database

Browser                       “Timeout”


Browser
How would Jim do this today on premises?
#1 - Using the Cloud for Scale
           How would Jim do this today on premises?


Browser

Browser             Web Tier
                N
Browser         L   Web Tier           B/L Tier       Database
                B
Browser             Web Tier

Browser
#1 - Using the Cloud for Scale
           How would Jim do this today on premises?


Browser

Browser                                  B/L Tier
                                    N
Browser           Web Tier          L    B/L Tier     Database
                                    B
Browser                                  B/L Tier

Browser
#1 - Using the Cloud for Scale
           How would Jim do this today on premises?


Browser

Browser             Web Tier             B/L Tier
                N                   N
Browser         L   Web Tier        L    B/L Tier     Database
                B                   B
Browser             Web Tier             B/L Tier

Browser
#1 - Using the Cloud for Scale
           How would Jim do this today on premises?


Browser                                               p1 p2 p3

Browser             Web Tier             B/L Tier
                N                   N
Browser         L   Web Tier        L    B/L Tier     Database
                B                   B
Browser             Web Tier             B/L Tier

Browser
Not without consequences...
#1 - Using the Cloud for Scale
           How would Jim do this today on premises?


Browser                                                  p1 p2 p3

Browser              Web Tier               B/L Tier
                N                      N
Browser         L    Web Tier          L    B/L Tier     Database
                B                      B
Browser              Web Tier               B/L Tier

Browser         “That took a lot of work - and money!”
#1 - Using the Cloud for Scale
                  How would Jim do this today on premises?


                                                                        p1 p2 p3
“Not so great now…”
                             Web Tier                  B/L Tier
                        N                        N
    Browser             L    Web Tier            L     B/L Tier         Database
                        B                        B
                             Web Tier                  B/L Tier

                        “That took a lot of work - and money!”
                      “Hmmm... Most of this stuff is sitting idle...”
#1 - Using the Cloud for Scale


                                         Datacenter peak load




Usage                                    Idle time




        Jan       Apr     Jul     Oct
How can Windows Azure help?
#1 - Using the Cloud for Scale


“Wow! What a great site!”


                  Request
     Browser                 Web Role   Worker Role    Azure
                                                      Storage
                  Response
#1 - Using the Cloud for Scale


Browser

Browser

Browser          Web Role      Worker Role    Azure
                                             Storage
               “Server Busy”
Browser

Browser
#1 - Using the Cloud for Scale


Browser

Browser               Web Role
                 N
Browser          L    Web Role   Worker Role    Azure
                 B                             Storage
Browser               Web Role

Browser

            You don’t see
               this bit
#1 - Using the Cloud for Scale


Browser
                                  Worker
Browser            Web Role
                                   Role
               N              N
                                  Worker    Azure
Browser        L   Web Role   L
                                   Role    Storage
               B              B
Browser                           Worker
                   Web Role
                                   Role
Browser
#1 - Using the Cloud for Scale


Browser                                    p1 p2 p3
                                  Worker
Browser            Web Role
                                   Role
               N              N
                                  Worker    Azure
Browser        L   Web Role   L
                                   Role    Storage
               B              B
Browser                           Worker
                   Web Role
                                   Role
Browser
OK, so changing config is easy...

…but what else do I need to know?
#1 - Using the Cloud for Scale


Browser                                    p1 p2 p3
                                  Worker
Browser            Web Role
                                   Role
               N              N
                                  Worker    Azure
Browser        L   Web Role   L
                                   Role    Storage
               B              B
Browser                           Worker
                   Web Role
                                   Role
Browser
#1 - Using the Cloud for Scale




 Web Role                         Worker Role




        Tight coupling between web and
        worker role is an anti-pattern
#1 - Using the Cloud for Scale


                                                 4. Process

      Web Role                     Worker Role

              2. Respond to UI

                     Req
1 Place on queue
 .                                        3. Pickup from queue
                           Queue
#1 - Using the Cloud for Scale


                                                   4. Process

       Web Role                      Worker Role




                      Req                          5. Add result to table

                            Queue


6. Query table on refresh
                             Table
Demo: PrimeSolvr
How many web and worker roles do you need?
#1 - Using the Cloud for Scale


Browser

Browser             Web Role
                N
Browser         L   Web Role        Worker Role    Azure
                B                                 Storage
Browser             Web Role

Browser

                 Collate IIS logs
 Testing
                  / MOM pack
#1 - Using the Cloud for Scale



 Web Role                 Worker Role




            Req



                  Queue
#1 - Using the Cloud for Scale

Web Role                                      Worker Role

  Web Role                                  Worker Role

     Web Role                            Worker Role




                  Req   Req   Req



                        Queue

      Web Role                           Worker Role

  Web Role         Monitor queue            Worker Role
                 length against user’s
Web Role            expectations              Worker Role
Patterns for Cloud Computing
                   Takeaways

          Using configuration, Azure makes it
          easy to scale roles

          Understand how to communicate
          between Web and Worker role

          Strategy on when to scale up/down
          roles in production
Patterns for Moving to the Cloud




Using the Cloud for Multi Tenancy
Patterns for Cloud Computing




      “I like the idea of scaling Web roles…”
Patterns for Cloud Computing




    “…but need to serve multiple customers”
Patterns for Cloud Computing




     “Without creating separate codebases!”
#2 - Using the Cloud for Multi Tenancy




  Browser        Web Tier     B/L Tier    Database
Customer #1
How would Jim do this today on premises?
#2 - Using the Cloud for Multi Tenancy
              How would Jim do this today on premises?


  Browser            Web Tier            B/L Tier        Database
Customer #1


  Browser            Web Tier             B/L Tier       Database
Customer #2


  Browser            Web Tier             B/L Tier       Database
Customer #3
Gets expensive pretty quickly
#2 - Using the Cloud for Multi Tenancy


  Browser
Customer #1

  Browser        Web Tier     B/L Tier    Database
Customer #2

  Browser
Customer #3
Schema Customizations

  UI Customizations
Schema Customizations

  UI Customizations
3 options for data in multi tenant environment
#2 - Using the Cloud for Multi Tenancy


  Browser
                                                     Fixed Schema
Customer #1

  Browser        Web Tier            B/L Tier          Database
Customer #2

  Browser
               Option 1: Everyone Uses the Same Database/Schema
Customer #3
               Pros: Simplest approach, easy to maintain/upgrade.
               Cons: No customizations. Restoring of tenant data.
#2 - Using the Cloud for Multi Tenancy


  Browser                                                       Database
Customer #1                                                  Customer #1

  Browser            Web Tier              B/L Tier             Database
Customer #2                                                  Customer #2

  Browser                                                       Database
Customer #3                                                  Customer #3

              Option 2: Give Each Customer Their Own Database/Schema
              Pros: Flexible. Tenant restore is easier. High Isolation.
              Cons: Can be costly. Difficult to upgrade db schemas.
#2 - Using the Cloud for Multi Tenancy


  Browser                                              Fixed Schema
                                                    with Customizations
Customer #1

  Browser         Web Tier            B/L Tier           Database
Customer #2

  Browser
              Option 3: Fixed Database/Schema, with customizations
Customer #3
              Pros: Customers can add their own custom fields
              Cons: Non standard way of customizing the schema.
              Tenant restore is difficult.
#2 - Using the Cloud for Multi Tenancy
                                         Tenant


                                                            *
                           1
                                TenantID           int

                               TenantName        nvarchar



        *
      Employee
EmployeeId        int                                           TypeID
                                                                            *
                                                                         Type
                                                                                    int

FirstName       nvarchar                                         Name       nvarchar

 LastName       nvarchar                                        CLRType     nvarchar

            1                                                                   1
                                    Customization




                                                            *
                                                    int


                           *
                               CustomizationID


                                   Value         nvarchar
#2 - Using the Cloud for Multi Tenancy
                                       Tenant


                                                         *
                         1
                              TenantID           1

                             TenantName UK Branch


        *
      Employee
EmployeeId        1                                          TypeID
                                                                         *
                                                                      Type
                                                                                 1

FirstName       Gordon                                        Name       PostalCode

 LastName       Brown                                        CLRType         string

            1                                                                1
                                  Customization




                                                         *
                                                  1


                         *
                             CustomizationID


                                 Value         SW1 2AA
                                                  A
#2 - Using the Cloud for Multi Tenancy
                                       Tenant


                                                        *
                         1
                              TenantID           2

                             TenantName US Branch


        *
      Employee
EmployeeId        2                                         TypeID
                                                                        *
                                                                     Type
                                                                                2

FirstName       Barack                                       Name           ZipCode

 LastName       Obama                                       CLRType          string

            1                                                               1
                                  Customization




                                                        *
                                                  2


                         *
                             CustomizationID


                                 Value          20500
#2 - Using the Cloud for Multi Tenancy
                                            Tenant


                                                             *
                              1
Fixed Schema                       TenantID           2
Applies to All                                                                   Could be both
                                  TenantName US Branch


                 *                                                           *
   Tenants

            Employee                                                      Type
     EmployeeId        2                                         TypeID              2
                                       Customizable
      FirstName      Barack          Tenant by Tenant             Name           ZipCode

      LastName       Obama                 Basis                 CLRType          string

                 1                                                               1
                                       Customization




                                                             *
                                                       2


                              *
                                  CustomizationID


                                      Value          20500
Schema Customizations

  UI Customizations
#2 - Using the Cloud for Multi Tenancy


  Browser
Customer #1

  Browser        Web Tier     B/L Tier    Database
Customer #2

  Browser
Customer #3
URL Handing
Can ASP
      .NET MVC Help?
Single Controller per Tenant

http://employeedata.cloudapp.net/CompanyA
          (CompanyAController)

http://employeedata.cloudapp.net/CompanyB
          (CompanyBController)
Shared Controller per Tenant

http://employeedata.cloudapp.net/CompanyA
           (EmployeeController)

http://employeedata.cloudapp.net/CompanyB
           (EmployeeController)
Shared Controller per Tenant (with URL mask)

          http://hr.companya.co.uk
(http://employeedata.cloudapp.net/employees)

          http://hr.companyb.com
(http://employeedata.cloudapp.net/employees)
#2 - Using the Cloud for Multi Tenancy

              http://hr.companya.co.uk
  Browser
Customer #1          http://employeedata.cloudapp.net
  Browser               Web Tier              B/L Tier   Database
Customer #2

  Browser
Customer #3
              http://hr.companyb.com
#2 - Using the Cloud for Multi Tenancy

              http://hr.companya.co.uk -> CNAME (employeedata.cloudapp.net)
  Browser
Customer #1          http://employeedata.cloudapp.net
  Browser               Web Tier               B/L Tier            Database
Customer #2

  Browser
Customer #3
              http://hr.companyb.com -> CNAME (employeedata.cloudapp.net)
#2 - Using the Cloud for Multi Tenancy

              http://hr.companya.co.uk -> CNAME (employeedata.cloudapp.net)
  Browser
Customer #1          http://employeedata.cloudapp.net
  Browser               Web Tier               B/L Tier            Database
Customer #2          Use custom routing in ASP
                                             .NET MVC

  Browser
Customer #3
              http://hr.companyb.com -> CNAME (employeedata.cloudapp.net)
Demo: Multi Tenant Routing using ASP
                                   .NET MVC
Patterns for Cloud Computing
                   Takeaways

          Always consider Multi Tenancy first,
          even if only one customer

          Design considerations must include
          both data and UI

          Many other considerations
          (such as identity)
Patterns for Moving to the Cloud




    Using the Cloud for Compute
Patterns for Cloud Computing




 Jim has seen how Azure enables multiple nodes
Patterns for Cloud Computing




    “Can I use all of these nodes in parallel?”
Patterns for Cloud Computing




  “I’ve got this multi-GB file I need analyzing…”
#3 - Using the Cloud for Compute



                                       Data
         Data                Worker
                                       Data
Client          Master       Worker

                                       Data
                             Worker
#3 - Using the Cloud for Compute



                           Result
                                    Worker

                           Result
Client            Master            Worker

         Result
                                    Worker
                           Result
Popularized by the term “MapReduce”*




     * 2004 OSDI paper by Jeff Dean and Sanjay Ghemawat (Google)
#3 - Using the Cloud for Compute

               How many ”e”’s in
“The quick brown fox jumps over the lazy dog”?
                                                                     M<k,v>
                    Data                                 Worker
                                                                     M<k,v>
         Client             Master                       Worker

                                                                     M<k.v>
                                                         Worker


                                                            “Map”


                                                 M<“the quick brown”.”e”>
                                                 M<“fox jumps over”.”e”>
                                                 M<“the lazy dog”.”e”>
#3 - Using the Cloud for Compute



                                      L<k,v>
                                                  Worker

                                     L<k,v>
    Client                 Master                 Worker

                 Result
                                                  Worker
                                     L<k,v>
3 x ”e”s found
                          “Reduce”
                                     L<”e”,”1”>
                                     L<”e”,”1”>
                                     L<”e”,”1”>
And it’s definitely popular...
#3 - Using the Cloud for Compute

                    Google
20pb of data analyzed every day using MapReduce

                    Yahoo!
    10k+ cores, 4pb of data using MapReduce

                  Facebook
   2500+ cores, 1pb of data using MapReduce
Frameworks
#3 - Using the Cloud for Compute

            Apache Hadoop
Open Source Java “Inspired by MapReduce”
       (Core, HDFS, many more)

                   Cloudera
 Consulting, training, distribution of Hadoop

        Amazon Elastic MapReduce
      Hadoop implementation on EC2
How would Jim do this today on premises?
#3 - Using the Cloud for Compute
                     How would Jim do this today on premises?




                                                                      Data
                     Data                               Worker
                                                                      Data
      Client                     Master                 Worker

Client Application          Job/Task Scheduler          Worker
                                                                      Data



                                                     Remote Service
How about implementing this on Windows Azure?
#3 - Using the Cloud for Compute


                                                                             Data
                                                               Worker
                     Data

                                                                             Data
                                                               Worker
      Client                    Web Role
                                                                             Data
Client Application          Job/Task Scheduler                 Worker
                                                            Remote Service

                                             Req



                                                   Queue




                                                    Table
Demo: Windows Azure Demo
 “Inspired by MapReduce”
Patterns for Cloud Computing
                   Takeaways

          MapReduce very visible, although
          can be difficult to initially grasp

          Learn about existing frameworks,
          especially Apache Hadoop

          Read up on Dryad (DryadLINQ) for
          future direction
Patterns for Moving to the Cloud




     Using the Cloud for Storage
Patterns for Cloud Computing




  “The cloud lets me store infinite data, right?”
Patterns for Cloud Computing




Lots of headaches with data management today
Patterns for Cloud Computing




        “It sounds too good to be true…”
How does Jim do this today on premises?
#4 - Using the Cloud for Storage
         How would Jim do this today on premises?




           File
                     RPC/NFS
Client                                        File Server   Store
#4 - Using the Cloud for Storage
         How would Jim do this today on premises?




           Data   TDS (Tabular Data Stream)
Client                                        DB Server   RDBMS
#4 - Using the Cloud for Storage
          How would Jim do this today on premises?




            Data
                       HTTP POST
Browser                                        Web Server   Database
#4 - Using the Cloud for Storage


   I love                         I love
    you!                         you too!



            Server        Data



Affinity between your data and physical
         hardware that serves it
#4 - Using the Cloud for Storage


        I love                             I love
         you!                             you too!



                  Server           Data



                   Symptoms:
           Which RAID number was that again?
      Tedious to backup exponentially growing data
Crap! I’m at 95% capacity - got to move to a bigger disk
How does the cloud help?
Breaks the affinity between your data and hardware
#4 - Using the Cloud for Storage

“Code Near” Pattern
Data access code near to home, long data connection




    Client       DAL
                                                      Cloud Storage


Good for offline scenarios + client applications

DAL -> Storage typically REST connection
#4 - Using the Cloud for Storage

“Code Far” Pattern
Data access code far from home, short data
connection



    Client                              Web Tier   DAL
                                                            Cloud Storage


Good for browser based scenarios, but no offline.
Good for “chattier” applications between DAL and database
Blobs, Tables, Relational
Blobs, Tables, Relational
#4 - Using the Cloud for Storage


PutBlob                                                            Blob Container
PUT http://account.blob.core.windows./net/containername/blobname

                                                    REST API
    Client                                                               Azure
                                                                     Blob Storage




                        http://account.blob.core.windows.net/containername/blobname



                        PutBlob = 64Mb MAX
                        MetaData = 8Kb per Blob
#4 - Using the Cloud for Storage


                                                                   Blob Container


                                                   REST API
    Client                                                               Azure
                                                                     Blob Storage
GetBlob
GET http://account.blob.core.windows./net/containername/blobname


                        http://account.blob.core.windows.net/containername/blobname
#4 - Using the Cloud for Storage


                                                                   Blob Container


                                                   REST API
    Client                                                               Azure
                                                                     Blob Storage
GetBlob
GET http://account.blob.core.windows./net/containername/blobname
Range: bytes=329300 - 730000
                        http://account.blob.core.windows.net/containername/blobname
#4 - Using the Cloud for Storage


PutBlock(blobname, blockid, data)                            Blob Container
PutBlockList(blobname, blockid1 …, blockidN)
                               ,
                                               REST API
    Client                                                         Azure
                                                               Blob Storage




                       http://account.blob.core.windows.net/containername/blobname



                       PutBlock = 4Mb MAX to a maximum of 50Gb
                       BlockId = 64 bytes
Blobs, Tables, Relational
#4 - Using the Cloud for Storage
REST:
GET http://account.table.core.windows.net/Customer?$filter=%20PartitionKey%20eq%20value
LINQ:
var customers = from o in context.CreateQuery<customer>(“Customer”) where o.PartitionKey
== value select o;



                     Worker Role                       Azure
                                                   Table Storage




                                           http://account.table.core.windows.net
                   Each Table:

                   PartitionKey (e.g. DocumentName) to ensure
                   scalability
                   RowKey (e.g. version number)
                   [fields] for data
Blobs, Tables, Relational
Codename Sitka (early 2008)
SQL Server Data Services (MIX08)
#4 - Using the Cloud for Storage

         This is what I’m doing on premises...



            Data
                            TDS
Client                                           DB Server   RDBMS
#4 - Using the Cloud for Storage

         So, this is what I would like to do in the cloud...



            Data
                              TDS
Client                                                     DB Server   RDBMS
SQL Data Services (MIX09)
SQL Azure (July 2009)
#4 - Using the Cloud for Storage

         So, this is what I would like to do...



            Data
                              TDS
Client                                            SQL Azure   RDBMS
#4 - Using the Cloud for Storage




          HTTP               TDS
Browser           Web Role         SQL Azure   RDBMS
#4 - Using the Cloud for Storage




          HTTP              Queue                 TDS
Browser          Web Role           Worker Role         SQL Azure   RDBMS
Migration!
#4 - Using the Cloud for Storage


                             “The Data Center”


          HTTP                           TDS
Browser          Web Tier   Bus. Logic         SQL Server   RDBMS
#4 - Using the Cloud for Storage


                                        “The Cloud”


          HTTP              Queue                 TDS
Browser          Web Role           Worker Role         SQL Azure   RDBMS
Demo: SQL Azure CTP
Patterns for Cloud Computing
                   Takeaways

          Understand the pricing model for
          storage on-premises vs. cloud

          Read up and understand code
          near/code far models

          SQL Azure as a factor for
          migration/move from on premises
Patterns for Moving to the Cloud




 Using the Cloud for Communications
Patterns for Cloud Computing




 Jim’s organization needs to communicate with
               other organizations
Patterns for Cloud Computing




“This has always been a very tricky and expensive
             process to get working”
Patterns for Cloud Computing




    “Does the cloud offer anything to help?”
How would Jim have done this before?
#5 - Using the Cloud for Communications




                     Telco provided WAN
Company 1                                          Company 2


  Client                                            Server

             FTP                           FTP
            Client                        Server
#5 - Using the Cloud for Communications



                           Internet
                     Telco provided WAN
Company 1                                          Company 2


  Client                                            Server

             FTP                           FTP
            Client                        Server
#5 - Using the Cloud for Communications



                           Internet
                     Telco provided WAN
Company 1                                        Company 2
                                           DMZ

  Client                                             Server

                                          Extranet
           Browser
                                            Site
What does the cloud provide?
#5 - Using the Cloud for Communications


                     http://app.queue.core.windows.net/


                            REST
 Client                                  Azure Queue
#5 - Using the Cloud for Communications
Company 1

                     http://app.queue.core.windows.net/
  Client

                             REST
                                         Azure Queue

Company 2


  Client
#5 - Using the Cloud for Communications
Company 1

                     http://app.queue.core.windows.net/
  Client

                             REST
                                         Azure Queue

Company 2


  Client
#5 - Using the Cloud for Communications
Company 1

                     http://app.queue.core.windows.net/
  Client
   Master Key
                             REST
                                         Azure Queue

Company 2


  Client

   Master Key
#5 - Using the Cloud for Communications
Company 1

                     http://app.queue.core.windows.net/
  Client

                             REST
                       Web Role          Azure Queue

Company 2


  Client
#5 - Using the Cloud for Communications
            Proxy?
Company 1

            Firewall
                        http://app.queue.core.windows.net/
  Client

                                REST
                          Web Role          Azure Queue

Company 2


  Client
             Firewall
#5 - Using the Cloud for Communications
Company 1

                 Firewall
                               http://app.queue.core.windows.net/
   Client

                                       REST
                                 Web Role          Azure Queue

Company 2                      65.55.33.204


   Client
                  Firewall
192.168.14.100

                        NAT?
#5 - Using the Cloud for Communications
Company 1

                 Firewall
                                           http://app.queue.core.windows.net/
   Client

                                                   REST
                                             Web Role          Azure Queue

Company 2                                  65.55.33.204


   Client
                  Firewall
192.168.14.100
                   OK, so I’ll do a HTTP
                    poll every minute
#5 - Using the Cloud for Communications
Company 1

                 Firewall
                                       http://app.queue.core.windows.net/
   Client

                                                 REST
                                          Web Role         Azure Queue

Company 2                               65.55.33.204


   Client
                  Firewall
192.168.14.100
                      …and how about other
                    protocols other than HTTP?
How does the .NET Service Bus help?
#5 - Using the Cloud for Communications
Company 1

                                                        sb://.../myqueue
  Client



                                                               .NET
                                                            Service Bus

Company 2


  Client
            Firewall
                       Outbound bi-directional socket
                       Kept alive in background
#5 - Using the Cloud for Communications
Company 1

            Firewall
                                                         sb://.../myqueue
  Client               Outbound one-way socket



                                                                .NET
                                                             Service Bus

Company 2

                                                           Message routed
  Client
                                                            accordingly
             Firewall
                        Outbound bi-directional socket
                        Kept alive in background
#5 - Using the Cloud for Communications
This Conference
 MySQL Admin         Firewall
                                                                  sb://.../myqueue
  My Laptop                     Outbound one-way socket
 Localhost:1000

                                                                         .NET
                                                                      Service Bus

   My Home

                                                                    Message routed
    Home PC
                                                                     accordingly
 192.168.14.193       Firewall
                                 Outbound bi-directional socket
                                 Kept alive in background
           My SQL

         Port 3306
Demo: Socket Shifter
Patterns for Cloud Computing
                   Takeaways

          Be careful consuming Azure queues
          directly via REST

          Firewalls/NATs can add additional
          trouble (especially non-HTTP)

          Learn how .NET Service Bus
          traverses in these scenarios
Next Steps
Next Steps




       Obviously, our friend Jim, is fake…
Next Steps

             Make sure you have a clear definition
                    of Cloud Computing


               Explore the 5 usage patterns for
                    your scenarios today


                 Think about the next steps for
                implementation and migration
simon.guest@microsoft.com
   http://simonguest.com

Mais conteúdo relacionado

Mais procurados

Penetrating the Cloud: Opportunities & Challenges for Businesses
Penetrating the Cloud: Opportunities & Challenges for BusinessesPenetrating the Cloud: Opportunities & Challenges for Businesses
Penetrating the Cloud: Opportunities & Challenges for BusinessesCompTIA
 
Cloudconfused ankit
Cloudconfused ankitCloudconfused ankit
Cloudconfused ankitAnkit Kumar
 
Cloud computing powerpoint
Cloud computing powerpointCloud computing powerpoint
Cloud computing powerpointassociation2580
 
Patterns for Cloud Computing
Patterns for Cloud ComputingPatterns for Cloud Computing
Patterns for Cloud ComputingSimon Guest
 
PPT on Cloud computing
PPT on Cloud computingPPT on Cloud computing
PPT on Cloud computingVinny Vessel
 
Webinar presentation on cloud computing
Webinar presentation on cloud computingWebinar presentation on cloud computing
Webinar presentation on cloud computingFolasade Adedeji
 
Introduction To Cloud Computing
Introduction To Cloud ComputingIntroduction To Cloud Computing
Introduction To Cloud ComputingLiming Liu
 
Introduction to Cloud Computing
Introduction to Cloud ComputingIntroduction to Cloud Computing
Introduction to Cloud ComputingEdureka!
 
Cloud computing ppt
Cloud computing pptCloud computing ppt
Cloud computing pptLiza Welch
 
Introduction to cloud computing
Introduction to cloud computingIntroduction to cloud computing
Introduction to cloud computingsuraj bhandari
 
The Cloud Cube
The Cloud CubeThe Cloud Cube
The Cloud CubeAdrius42
 
An Introduction to Cloud Computing: Evolution or Revolution?
An Introduction to Cloud Computing: Evolution or Revolution?An Introduction to Cloud Computing: Evolution or Revolution?
An Introduction to Cloud Computing: Evolution or Revolution?IBM Sverige
 
Ima Cloud Computing Mar2010 V8
Ima Cloud Computing Mar2010 V8Ima Cloud Computing Mar2010 V8
Ima Cloud Computing Mar2010 V8Tony Pearson
 
Cloud computing tutorial
Cloud computing tutorialCloud computing tutorial
Cloud computing tutorialSamuel Ndhlovu
 
Cloud computing - co daje firmie?
Cloud computing - co daje firmie? Cloud computing - co daje firmie?
Cloud computing - co daje firmie? Biznes to Rozmowy
 
Clearing the air on Cloud Computing
Clearing the air on Cloud ComputingClearing the air on Cloud Computing
Clearing the air on Cloud ComputingKarthik Sankar
 
Cloud Computing for Beginners
Cloud Computing for Beginners Cloud Computing for Beginners
Cloud Computing for Beginners Suman Singh
 
Cloud Computing Seminar
Cloud Computing SeminarCloud Computing Seminar
Cloud Computing Seminarfirebladez86
 

Mais procurados (20)

Penetrating the Cloud: Opportunities & Challenges for Businesses
Penetrating the Cloud: Opportunities & Challenges for BusinessesPenetrating the Cloud: Opportunities & Challenges for Businesses
Penetrating the Cloud: Opportunities & Challenges for Businesses
 
Cloudconfused ankit
Cloudconfused ankitCloudconfused ankit
Cloudconfused ankit
 
Application of Cloud Computing
Application of Cloud ComputingApplication of Cloud Computing
Application of Cloud Computing
 
Cloud computing powerpoint
Cloud computing powerpointCloud computing powerpoint
Cloud computing powerpoint
 
Patterns for Cloud Computing
Patterns for Cloud ComputingPatterns for Cloud Computing
Patterns for Cloud Computing
 
PPT on Cloud computing
PPT on Cloud computingPPT on Cloud computing
PPT on Cloud computing
 
Webinar presentation on cloud computing
Webinar presentation on cloud computingWebinar presentation on cloud computing
Webinar presentation on cloud computing
 
Introduction To Cloud Computing
Introduction To Cloud ComputingIntroduction To Cloud Computing
Introduction To Cloud Computing
 
Introduction to Cloud Computing
Introduction to Cloud ComputingIntroduction to Cloud Computing
Introduction to Cloud Computing
 
Cloud computing ppt
Cloud computing pptCloud computing ppt
Cloud computing ppt
 
Introduction to cloud computing
Introduction to cloud computingIntroduction to cloud computing
Introduction to cloud computing
 
The Cloud Cube
The Cloud CubeThe Cloud Cube
The Cloud Cube
 
An Introduction to Cloud Computing: Evolution or Revolution?
An Introduction to Cloud Computing: Evolution or Revolution?An Introduction to Cloud Computing: Evolution or Revolution?
An Introduction to Cloud Computing: Evolution or Revolution?
 
Ima Cloud Computing Mar2010 V8
Ima Cloud Computing Mar2010 V8Ima Cloud Computing Mar2010 V8
Ima Cloud Computing Mar2010 V8
 
Cloud computing tutorial
Cloud computing tutorialCloud computing tutorial
Cloud computing tutorial
 
Cloud computing - co daje firmie?
Cloud computing - co daje firmie? Cloud computing - co daje firmie?
Cloud computing - co daje firmie?
 
Clearing the air on Cloud Computing
Clearing the air on Cloud ComputingClearing the air on Cloud Computing
Clearing the air on Cloud Computing
 
Seminar cloud computing
Seminar cloud computingSeminar cloud computing
Seminar cloud computing
 
Cloud Computing for Beginners
Cloud Computing for Beginners Cloud Computing for Beginners
Cloud Computing for Beginners
 
Cloud Computing Seminar
Cloud Computing SeminarCloud Computing Seminar
Cloud Computing Seminar
 

Destaque

Introduction of Cloud computing
Introduction of Cloud computingIntroduction of Cloud computing
Introduction of Cloud computingRkrishna Mishra
 
Seminar on cloud computing by Prashant Gupta
Seminar on cloud computing by Prashant GuptaSeminar on cloud computing by Prashant Gupta
Seminar on cloud computing by Prashant GuptaPrashant Gupta
 
Cloud computing Basics
Cloud computing BasicsCloud computing Basics
Cloud computing BasicsSagar Sane
 
Cloud computing simple ppt
Cloud computing simple pptCloud computing simple ppt
Cloud computing simple pptAgarwaljay
 
Cloud computing (IT-703) UNIT 1 & 2
Cloud computing (IT-703) UNIT 1 & 2Cloud computing (IT-703) UNIT 1 & 2
Cloud computing (IT-703) UNIT 1 & 2Jitendra s Rathore
 
2013 Future of Cloud Computing - 3rd Annual Survey Results
2013 Future of Cloud Computing - 3rd Annual Survey Results2013 Future of Cloud Computing - 3rd Annual Survey Results
2013 Future of Cloud Computing - 3rd Annual Survey ResultsMichael Skok
 
Intro to cloud computing — MegaCOMM 2013, Jerusalem
Intro to cloud computing — MegaCOMM 2013, JerusalemIntro to cloud computing — MegaCOMM 2013, Jerusalem
Intro to cloud computing — MegaCOMM 2013, JerusalemReuven Lerner
 
2015 Future of Cloud Computing Study
2015 Future of Cloud Computing Study2015 Future of Cloud Computing Study
2015 Future of Cloud Computing StudyNorth Bridge
 
AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)Amazon Web Services
 
Issues in cloud computing
Issues in cloud computingIssues in cloud computing
Issues in cloud computingronak patel
 
Green Cloud Computing
Green Cloud ComputingGreen Cloud Computing
Green Cloud ComputingSeungyun Lee
 
Slides cloud computing
Slides cloud computingSlides cloud computing
Slides cloud computingHaslina
 
Cloud Computing Basics I
Cloud Computing Basics ICloud Computing Basics I
Cloud Computing Basics IRightScale
 
Disadvantages of Cloud Computing
Disadvantages of Cloud ComputingDisadvantages of Cloud Computing
Disadvantages of Cloud ComputingMaikel Mardjan
 

Destaque (20)

Introduction of Cloud computing
Introduction of Cloud computingIntroduction of Cloud computing
Introduction of Cloud computing
 
Cloud computing ppt
Cloud computing pptCloud computing ppt
Cloud computing ppt
 
Seminar on cloud computing by Prashant Gupta
Seminar on cloud computing by Prashant GuptaSeminar on cloud computing by Prashant Gupta
Seminar on cloud computing by Prashant Gupta
 
Cloud computing Basics
Cloud computing BasicsCloud computing Basics
Cloud computing Basics
 
Cloud computing simple ppt
Cloud computing simple pptCloud computing simple ppt
Cloud computing simple ppt
 
I'm Cloud Confused!
I'm Cloud Confused!I'm Cloud Confused!
I'm Cloud Confused!
 
Cloud Computing by AGDMOUN Khalid
Cloud Computing by AGDMOUN KhalidCloud Computing by AGDMOUN Khalid
Cloud Computing by AGDMOUN Khalid
 
cloud computing ppt
cloud computing pptcloud computing ppt
cloud computing ppt
 
Cloud computing (IT-703) UNIT 1 & 2
Cloud computing (IT-703) UNIT 1 & 2Cloud computing (IT-703) UNIT 1 & 2
Cloud computing (IT-703) UNIT 1 & 2
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 
2013 Future of Cloud Computing - 3rd Annual Survey Results
2013 Future of Cloud Computing - 3rd Annual Survey Results2013 Future of Cloud Computing - 3rd Annual Survey Results
2013 Future of Cloud Computing - 3rd Annual Survey Results
 
Intro to cloud computing — MegaCOMM 2013, Jerusalem
Intro to cloud computing — MegaCOMM 2013, JerusalemIntro to cloud computing — MegaCOMM 2013, Jerusalem
Intro to cloud computing — MegaCOMM 2013, Jerusalem
 
2015 Future of Cloud Computing Study
2015 Future of Cloud Computing Study2015 Future of Cloud Computing Study
2015 Future of Cloud Computing Study
 
AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)
 
Issues in cloud computing
Issues in cloud computingIssues in cloud computing
Issues in cloud computing
 
Green Cloud Computing
Green Cloud ComputingGreen Cloud Computing
Green Cloud Computing
 
Slides cloud computing
Slides cloud computingSlides cloud computing
Slides cloud computing
 
Cloud Computing Basics I
Cloud Computing Basics ICloud Computing Basics I
Cloud Computing Basics I
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Disadvantages of Cloud Computing
Disadvantages of Cloud ComputingDisadvantages of Cloud Computing
Disadvantages of Cloud Computing
 

Semelhante a Patterns For Cloud Computing

Real World Azure - IT Pros
Real World Azure - IT ProsReal World Azure - IT Pros
Real World Azure - IT ProsClint Edmonson
 
Personal robot industry v4
Personal robot industry v4Personal robot industry v4
Personal robot industry v436Kr.com
 
Real World Azure - Dev
Real World Azure - DevReal World Azure - Dev
Real World Azure - DevClint Edmonson
 
Cloud Computing with .Net
Cloud Computing with .NetCloud Computing with .Net
Cloud Computing with .NetWesley Faler
 
Programatori cu capul in nori
Programatori cu capul in noriProgramatori cu capul in nori
Programatori cu capul in noriAlex Popescu
 
클라우드 컴퓨팅에 따른 데이터센터의 변화
클라우드 컴퓨팅에 따른 데이터센터의 변화클라우드 컴퓨팅에 따른 데이터센터의 변화
클라우드 컴퓨팅에 따른 데이터센터의 변화Fanny Lee
 
DDHS 2009 Microsoft Heads In The Cloud Feet On The Ground Peter de Haas...
DDHS 2009   Microsoft   Heads In The Cloud Feet On The Ground   Peter de Haas...DDHS 2009   Microsoft   Heads In The Cloud Feet On The Ground   Peter de Haas...
DDHS 2009 Microsoft Heads In The Cloud Feet On The Ground Peter de Haas...Peter de Haas
 
CloudFest Denver Windows Azure Design Patterns
CloudFest Denver Windows Azure Design PatternsCloudFest Denver Windows Azure Design Patterns
CloudFest Denver Windows Azure Design PatternsDavid Pallmann
 
AWS 2013 LA Media Event: Scalable Media Processing
AWS 2013 LA Media Event: Scalable Media ProcessingAWS 2013 LA Media Event: Scalable Media Processing
AWS 2013 LA Media Event: Scalable Media ProcessingDavid Sayed
 
Hybrid Cloud Enablement Technologies
Hybrid Cloud Enablement TechnologiesHybrid Cloud Enablement Technologies
Hybrid Cloud Enablement Technologieshybrid cloud
 
Overview of Cloud Computing
Overview of Cloud ComputingOverview of Cloud Computing
Overview of Cloud ComputingDr Ganesh Iyer
 
Windows Phone 7 and Windows Azure – A Match Made in the Cloud
Windows Phone 7 and Windows Azure – A Match Made in the CloudWindows Phone 7 and Windows Azure – A Match Made in the Cloud
Windows Phone 7 and Windows Azure – A Match Made in the CloudMichael Collier
 
cloud computing
cloud computingcloud computing
cloud computingHyderabad
 
Session One Intro
Session One IntroSession One Intro
Session One Introrsnarayanan
 
Architecting & Developing On The Cloud Operating System Windows Azure V3
Architecting & Developing On The Cloud Operating System  Windows Azure  V3Architecting & Developing On The Cloud Operating System  Windows Azure  V3
Architecting & Developing On The Cloud Operating System Windows Azure V3Venkatarangan Thirumalai
 
Your easy move to serverless computing and radically simplified data processing
Your easy move to serverless computing and radically simplified data processingYour easy move to serverless computing and radically simplified data processing
Your easy move to serverless computing and radically simplified data processinggvernik
 

Semelhante a Patterns For Cloud Computing (20)

Real World Azure - IT Pros
Real World Azure - IT ProsReal World Azure - IT Pros
Real World Azure - IT Pros
 
Personal robot industry v4
Personal robot industry v4Personal robot industry v4
Personal robot industry v4
 
Real World Azure - Dev
Real World Azure - DevReal World Azure - Dev
Real World Azure - Dev
 
Cloud Computing with .Net
Cloud Computing with .NetCloud Computing with .Net
Cloud Computing with .Net
 
Programatori cu capul in nori
Programatori cu capul in noriProgramatori cu capul in nori
Programatori cu capul in nori
 
클라우드 컴퓨팅에 따른 데이터센터의 변화
클라우드 컴퓨팅에 따른 데이터센터의 변화클라우드 컴퓨팅에 따른 데이터센터의 변화
클라우드 컴퓨팅에 따른 데이터센터의 변화
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 
DDHS 2009 Microsoft Heads In The Cloud Feet On The Ground Peter de Haas...
DDHS 2009   Microsoft   Heads In The Cloud Feet On The Ground   Peter de Haas...DDHS 2009   Microsoft   Heads In The Cloud Feet On The Ground   Peter de Haas...
DDHS 2009 Microsoft Heads In The Cloud Feet On The Ground Peter de Haas...
 
CloudFest Denver Windows Azure Design Patterns
CloudFest Denver Windows Azure Design PatternsCloudFest Denver Windows Azure Design Patterns
CloudFest Denver Windows Azure Design Patterns
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
AWS 2013 LA Media Event: Scalable Media Processing
AWS 2013 LA Media Event: Scalable Media ProcessingAWS 2013 LA Media Event: Scalable Media Processing
AWS 2013 LA Media Event: Scalable Media Processing
 
Hybrid Cloud Enablement Technologies
Hybrid Cloud Enablement TechnologiesHybrid Cloud Enablement Technologies
Hybrid Cloud Enablement Technologies
 
Overview of Cloud Computing
Overview of Cloud ComputingOverview of Cloud Computing
Overview of Cloud Computing
 
Windows Phone 7 and Windows Azure – A Match Made in the Cloud
Windows Phone 7 and Windows Azure – A Match Made in the CloudWindows Phone 7 and Windows Azure – A Match Made in the Cloud
Windows Phone 7 and Windows Azure – A Match Made in the Cloud
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 
cloud computing
cloud computingcloud computing
cloud computing
 
Jumpstart Azure
Jumpstart AzureJumpstart Azure
Jumpstart Azure
 
Session One Intro
Session One IntroSession One Intro
Session One Intro
 
Architecting & Developing On The Cloud Operating System Windows Azure V3
Architecting & Developing On The Cloud Operating System  Windows Azure  V3Architecting & Developing On The Cloud Operating System  Windows Azure  V3
Architecting & Developing On The Cloud Operating System Windows Azure V3
 
Your easy move to serverless computing and radically simplified data processing
Your easy move to serverless computing and radically simplified data processingYour easy move to serverless computing and radically simplified data processing
Your easy move to serverless computing and radically simplified data processing
 

Mais de Simon Guest

10 Life Hacks for Better Productivity
10 Life Hacks for Better Productivity10 Life Hacks for Better Productivity
10 Life Hacks for Better ProductivitySimon Guest
 
Building a Great Engineering Culture
Building a Great Engineering CultureBuilding a Great Engineering Culture
Building a Great Engineering CultureSimon Guest
 
Interviewing Techniques
Interviewing TechniquesInterviewing Techniques
Interviewing TechniquesSimon Guest
 
Presentation Anti-Patterns
Presentation Anti-PatternsPresentation Anti-Patterns
Presentation Anti-PatternsSimon Guest
 
10 Life Hacks for Better Productivity
10 Life Hacks for Better Productivity10 Life Hacks for Better Productivity
10 Life Hacks for Better ProductivitySimon Guest
 
Automated Web Testing using JavaScript
Automated Web Testing using JavaScriptAutomated Web Testing using JavaScript
Automated Web Testing using JavaScriptSimon Guest
 
Advanced Tips & Tricks for using Angular JS
Advanced Tips & Tricks for using Angular JSAdvanced Tips & Tricks for using Angular JS
Advanced Tips & Tricks for using Angular JSSimon Guest
 
Indoor location in mobile applications using iBeacons
Indoor location in mobile applications using iBeaconsIndoor location in mobile applications using iBeacons
Indoor location in mobile applications using iBeaconsSimon Guest
 
Creating Context-Aware Applications
Creating Context-Aware ApplicationsCreating Context-Aware Applications
Creating Context-Aware ApplicationsSimon Guest
 
Automated Testing using JavaScript
Automated Testing using JavaScriptAutomated Testing using JavaScript
Automated Testing using JavaScriptSimon Guest
 
Enterprise Social Networking - Myth or Magic?
Enterprise Social Networking - Myth or Magic?Enterprise Social Networking - Myth or Magic?
Enterprise Social Networking - Myth or Magic?Simon Guest
 
Objective View of MEAPs
Objective View of MEAPsObjective View of MEAPs
Objective View of MEAPsSimon Guest
 
Top Ten Tips for HTML5/Mobile Web Development
Top Ten Tips for HTML5/Mobile Web DevelopmentTop Ten Tips for HTML5/Mobile Web Development
Top Ten Tips for HTML5/Mobile Web DevelopmentSimon Guest
 
Windows Azure Toolkit for iOS
Windows Azure Toolkit for iOSWindows Azure Toolkit for iOS
Windows Azure Toolkit for iOSSimon Guest
 
Developing Enterprise-Grade Mobile Applications
Developing Enterprise-Grade Mobile ApplicationsDeveloping Enterprise-Grade Mobile Applications
Developing Enterprise-Grade Mobile ApplicationsSimon Guest
 
My customers are using iPhone/Android, but I'm a Microsoft Guy.
My customers are using iPhone/Android, but I'm a Microsoft Guy.My customers are using iPhone/Android, but I'm a Microsoft Guy.
My customers are using iPhone/Android, but I'm a Microsoft Guy.Simon Guest
 
Developing iPhone and iPad apps that leverage Windows Azure
Developing iPhone and iPad apps that leverage Windows AzureDeveloping iPhone and iPad apps that leverage Windows Azure
Developing iPhone and iPad apps that leverage Windows AzureSimon Guest
 
iPhone and iPad Security
iPhone and iPad SecurityiPhone and iPad Security
iPhone and iPad SecuritySimon Guest
 
Building solutions on the Microsoft platform that target iPhone, iPad, and An...
Building solutions on the Microsoft platform that target iPhone, iPad, and An...Building solutions on the Microsoft platform that target iPhone, iPad, and An...
Building solutions on the Microsoft platform that target iPhone, iPad, and An...Simon Guest
 
Future of Mobility
Future of MobilityFuture of Mobility
Future of MobilitySimon Guest
 

Mais de Simon Guest (20)

10 Life Hacks for Better Productivity
10 Life Hacks for Better Productivity10 Life Hacks for Better Productivity
10 Life Hacks for Better Productivity
 
Building a Great Engineering Culture
Building a Great Engineering CultureBuilding a Great Engineering Culture
Building a Great Engineering Culture
 
Interviewing Techniques
Interviewing TechniquesInterviewing Techniques
Interviewing Techniques
 
Presentation Anti-Patterns
Presentation Anti-PatternsPresentation Anti-Patterns
Presentation Anti-Patterns
 
10 Life Hacks for Better Productivity
10 Life Hacks for Better Productivity10 Life Hacks for Better Productivity
10 Life Hacks for Better Productivity
 
Automated Web Testing using JavaScript
Automated Web Testing using JavaScriptAutomated Web Testing using JavaScript
Automated Web Testing using JavaScript
 
Advanced Tips & Tricks for using Angular JS
Advanced Tips & Tricks for using Angular JSAdvanced Tips & Tricks for using Angular JS
Advanced Tips & Tricks for using Angular JS
 
Indoor location in mobile applications using iBeacons
Indoor location in mobile applications using iBeaconsIndoor location in mobile applications using iBeacons
Indoor location in mobile applications using iBeacons
 
Creating Context-Aware Applications
Creating Context-Aware ApplicationsCreating Context-Aware Applications
Creating Context-Aware Applications
 
Automated Testing using JavaScript
Automated Testing using JavaScriptAutomated Testing using JavaScript
Automated Testing using JavaScript
 
Enterprise Social Networking - Myth or Magic?
Enterprise Social Networking - Myth or Magic?Enterprise Social Networking - Myth or Magic?
Enterprise Social Networking - Myth or Magic?
 
Objective View of MEAPs
Objective View of MEAPsObjective View of MEAPs
Objective View of MEAPs
 
Top Ten Tips for HTML5/Mobile Web Development
Top Ten Tips for HTML5/Mobile Web DevelopmentTop Ten Tips for HTML5/Mobile Web Development
Top Ten Tips for HTML5/Mobile Web Development
 
Windows Azure Toolkit for iOS
Windows Azure Toolkit for iOSWindows Azure Toolkit for iOS
Windows Azure Toolkit for iOS
 
Developing Enterprise-Grade Mobile Applications
Developing Enterprise-Grade Mobile ApplicationsDeveloping Enterprise-Grade Mobile Applications
Developing Enterprise-Grade Mobile Applications
 
My customers are using iPhone/Android, but I'm a Microsoft Guy.
My customers are using iPhone/Android, but I'm a Microsoft Guy.My customers are using iPhone/Android, but I'm a Microsoft Guy.
My customers are using iPhone/Android, but I'm a Microsoft Guy.
 
Developing iPhone and iPad apps that leverage Windows Azure
Developing iPhone and iPad apps that leverage Windows AzureDeveloping iPhone and iPad apps that leverage Windows Azure
Developing iPhone and iPad apps that leverage Windows Azure
 
iPhone and iPad Security
iPhone and iPad SecurityiPhone and iPad Security
iPhone and iPad Security
 
Building solutions on the Microsoft platform that target iPhone, iPad, and An...
Building solutions on the Microsoft platform that target iPhone, iPad, and An...Building solutions on the Microsoft platform that target iPhone, iPad, and An...
Building solutions on the Microsoft platform that target iPhone, iPad, and An...
 
Future of Mobility
Future of MobilityFuture of Mobility
Future of Mobility
 

Último

Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 

Último (20)

Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 

Patterns For Cloud Computing

  • 1.
  • 2. Patterns for Cloud Computing
  • 3. Patterns for Cloud Computing This is Jim
  • 4. Patterns for Cloud Computing Jim has many questions about cloud computing
  • 5. Patterns for Cloud Computing The more he reads, the more confused he gets
  • 6. Patterns for Cloud Computing “What is Cloud Computing?”
  • 7. Patterns for Cloud Computing “What can I use the Cloud for?”
  • 8. Patterns for Cloud Computing “What is Microsoft’s roadmap in this space?”
  • 9. Answering these Questions can be Difficult
  • 10. Answering these Questions can be Difficult So many alternative definitions from different vendors It can be difficult to describe what the cloud can be used for Keeping up with our beta and released products is challenging
  • 12. Session Objectives Explore a Clear Definition of Cloud Computing Arm you with 5 Patterns for Cloud-based Applications Show you how to Implement these Patterns using our Platform
  • 14. Defining Cloud Computing Jim has heard all the buzzwords
  • 15. Defining Cloud Computing Service Oriented Architecture
  • 16. Defining Cloud Computing Rich Internet Applications
  • 17. Defining Cloud Computing Software as a Service
  • 18. Defining Cloud Computing Software + Services
  • 19. Defining Cloud Computing Are any of these cloud computing?
  • 20. Defining Cloud Computing Styles of application architecture
  • 21. Defining Cloud Computing These styles can work in the cloud, but they are not cloud computing
  • 22. Defining Cloud Computing Where do your applications “live”?
  • 23. Defining Cloud Computing On Premises Hosted Cloud
  • 24. Defining Cloud Computing Application runs on-premises • Bring my own machines, Buy my own connectivity, software, etc.and hardware, • manage my own Complete control data center and responsibility • Upfront capital costs for the infrastructure
  • 25. Defining Cloud Computing Application runs Application runs at a on-premises hoster • Bring my own • Rent machines, machines, connectivity, Buy my own Pay someone to software connectivity, software, etc.and hardware, host my application • Less control, but • manage my own Complete control using hardware that fewer data center and responsibility I specify responsibilities • Upfront capital • Lower capital costs, costs for the but pay for fixed infrastructure capacity, even if idle
  • 26. Defining Cloud Computing Application runs Application runs at a Application runs using on-premises hoster cloud platform • Bring my own • Rent machines, • Shared, machines, connectivity, multi-tenant Pay someone for a Buy my own Pay someone to software environment connectivity, pool of computing software, etc.and hardware, host my application • Less control, but • Offers pool of resources that can • manage my own Complete control using hardware that fewer computing be applied to a set data center and responsibility I specify responsibilities resources, of applications abstracted from • Upfront capital • Lower capital costs, costs for the but pay for fixed infrastructure infrastructure capacity, even if idle • Pay as you go
  • 27. Defining Cloud Computing Cloud “Variants”
  • 28. Defining Cloud Computing Public Cloud
  • 29. Defining Cloud Computing Pool of computing resources offered by a vendor, typically using a “pay as you go” model
  • 30. Defining Cloud Computing Private Cloud
  • 31. Defining Cloud Computing Pool of computing resources that lives within a self managed datacenter
  • 32. Defining Cloud Computing Pool of computing resources that lives within a datacenter with no sharing
  • 33. Defining Cloud Computing “What is Microsoft doing in Cloud Computing?”
  • 34. Defining Cloud Computing Refer to the introductory Azure materials – not going to go through them here
  • 35. Defining Cloud Computing 3 x Critical Concepts
  • 36. Defining Cloud Computing Roles Web Role Worker Role
  • 37. Defining Cloud Computing Storage Table, Blob, Relational
  • 38. Defining Cloud Computing Messaging Queues
  • 39. Patterns for Cloud Computing Using the Cloud for Scale
  • 40. Patterns for Cloud Computing “Isn’t the cloud good for applications that need to scale dynamically?”
  • 41. Patterns for Cloud Computing For example, tax applications
  • 42. Patterns for Cloud Computing “How does this work?”
  • 43. Patterns for Cloud Computing Let’s do some white boarding for Jim…
  • 44. …and when I say white boarding, I really mean it
  • 45. #1 - Using the Cloud for Scale “Wow! What a great site!” Request Browser Web Tier B/L Tier Database Response
  • 46. #1 - Using the Cloud for Scale Browser Browser Browser Web Tier B/L Tier Database “Server Busy” Browser Browser
  • 47. #1 - Using the Cloud for Scale Browser Browser Browser Web Tier B/L Tier Database Browser “Timeout” Browser
  • 48. How would Jim do this today on premises?
  • 49. #1 - Using the Cloud for Scale How would Jim do this today on premises? Browser Browser Web Tier N Browser L Web Tier B/L Tier Database B Browser Web Tier Browser
  • 50. #1 - Using the Cloud for Scale How would Jim do this today on premises? Browser Browser B/L Tier N Browser Web Tier L B/L Tier Database B Browser B/L Tier Browser
  • 51. #1 - Using the Cloud for Scale How would Jim do this today on premises? Browser Browser Web Tier B/L Tier N N Browser L Web Tier L B/L Tier Database B B Browser Web Tier B/L Tier Browser
  • 52. #1 - Using the Cloud for Scale How would Jim do this today on premises? Browser p1 p2 p3 Browser Web Tier B/L Tier N N Browser L Web Tier L B/L Tier Database B B Browser Web Tier B/L Tier Browser
  • 54. #1 - Using the Cloud for Scale How would Jim do this today on premises? Browser p1 p2 p3 Browser Web Tier B/L Tier N N Browser L Web Tier L B/L Tier Database B B Browser Web Tier B/L Tier Browser “That took a lot of work - and money!”
  • 55. #1 - Using the Cloud for Scale How would Jim do this today on premises? p1 p2 p3 “Not so great now…” Web Tier B/L Tier N N Browser L Web Tier L B/L Tier Database B B Web Tier B/L Tier “That took a lot of work - and money!” “Hmmm... Most of this stuff is sitting idle...”
  • 56. #1 - Using the Cloud for Scale Datacenter peak load Usage Idle time Jan Apr Jul Oct
  • 57. How can Windows Azure help?
  • 58. #1 - Using the Cloud for Scale “Wow! What a great site!” Request Browser Web Role Worker Role Azure Storage Response
  • 59. #1 - Using the Cloud for Scale Browser Browser Browser Web Role Worker Role Azure Storage “Server Busy” Browser Browser
  • 60.
  • 61. #1 - Using the Cloud for Scale Browser Browser Web Role N Browser L Web Role Worker Role Azure B Storage Browser Web Role Browser You don’t see this bit
  • 62. #1 - Using the Cloud for Scale Browser Worker Browser Web Role Role N N Worker Azure Browser L Web Role L Role Storage B B Browser Worker Web Role Role Browser
  • 63. #1 - Using the Cloud for Scale Browser p1 p2 p3 Worker Browser Web Role Role N N Worker Azure Browser L Web Role L Role Storage B B Browser Worker Web Role Role Browser
  • 64. OK, so changing config is easy... …but what else do I need to know?
  • 65. #1 - Using the Cloud for Scale Browser p1 p2 p3 Worker Browser Web Role Role N N Worker Azure Browser L Web Role L Role Storage B B Browser Worker Web Role Role Browser
  • 66. #1 - Using the Cloud for Scale Web Role Worker Role Tight coupling between web and worker role is an anti-pattern
  • 67. #1 - Using the Cloud for Scale 4. Process Web Role Worker Role 2. Respond to UI Req 1 Place on queue . 3. Pickup from queue Queue
  • 68. #1 - Using the Cloud for Scale 4. Process Web Role Worker Role Req 5. Add result to table Queue 6. Query table on refresh Table
  • 70. How many web and worker roles do you need?
  • 71. #1 - Using the Cloud for Scale Browser Browser Web Role N Browser L Web Role Worker Role Azure B Storage Browser Web Role Browser Collate IIS logs Testing / MOM pack
  • 72. #1 - Using the Cloud for Scale Web Role Worker Role Req Queue
  • 73. #1 - Using the Cloud for Scale Web Role Worker Role Web Role Worker Role Web Role Worker Role Req Req Req Queue Web Role Worker Role Web Role Monitor queue Worker Role length against user’s Web Role expectations Worker Role
  • 74. Patterns for Cloud Computing Takeaways Using configuration, Azure makes it easy to scale roles Understand how to communicate between Web and Worker role Strategy on when to scale up/down roles in production
  • 75. Patterns for Moving to the Cloud Using the Cloud for Multi Tenancy
  • 76. Patterns for Cloud Computing “I like the idea of scaling Web roles…”
  • 77. Patterns for Cloud Computing “…but need to serve multiple customers”
  • 78. Patterns for Cloud Computing “Without creating separate codebases!”
  • 79. #2 - Using the Cloud for Multi Tenancy Browser Web Tier B/L Tier Database Customer #1
  • 80. How would Jim do this today on premises?
  • 81. #2 - Using the Cloud for Multi Tenancy How would Jim do this today on premises? Browser Web Tier B/L Tier Database Customer #1 Browser Web Tier B/L Tier Database Customer #2 Browser Web Tier B/L Tier Database Customer #3
  • 83. #2 - Using the Cloud for Multi Tenancy Browser Customer #1 Browser Web Tier B/L Tier Database Customer #2 Browser Customer #3
  • 84. Schema Customizations UI Customizations
  • 85. Schema Customizations UI Customizations
  • 86. 3 options for data in multi tenant environment
  • 87. #2 - Using the Cloud for Multi Tenancy Browser Fixed Schema Customer #1 Browser Web Tier B/L Tier Database Customer #2 Browser Option 1: Everyone Uses the Same Database/Schema Customer #3 Pros: Simplest approach, easy to maintain/upgrade. Cons: No customizations. Restoring of tenant data.
  • 88. #2 - Using the Cloud for Multi Tenancy Browser Database Customer #1 Customer #1 Browser Web Tier B/L Tier Database Customer #2 Customer #2 Browser Database Customer #3 Customer #3 Option 2: Give Each Customer Their Own Database/Schema Pros: Flexible. Tenant restore is easier. High Isolation. Cons: Can be costly. Difficult to upgrade db schemas.
  • 89. #2 - Using the Cloud for Multi Tenancy Browser Fixed Schema with Customizations Customer #1 Browser Web Tier B/L Tier Database Customer #2 Browser Option 3: Fixed Database/Schema, with customizations Customer #3 Pros: Customers can add their own custom fields Cons: Non standard way of customizing the schema. Tenant restore is difficult.
  • 90. #2 - Using the Cloud for Multi Tenancy Tenant * 1 TenantID int TenantName nvarchar * Employee EmployeeId int TypeID * Type int FirstName nvarchar Name nvarchar LastName nvarchar CLRType nvarchar 1 1 Customization * int * CustomizationID Value nvarchar
  • 91. #2 - Using the Cloud for Multi Tenancy Tenant * 1 TenantID 1 TenantName UK Branch * Employee EmployeeId 1 TypeID * Type 1 FirstName Gordon Name PostalCode LastName Brown CLRType string 1 1 Customization * 1 * CustomizationID Value SW1 2AA A
  • 92. #2 - Using the Cloud for Multi Tenancy Tenant * 1 TenantID 2 TenantName US Branch * Employee EmployeeId 2 TypeID * Type 2 FirstName Barack Name ZipCode LastName Obama CLRType string 1 1 Customization * 2 * CustomizationID Value 20500
  • 93. #2 - Using the Cloud for Multi Tenancy Tenant * 1 Fixed Schema TenantID 2 Applies to All Could be both TenantName US Branch * * Tenants Employee Type EmployeeId 2 TypeID 2 Customizable FirstName Barack Tenant by Tenant Name ZipCode LastName Obama Basis CLRType string 1 1 Customization * 2 * CustomizationID Value 20500
  • 94. Schema Customizations UI Customizations
  • 95. #2 - Using the Cloud for Multi Tenancy Browser Customer #1 Browser Web Tier B/L Tier Database Customer #2 Browser Customer #3
  • 97. Can ASP .NET MVC Help?
  • 98. Single Controller per Tenant http://employeedata.cloudapp.net/CompanyA (CompanyAController) http://employeedata.cloudapp.net/CompanyB (CompanyBController)
  • 99. Shared Controller per Tenant http://employeedata.cloudapp.net/CompanyA (EmployeeController) http://employeedata.cloudapp.net/CompanyB (EmployeeController)
  • 100. Shared Controller per Tenant (with URL mask) http://hr.companya.co.uk (http://employeedata.cloudapp.net/employees) http://hr.companyb.com (http://employeedata.cloudapp.net/employees)
  • 101. #2 - Using the Cloud for Multi Tenancy http://hr.companya.co.uk Browser Customer #1 http://employeedata.cloudapp.net Browser Web Tier B/L Tier Database Customer #2 Browser Customer #3 http://hr.companyb.com
  • 102. #2 - Using the Cloud for Multi Tenancy http://hr.companya.co.uk -> CNAME (employeedata.cloudapp.net) Browser Customer #1 http://employeedata.cloudapp.net Browser Web Tier B/L Tier Database Customer #2 Browser Customer #3 http://hr.companyb.com -> CNAME (employeedata.cloudapp.net)
  • 103. #2 - Using the Cloud for Multi Tenancy http://hr.companya.co.uk -> CNAME (employeedata.cloudapp.net) Browser Customer #1 http://employeedata.cloudapp.net Browser Web Tier B/L Tier Database Customer #2 Use custom routing in ASP .NET MVC Browser Customer #3 http://hr.companyb.com -> CNAME (employeedata.cloudapp.net)
  • 104. Demo: Multi Tenant Routing using ASP .NET MVC
  • 105. Patterns for Cloud Computing Takeaways Always consider Multi Tenancy first, even if only one customer Design considerations must include both data and UI Many other considerations (such as identity)
  • 106. Patterns for Moving to the Cloud Using the Cloud for Compute
  • 107. Patterns for Cloud Computing Jim has seen how Azure enables multiple nodes
  • 108. Patterns for Cloud Computing “Can I use all of these nodes in parallel?”
  • 109. Patterns for Cloud Computing “I’ve got this multi-GB file I need analyzing…”
  • 110. #3 - Using the Cloud for Compute Data Data Worker Data Client Master Worker Data Worker
  • 111. #3 - Using the Cloud for Compute Result Worker Result Client Master Worker Result Worker Result
  • 112. Popularized by the term “MapReduce”* * 2004 OSDI paper by Jeff Dean and Sanjay Ghemawat (Google)
  • 113. #3 - Using the Cloud for Compute How many ”e”’s in “The quick brown fox jumps over the lazy dog”? M<k,v> Data Worker M<k,v> Client Master Worker M<k.v> Worker “Map” M<“the quick brown”.”e”> M<“fox jumps over”.”e”> M<“the lazy dog”.”e”>
  • 114. #3 - Using the Cloud for Compute L<k,v> Worker L<k,v> Client Master Worker Result Worker L<k,v> 3 x ”e”s found “Reduce” L<”e”,”1”> L<”e”,”1”> L<”e”,”1”>
  • 115. And it’s definitely popular...
  • 116. #3 - Using the Cloud for Compute Google 20pb of data analyzed every day using MapReduce Yahoo! 10k+ cores, 4pb of data using MapReduce Facebook 2500+ cores, 1pb of data using MapReduce
  • 118. #3 - Using the Cloud for Compute Apache Hadoop Open Source Java “Inspired by MapReduce” (Core, HDFS, many more) Cloudera Consulting, training, distribution of Hadoop Amazon Elastic MapReduce Hadoop implementation on EC2
  • 119. How would Jim do this today on premises?
  • 120. #3 - Using the Cloud for Compute How would Jim do this today on premises? Data Data Worker Data Client Master Worker Client Application Job/Task Scheduler Worker Data Remote Service
  • 121. How about implementing this on Windows Azure?
  • 122. #3 - Using the Cloud for Compute Data Worker Data Data Worker Client Web Role Data Client Application Job/Task Scheduler Worker Remote Service Req Queue Table
  • 123. Demo: Windows Azure Demo “Inspired by MapReduce”
  • 124. Patterns for Cloud Computing Takeaways MapReduce very visible, although can be difficult to initially grasp Learn about existing frameworks, especially Apache Hadoop Read up on Dryad (DryadLINQ) for future direction
  • 125. Patterns for Moving to the Cloud Using the Cloud for Storage
  • 126. Patterns for Cloud Computing “The cloud lets me store infinite data, right?”
  • 127. Patterns for Cloud Computing Lots of headaches with data management today
  • 128. Patterns for Cloud Computing “It sounds too good to be true…”
  • 129. How does Jim do this today on premises?
  • 130. #4 - Using the Cloud for Storage How would Jim do this today on premises? File RPC/NFS Client File Server Store
  • 131. #4 - Using the Cloud for Storage How would Jim do this today on premises? Data TDS (Tabular Data Stream) Client DB Server RDBMS
  • 132. #4 - Using the Cloud for Storage How would Jim do this today on premises? Data HTTP POST Browser Web Server Database
  • 133. #4 - Using the Cloud for Storage I love I love you! you too! Server Data Affinity between your data and physical hardware that serves it
  • 134. #4 - Using the Cloud for Storage I love I love you! you too! Server Data Symptoms: Which RAID number was that again? Tedious to backup exponentially growing data Crap! I’m at 95% capacity - got to move to a bigger disk
  • 135. How does the cloud help?
  • 136. Breaks the affinity between your data and hardware
  • 137. #4 - Using the Cloud for Storage “Code Near” Pattern Data access code near to home, long data connection Client DAL Cloud Storage Good for offline scenarios + client applications DAL -> Storage typically REST connection
  • 138. #4 - Using the Cloud for Storage “Code Far” Pattern Data access code far from home, short data connection Client Web Tier DAL Cloud Storage Good for browser based scenarios, but no offline. Good for “chattier” applications between DAL and database
  • 141. #4 - Using the Cloud for Storage PutBlob Blob Container PUT http://account.blob.core.windows./net/containername/blobname REST API Client Azure Blob Storage http://account.blob.core.windows.net/containername/blobname PutBlob = 64Mb MAX MetaData = 8Kb per Blob
  • 142. #4 - Using the Cloud for Storage Blob Container REST API Client Azure Blob Storage GetBlob GET http://account.blob.core.windows./net/containername/blobname http://account.blob.core.windows.net/containername/blobname
  • 143. #4 - Using the Cloud for Storage Blob Container REST API Client Azure Blob Storage GetBlob GET http://account.blob.core.windows./net/containername/blobname Range: bytes=329300 - 730000 http://account.blob.core.windows.net/containername/blobname
  • 144. #4 - Using the Cloud for Storage PutBlock(blobname, blockid, data) Blob Container PutBlockList(blobname, blockid1 …, blockidN) , REST API Client Azure Blob Storage http://account.blob.core.windows.net/containername/blobname PutBlock = 4Mb MAX to a maximum of 50Gb BlockId = 64 bytes
  • 146. #4 - Using the Cloud for Storage REST: GET http://account.table.core.windows.net/Customer?$filter=%20PartitionKey%20eq%20value LINQ: var customers = from o in context.CreateQuery<customer>(“Customer”) where o.PartitionKey == value select o; Worker Role Azure Table Storage http://account.table.core.windows.net Each Table: PartitionKey (e.g. DocumentName) to ensure scalability RowKey (e.g. version number) [fields] for data
  • 149. SQL Server Data Services (MIX08)
  • 150. #4 - Using the Cloud for Storage This is what I’m doing on premises... Data TDS Client DB Server RDBMS
  • 151. #4 - Using the Cloud for Storage So, this is what I would like to do in the cloud... Data TDS Client DB Server RDBMS
  • 152. SQL Data Services (MIX09)
  • 153. SQL Azure (July 2009)
  • 154. #4 - Using the Cloud for Storage So, this is what I would like to do... Data TDS Client SQL Azure RDBMS
  • 155. #4 - Using the Cloud for Storage HTTP TDS Browser Web Role SQL Azure RDBMS
  • 156. #4 - Using the Cloud for Storage HTTP Queue TDS Browser Web Role Worker Role SQL Azure RDBMS
  • 158. #4 - Using the Cloud for Storage “The Data Center” HTTP TDS Browser Web Tier Bus. Logic SQL Server RDBMS
  • 159. #4 - Using the Cloud for Storage “The Cloud” HTTP Queue TDS Browser Web Role Worker Role SQL Azure RDBMS
  • 161. Patterns for Cloud Computing Takeaways Understand the pricing model for storage on-premises vs. cloud Read up and understand code near/code far models SQL Azure as a factor for migration/move from on premises
  • 162. Patterns for Moving to the Cloud Using the Cloud for Communications
  • 163. Patterns for Cloud Computing Jim’s organization needs to communicate with other organizations
  • 164. Patterns for Cloud Computing “This has always been a very tricky and expensive process to get working”
  • 165. Patterns for Cloud Computing “Does the cloud offer anything to help?”
  • 166. How would Jim have done this before?
  • 167. #5 - Using the Cloud for Communications Telco provided WAN Company 1 Company 2 Client Server FTP FTP Client Server
  • 168. #5 - Using the Cloud for Communications Internet Telco provided WAN Company 1 Company 2 Client Server FTP FTP Client Server
  • 169. #5 - Using the Cloud for Communications Internet Telco provided WAN Company 1 Company 2 DMZ Client Server Extranet Browser Site
  • 170. What does the cloud provide?
  • 171. #5 - Using the Cloud for Communications http://app.queue.core.windows.net/ REST Client Azure Queue
  • 172. #5 - Using the Cloud for Communications Company 1 http://app.queue.core.windows.net/ Client REST Azure Queue Company 2 Client
  • 173. #5 - Using the Cloud for Communications Company 1 http://app.queue.core.windows.net/ Client REST Azure Queue Company 2 Client
  • 174. #5 - Using the Cloud for Communications Company 1 http://app.queue.core.windows.net/ Client Master Key REST Azure Queue Company 2 Client Master Key
  • 175. #5 - Using the Cloud for Communications Company 1 http://app.queue.core.windows.net/ Client REST Web Role Azure Queue Company 2 Client
  • 176. #5 - Using the Cloud for Communications Proxy? Company 1 Firewall http://app.queue.core.windows.net/ Client REST Web Role Azure Queue Company 2 Client Firewall
  • 177. #5 - Using the Cloud for Communications Company 1 Firewall http://app.queue.core.windows.net/ Client REST Web Role Azure Queue Company 2 65.55.33.204 Client Firewall 192.168.14.100 NAT?
  • 178. #5 - Using the Cloud for Communications Company 1 Firewall http://app.queue.core.windows.net/ Client REST Web Role Azure Queue Company 2 65.55.33.204 Client Firewall 192.168.14.100 OK, so I’ll do a HTTP poll every minute
  • 179. #5 - Using the Cloud for Communications Company 1 Firewall http://app.queue.core.windows.net/ Client REST Web Role Azure Queue Company 2 65.55.33.204 Client Firewall 192.168.14.100 …and how about other protocols other than HTTP?
  • 180. How does the .NET Service Bus help?
  • 181. #5 - Using the Cloud for Communications Company 1 sb://.../myqueue Client .NET Service Bus Company 2 Client Firewall Outbound bi-directional socket Kept alive in background
  • 182. #5 - Using the Cloud for Communications Company 1 Firewall sb://.../myqueue Client Outbound one-way socket .NET Service Bus Company 2 Message routed Client accordingly Firewall Outbound bi-directional socket Kept alive in background
  • 183. #5 - Using the Cloud for Communications This Conference MySQL Admin Firewall sb://.../myqueue My Laptop Outbound one-way socket Localhost:1000 .NET Service Bus My Home Message routed Home PC accordingly 192.168.14.193 Firewall Outbound bi-directional socket Kept alive in background My SQL Port 3306
  • 185. Patterns for Cloud Computing Takeaways Be careful consuming Azure queues directly via REST Firewalls/NATs can add additional trouble (especially non-HTTP) Learn how .NET Service Bus traverses in these scenarios
  • 187. Next Steps Obviously, our friend Jim, is fake…
  • 188. Next Steps Make sure you have a clear definition of Cloud Computing Explore the 5 usage patterns for your scenarios today Think about the next steps for implementation and migration
  • 189. simon.guest@microsoft.com http://simonguest.com