A Flavor of Transactions, Scaling Database Architectures




CS157a

Chris Pollett

Nov 20, 2023

Outline

Introduction

Using Connections

Using a ResultSet

Metadata

Error and Warnings

Scrollable ResultSets

Concurrency Control

Distributed Databases

Quiz

Which of the following is true?

  1. In the three-tier architecture of last week, an application server is another name for a DBMS.
  2. Queries encapsulated using PreparedStatement's are recompiled every time executeQuery is invoked.
  3. To connect to a database management system on another machine we would typically use the DBMS's application network layer interface.

Scaling a Web-site

Example Web-site Architecture

Organization of a website show squids, http servers, memcached server, databases.

Database Part of the Architecture

ORMCache Part of the Architecture

Reverse Proxy Part of the Architecture

Content Delivery Networks

C10k Problem and its Variants