sql and java
DESCRIPTION
SQL and Java. The vision for Java is to be the concrete and nails that people use to build this incredible network system that is happening all around us James Gosling, 2000. Development with Java. Java is a platform-independent object-oriented development language - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/1.jpg)
Data Processing Architectures
The difficulty is in the choiceGeorge Moore, 1900
![Page 2: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/2.jpg)
Architectures
![Page 3: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/3.jpg)
Remote job entry
Local storageOften cheaperMaybe more secure
Remote processingUseful when a personal computer is:
Too slowHas insufficient memorySoftware is not available
Some local processingData preparation
![Page 4: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/4.jpg)
Personal database
Local storage and processingAdvantages
Personal computers are cheapGreater controlBetter interface
DisadvantagesReplication of applications and dataDifficult to share dataSecurity and integrity are lowerDisposable systemsMisdirection of attention and resources
![Page 5: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/5.jpg)
Client/server
Client is typically a Web browserClient initiates requestServer respondsSavings
Ease of use / fewer errorsLess training
![Page 6: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/6.jpg)
Thin client
Diskless computerBrowser-based appsNeed an Internet connection$200-300
![Page 7: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/7.jpg)
Three-tier client/server
![Page 8: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/8.jpg)
Three-tier model
ClientsBrowser with graphical user interface (GUI)
Application serversBusiness and data logic
Data serversDatabaseBackup and recovery services
![Page 9: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/9.jpg)
Advantages of the three-tier model
Security is higher because logic is on the server rather than the PCPerformance is betterAccess to legacy systems and a variety of databasesEasier to implement, maintain, and scale
![Page 10: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/10.jpg)
Evolution of client/server computing
Architecture
Description
Two-tier Processing is split between client and server, which also runs the DBMS.
Three-tier Client does presentation, processing is done by the server, and the DBMS is on a separate server.
N-tier Client does presentation. Processing and DBMS can be spread across multiple servers. This is a distributed resources environment.
![Page 11: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/11.jpg)
Cloud computing
The provision of computing processing and storage resources via the InternetSoftware and hardware resources are sharedResources obtained on demandPart of an evolution rather a revolution in the management of informationClouds, such as time-sharing, have existed for decades
![Page 12: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/12.jpg)
Cloud layers
InfrastructureA virtual server over which the developer has complete controlAmazon
Platform as a serviceA developer can build an application with the provided toolsSalesforce.com
![Page 13: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/13.jpg)
Cloud layers
ApplicationAccess to cloud applicationsGoogle Docs
Collaboration cloudsA special case of application cloudsFacebook
ServiceConsulting and integration
![Page 14: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/14.jpg)
Types of clouds
PublicPrivateCommunityHybrid
![Page 15: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/15.jpg)
Capabilities of clouds
Interface controlTo what extent can customers influence the interface to the cloud?
![Page 16: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/16.jpg)
Capabilities of clouds
Location independenceUbiquitous access
![Page 17: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/17.jpg)
Capabilities of clouds
Sourcing independenceCan change suppliers easily at low costA goal rather than always a reality
Virtual business environmentsSpecial needs systems can be built quickly and later abandoned
Rapid elasticityScale up and down as required• Easier to scale up than down
![Page 18: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/18.jpg)
Strategic risksRisk Description
Demand Fluctuating demand or market collapse
Inefficiency Inability to match competitors’ unit costs
Innovation Not innovating as well as competitors
Scaling Not scaling fast and efficiently enough to meet market growth
Control Inadequate procedures for acquiring or managing resources
![Page 19: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/19.jpg)
Demand
Fluctuating demand or market collapseUbiquity enables serving customers everywhereElasticity to handle excessive demand
![Page 20: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/20.jpg)
Inefficiency
Inability to match competitors’ unit costsCloud computing is generally cheaperSingle service center for all customersEmployees can work at home or on the roadLow cost testing of system innovations
![Page 21: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/21.jpg)
Innovation
Not innovating as well as competitorsInterface control could be issue for innovationUbiquitous access makes it easier to engage customers and employees in product improvement
![Page 22: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/22.jpg)
Scaling
Not scaling fast enough and efficiently enough to meet market growthA firm can use the cloud’s elasticity to quickly acquire new storage and processing resources for digital productsIt can take advantage of sourcing independence to use multiple clouds
![Page 23: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/23.jpg)
Control
Inadequate procedures for the acquisition or management of resourcesA well-designed interface is a control mechanism
![Page 24: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/24.jpg)
Thinking
Most people think of cloud computing as an opportunity to lower costs by shifting processing from the corporate data center to a third partyMore imaginative thinkers will see cloud computing as an opportunity to gain a competitive advantage
![Page 25: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/25.jpg)
Clouds & strategic risks
Risk/Capability Demand
Inefficiency
Innovation
Scaling
Control
Interface control ✔ ✔Location independence ✔
Sourcing independence ✔ ✔
Virtual business environment
✔ ✔
Ubiquitous access ✔ ✔ ✔
Rapid elasticity ✔ ✔
![Page 26: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/26.jpg)
Distributed database
Communication charges are a key factor in total processing costTransmission costs increase with distance
Local processing saves money
A database can be distributed to reduce communication costs
![Page 27: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/27.jpg)
Distributed database
Database is physically distributed as semi-independent databasesThere are communication links between each of the databasesAppears as one database
![Page 28: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/28.jpg)
A hybrid
Architecture evolvesOld structures cannot be abandonedNew technologies offer new opportunities
Ideally, the many structures are patched together to provide a seamless view of organizational databasesDistributed database principles apply to this hybrid architecture
![Page 29: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/29.jpg)
Fundamental principles
TransparencyNo reliance on a central siteLocal autonomyContinuous operationDistributed query processingDistributed transaction processing
![Page 30: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/30.jpg)
Fundamental principles
Replication independenceFragmentation independenceHardware independenceOperating system independenceNetwork independenceDBMS independence
Independence
![Page 31: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/31.jpg)
Horizontal fragmentation
![Page 32: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/32.jpg)
Vertical fragmentation
![Page 33: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/33.jpg)
ReplicationFull replication
Tables are duplicated at each of the sitesIncreased data integrityFaster processingMore expensive
Partial replicationIndexes replicatedFaster queryingRetrieval from the remote database
![Page 34: SQL and Java](https://reader036.vdocuments.site/reader036/viewer/2022062304/56813589550346895d9cec4a/html5/thumbnails/34.jpg)
Key points
There are basic data processing architecturesN-tier client/server dominates todayCloud computing offers cost savings and strategic opportunitiesDatabases can be distributed to lower communication costs and improve response time