Il blog di Gianni Giaccaglini

Blog su VBA e VSTO
Gianni Giaccaglini

My Links

News

NB - V. anche gli ARTICOLI (in fondo a questa barra)
Solo quesiti validi a: giannigiac@tin.it
Il mio Best seller su VBA
(v. www.hoepli.it)


Il mio ultimo libro su Open XML
(v. www.FAG.it):



La mia nipotina ELISA

Foto con dedica a ME di
Bill Gates giovanissimo
nei mitici anni 80!

Categorie Post

Categorie Articoli

Archivio

Immagini

Blog Stats

Azure In Action, un utile libro spiega come usare Azure, la nuova piattaforma Cloud di Microsoft

V. l'ultimo post QUADRATO MAGICO: http://blog.shareoffice.it/giannigiaccaglini/archive/2010/12/13/10732.aspx 

Azure in Action:
fucina cloud di Microsoft spiegata a fondo

L’editore Manning è tra i primi a proporre questo titolo molto attuale, dedicato alla proposta Microsoft per il cloud computing su cui il gigante di Redmond ha fortemente scommesso e investito. I testi Manning, dalla copertina ispirata a quadri e litografie pittoreschi, in genere si distinguono per chiarezza espositiva e profondità che va oltre i primi passi, consentendo così al lettore di proseguire bene con le proprie forze.

Questo manuale, scritto da Chris Hay e Brian H. Prince anche tramite contatti con gli autori Microsoft  di Azure, esordisce mettendo subito in evidenza la duplice natura di questo complesso ambiente:

·         è un autentico sistema operative per il cloud offerto da Microsoft in prima persona, che metta a disposizione degli utenti una quantità impressionante di risorse hardware e software dislocate nel pianeta (due negli Usa, due in Europa, altre in  Asia) in modo dal tutto trasparente;

·         si compone di un insieme di tool e API per sviluppare applicazioni sul cloud in ambiente Visual Studio 2010 o 2008 principalmente coi linguaggi Visual Basic o, a scelta, C#.

Fra le API citiamo solo WCF (Windows Communication Foundation) per implementare servizi di comunicazione per il cloud, ASP.NET in versione anch’essa ad hoc per il cloud e la speciale piattaforma AppFabric .

Viene ben puntualizzato che si tratta di un nuovo paradigma, avente il pregio per chi vi ricorre di non doversi più preoccupare nemmeno di dove”fisicamente” risiedono le soluzioni di nuova generazione ma, perciò stesso, richiede una particolare sintassi per definirne la collocazione in modo “astratto” ovvero che astrae dalle famose macchine virtuali gestite in sostanza a cura di Microsoft. Di conseguenza non si parla più di dischi C:, D: ecc. e nemmeno di directory come in Windows,ma si utilizza una diversa nomenclatura.

Il libro, giustamente, non entra subito nei dettagli della codifica dei molti e significativi snippet e modelli in C# forniti, ma dedica un ampio primo capitolo e parte del secondo a illustrare la nuova realtà, pertanto se ne raccomanda la lettura pure a chi non deve codificare: analisti edp manager e magari dirigenti aziendali.

Anche per questi motivi decidiamo di riportare, col permesso dell’ Editore,alcuni  stralci del manuale, ritenendo che siano utili a comprenderne la validità e, insieme, a chiarire i nuovi concetti.

In a large enterprise project one of us worked on, 15 percent of the work hours was spent planning the development, quality assurance, and production environments. Most of this time was used to define hardware requirements, acquire capital expenditure approval, and deal with vendor management. We could’ve shipped much sooner if we’d been able to focus on the application and not the underlying infrastructure and platform. Many organizations take three to six months just to deploy a server! You won’t require this much time to complete the entire process using Windows Azure.

As you might have already gathered, the Windows Azure platform encompasses Microsoft’s complete cloud offering. Every service that Microsoft considers to be part of the cloud will be included under this banner. If the whole cloud thing passed you by, there isn’t really anything magical about it. The cloud refers to a bunch of servers that host and run your applications, or to an offering of services that are consumed (think web service).

The main difference between a cloud offering and a non-cloud offering is that the infrastructure is abstracted away—in the cloud, you don’t care about the physical hardware that hosts your service. Another difference is that most public cloud solutions are offered as a metered service, meaning you pay for the resources that you use (compute time, disk space, bandwidth, and so on) as and when you use them.

The Windows Azure platform splits into three parts: Windows Azure, SQL Azure, and the Windows Azure platform AppFabric.

 

The SDK provides the following Visual Basic templates that you can use in your solutions:

