Upload
others
View
24
Download
0
Embed Size (px)
Citation preview
CloudComputingandHostingProviders
TheyrentCloudbasedserviceslikeVirtualMachines(ComputerswithOSrunningintheCloud),WebServer,DatabaseSystemstoCustomersbasedonMonthlyFees
WhatisDeployment?Softwaredeploymentisalloftheactivitiesthatmakeasoftwaresystemavailableforuse.Examples:• Getthesoftwareouttothecustomers• CreatingInstallationPackages• Documentation
– InstallationGuide,etc.• Installation• etc.Deploymentstrategiesmayvarydependingofwhatkindofsoftwarewecreate,etc.(e.g.DesktopAppvs.WebSite)
Deployment
PCs
Client-sideSoftwareServer-sideSoftware
TheCloud/Internet/
LocalNetwork
WebServers
DatabaseServers
HTMLYourWebSite/App
YourDatabase
YourDesktopApp
ViewingyourWebAppinaWebBrowser
YourWebServices
DeploymentofdifferenttypesofApps
DesktopApps
WebApps
ServicesandApplications
MobileAppsDatabases WebServers
CloudServices
DesktopApps
WebApps
MobileApps
DeploymentondifferentPlatforms
Developer:NeedtoDeploytoAppStores.End-user:EasytoinstallfromanAppstore.Updatescanbeinstalledautomatically.
Developer:Needtocreate.ExefilesandInstallation/SetuppackagesanddistributethesetotheEnd-users.End-user:Installationisnotalwayseasy,especiallyfornon-experienceusers.Developer:NeedtoDeployto
WebServers.End-user:Don'tneedtoinstallanything,availablefromaWebBrowser.Latestversionalwaysavailablewithoutanyinstallation.
DeveloperEnvironmentvs.ProductionEnvironment
SQLServer
VisualStudio
DeveloperPC Customer(Production)Environment
CustomerPCs
Server(WindowsServer2012/14,..)
SQLServer
Softwareas.exefiles
IIS
Windows8,10WindowsXP,7,8,10
Note!CustomerdonthaveVisualStudioontheirPCs
CreateDatabaseSQLScripts
ERwin SQLServer
GenerateScript
VisualStudioTeamServices
VisualStudio
LocalDevelopment
PC
SourceCodeControl(SCC)
Design
SaveScript(Tables.sql)inVSTS
EachDevelopercanthendownloadthelatestDBScriptfromVSTSandExecutetheSQLScriptinSQLServerManagementStudiooneachlocalDevelopmentPC
Tables.sql
DatabaseAdministrator(DBA) Software
Developer
CreateScriptsfor“DefaultData”,Views,StoredProcedures,Triggers,etc
TheDBAisinchargeofmainteningtheDBScriptthatcanbeusedontheDeveloperPCsandlaterdeployedintheCustomerEnvironment
SavetheminseparateSQLfilesanduploadthemtotheDBfolderinVSTS
WebDeployment
PCswithWebBrowsers
ClientsServers
TheCloud/Internet/
LocalNetwork
WebServers
DatabaseServers
HTML
HTML
WebServerPlatforms
Thetermwebservercanrefertoeitherthehardware(thecomputer)orthesoftware(thecomputerapplication)thathelpstodeliverwebcontentthatcanbeaccessedthroughtheInternet.Themostcommonuseofwebserversistohostwebsites,butthereareotherusessuchasgaming,datastorageorrunningenterpriseapplications.
InternetInformationServices
ASP.NETCross-platform:UNIX,Linux,OSX,Windows,...
(pronounced"enginex")- Hasbecomeverypopularlately
PHP
MicrosoftAzure
SQLDatabases
VirtualMachines
CloudServices App
Services
Storage
“WindowsrunningintheCloud”
DeploymenttoMicrosoftAzureMicrosoftAzurePortal(https://portal.azure.com)
HostingofWebSites(ASP.NETWebPages)
YourSQLServerDatabase
ConnecttotheMicrosoftAzureSQLServerfromyourlocalSQLManagementStudio
1. YouconnecttotheMicrosoftAzureSQLServerDatabaseinthesamewayasyouconnecttoalocalDatabase
2. Note!YouNeedtoConfigureFirewallinMicrosoftAzure
3. CreateTables,Views,StoredProcedures,etc.->usingaSQLScriptisrecommended!
DatabaseSinceallnecessaryTables,Views,StoredProcedures,etc.alreadyarestoredinonesingleSQLFileitiseasytoDeploytheDatabasetotheMicrosoftAzureDatabase
Web.config• SincetheConnectionStringalreadyisstoredinWeb.Config,itiseasytochangetheConnectionstringaccordingtotheMicrosoftAzureDatabase
DataloggingandMonitoringExample
Hans-PetterHalvorsen,M.Sc.
Example2
https://www.youtube.com/watch?v=xAZm--SshKw
DatabaseSinceallnecessaryTables,Views,StoredProcedures,etc.alreadyarestoredinonesingleSQLFileitiseasytoDeploytheDatabasetotheMicrosoftAzureDatabase
LabVIEWHMIExample
TemperatureData:30
Exit
0
DataloggingApp
℃
TheTemperatureDatafromtheTC-01DAQdeviceshouldbestoredintheDatabase.
Chart
Chart
Button
Time
VisualStudioHMIExample
Date&Time Value[C] Value[F]2016.03.2214:45 22 71.6
... ... ...
... ... ...
... ... ...
TemperatureData:
0
30
DataMonitoringApp
Average:
Min:
Max:
22
10
26
℃
℃
℃
YoushouldgettheDatafromtheDatabase
℃
TextBoxesLabels
DataGridView
Chart
TypicallyyougetDatafromtheDatabaseusingViewsand/orStoredProcedures
Time
App.config• SincetheConnectionStringalreadyisstoredinApp.Config,itiseasytochangetheConnectionstringaccordingtotheMicrosoftAzureDatabase
Hans-PetterHalvorsen,M.Sc.
UniversityCollegeofSoutheastNorwaywww.usn.no
E-mail:[email protected]:http://home.hit.no/~hansha/