·         ASP.NET Web Role—This template creates an ASP.NET project, preconfigured with an accompanying Azure project.

·         ASP.NET MVC2 Web Role—This template creates a project similar to the ASP.NET Web Role template, but is prewired to support the MVC2 framework.

·         WCF Service Web Role—Planning on hosting a Windows Communication Foundation (WCF) service instead of a normal web application? Then this is the project for you. You set this up like a normal WCF project, using sample files for your first service.

·         Worker Role—This template creates a class library project, preconfigured with a related Azure project. You should use this project if you’re building a background processing service.

·         CGI Web Role—This project template creates the required files needed to host a FastCGI project, which we’ll cover in chapter 6.

·         Blank Cloud Service—This isn’t really a template…

Commento fugace del recensore: dal precedente elenco si ricava o, perlomeno, si intuisce che in Azure vengono definiti dei (cosiddetti) nuovi “ruoli” (Role) e servizi.

Anatomy of a Virtual Machine

Una o più machine virtuali (VM) ospitano un’applicazione Azure. Eccone una parte della descrizione del libro Manning.

The physical server is split up into one or more VMs. Every instance of your service (web role or worker role) is installed onto its own VM, which is a base installation of Windows Server 2008 (with some extra Azure bits). The VM hosts the web application within Internet Information Services (IIS) 7.0.

Although your application runs on a VM, the VM is abstracted away from you, and you only have a view of the role instance, never of the VM. A single instance of your web application is assigned to a single VM, and no other applications will be assigned to that VM. In this way, every instance of your web application is isolated from other applications running on the same physical server. The VM image also runs an agent process.

Web role and worker role

A role is another name for your application. The role refers to the base VM image that hosts your application. A web role is a VM that hosts your application within IIS. A worker role is the same as a web role, but without IIS. It’s intended for typical backend processing workloads.

Building your first Windows Azure web application

Although you’re going to build an ASP.NET website in this example, the good news is that almost any website that can currently be hosted in IIS on Windows Server 2008 can be hosted in Windows Azure. The following are examples of the types of web applications Azure supports out of the box:

·         ASP.NET 3.5 web applications

·         ASP.NET MVC 1.0, 2.0 web applications

·         Web services (WCF, ASMX)

How the fabric and the Fabric Controller work

Azure contains a massive number of servers, and there isn’t any way they can possibly be managed on an individual basis. This is where the Azure operating system concept comes into play. By abstracting away all of those individual servers into a swarm or cloud, you only have to manage the cloud as a whole. This swarm of servers is called the fabric, and your applications run in the fabric when you deploy them to the cloud.

The fabric is managed by a software overlord known as the Fabric Controller. The Fabric Controller plays the role of the kernel and is aware of every hardware and software The fabric is managed by a software overlord known as the Fabric Controller. The Fabric Controller plays the role of the kernel and is aware of every hardware and software…

Altri punti importati ben descritti dal libro sono

Il testo prosegue descrivendo in dettaglio le operazioni pratiche, a partire da una qualità molto valida, ossia la possibilità offerta da Azure di creare e testare un progetto in una macchina locale, dotata anche solo di SQL Server Express (con qualche limite nei casi più complessi) prima di pubblicarlo sul cloud, fino a descrivere il modus operandi sulla nuova piattaforma AppFabric.

A tale proposito viene messo in luce che “The fabric offre una rappresentazione astratta del data center materiale, permettendo alle applicazioni Azuredi girare “in the fabric” senza conoscere l’infrastruttura sottostante. In particolare la potenza elaborativa viene offerta a pagamento come un servizio a pagamento basato sul consumo di risorse e con scalarità on demand.

AppFabric fornisce un Service Bu per collegare tra loro le varie parti di un progetto complesso e una agevole sistema di security basato su standard, l’Access Control Service (ACS)

Al termine vengono esposte in modo abbastanza completo e problematico le complesse questioni inquadrate come Running a healthy service in the cloud.

I titoli

Parte 1 - Welcome to the cloud

Parte 2 – Understanding the Azure service model

Parte3 – Running your site with web roles

Parte 4 – Working with BLOB storage (nuovo sistema per immagazzinare file multimediali)

Parte 5 – Working with structured data (tra cui il nuovo Table Service, l’API REST)

Parte 6 – Doing work with messages (fra worker roles, con gestione code, uso di AppFabric)

Il libro può essere ordinato – anche nella conveniente forma di e-book PDF – direttamente dall’editore on line.

Azure in Action by Chris Hay e Brian H. Prince
Manning Publications Co.
www.manning.com/hay

 

 

?>

?>

posted on venerdì 3 dicembre 2010 11.05